1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-11 16:05:02 +00:00

event.value -> event.value.toFloat() fix

This commit is contained in:
Cameron Taylor 2024-01-25 23:05:54 -05:00
parent 72fe05ddf5
commit ca739cee45

View file

@ -2890,7 +2890,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
};
menubarItemPlaybackSpeed.onChange = event -> {
var pitch:Float = (event.value * 2.0) / 100.0;
var pitch:Float = (event.value.toFloat() * 2.0) / 100.0;
pitch = Math.floor(pitch / 0.25) * 0.25; // Round to nearest 0.25.
#if FLX_PITCH
if (audioInstTrack != null) audioInstTrack.pitch = pitch;