you can see ending in chart editor and time signatures fix

This commit is contained in:
lunarcleint
2023-08-10 18:46:45 -07:00
parent 8a48f2186e
commit fc4b02e205
3 changed files with 38 additions and 5 deletions
+2 -2
View File
@@ -289,7 +289,7 @@ class Conductor
if (change.stepTime < step && change.stepTime >= bpmChange.stepTime)
bpmChange = change;
return bpmChange.songTime + ((step - bpmChange.stepTime) * ((60 / bpmChange.bpm) * 250));
return bpmChange.songTime + ((step - bpmChange.stepTime) * ((60 / bpmChange.bpm) * (1000/stepsPerBeat)));
}
public static function getStepForTime(time:Float) {
@@ -303,7 +303,7 @@ class Conductor
if (change.songTime < time && change.songTime >= bpmChange.songTime)
bpmChange = change;
return bpmChange.stepTime + ((time - bpmChange.songTime) / ((60 / bpmChange.bpm) * 250));
return bpmChange.stepTime + ((time - bpmChange.songTime) / ((60 / bpmChange.bpm) * (1000/stepsPerBeat)));
}
public static inline function getMeasureLength()