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:
parent
72fe05ddf5
commit
ca739cee45
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue