We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e9026 commit f859531Copy full SHA for f859531
backend/app/app/router/aff/chart.py
@@ -80,6 +80,7 @@ async def chart_mirror(
80
async def chart_scale(
81
notes: a.NoteGroup = Depends(notes_converter), params: ChartScaleParams = Body()
82
) -> CommonResponse[str]:
83
+ original_scale = params.scale
84
params.scale = 1 / params.scale
85
86
def scale_group(notes):
@@ -98,7 +99,7 @@ def scale_group(notes):
98
99
scale_group(each)
100
else:
101
if isinstance(each, a.Timing):
- each.bpm = each.bpm * params.scale
102
+ each.bpm = each.bpm * original_scale
103
104
if each.time == 0 and isinstance(each, a.Timing):
105
continue
0 commit comments