SV Normalize
Usage
Find the normalizing SVs of a map
from reamber.algorithms.generate import sv_normalize
from reamber.osu import OsuMap
from reamber.osu.lists import OsuSvList
osu_map = OsuMap.read_file(...)
svs = sv_normalize(osu_map)
# Append new svs to our map
osu_map.svs = osu_map.svs.append(svs)
# Remove any duplicates, if any
# This is because the SVs generated may overlap with existing SVs
osu_map.svs = OsuSvList(osu_map.svs.df.drop_duplicates())
from reamber.algorithms.generate import sv_normalize
from reamber.qua import QuaMap
from reamber.qua.lists import QuaSvList
qua_map = QuaMap.read_file(...)
svs = sv_normalize(qua_map)
# Append new svs to our map
qua_map.svs = qua_map.svs.append(svs)
# Remove any duplicates, if any
# This is because the SVs generated may overlap with existing SVs
qua_map.svs = QuaSvList(qua_map.svs.df.drop_duplicates())
Override BPM
If it's not normalizing correctly, it's likely that the dominant bpm is incorrectly found. If so, override the dominant bpm.
from reamber.algorithms.generate import sv_normalize
from reamber.osu import OsuMap
osu_map = OsuMap.read_file(...)
svs = sv_normalize(osu_map, override_bpm=200)
from reamber.algorithms.generate import sv_normalize
from reamber.qua import QuaMap
qua_map = QuaMap.read_file(...)
svs = sv_normalize(qua_map, override_bpm=200)
Last modified: 23 March 2024