diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index 366e446e5..a22adc523 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -4464,6 +4464,16 @@ class ChartEditorState extends HaxeUIState function resetConductorAfterTest(_:FlxSubState = null):Void { moveSongToScrollPosition(); + + var instVolumeSlider:Null = findComponent('menubarItemVolumeInstrumental', Slider); + var vocalVolumeSlider:Null = findComponent('menubarItemVolumeVocals', Slider); + + // Reapply the volume. + var instTargetVolume:Float = instVolumeSlider?.value ?? 1.0; + var vocalTargetVolume:Float = vocalVolumeSlider?.value ?? 1.0; + + if (audioInstTrack != null) audioInstTrack.volume = instTargetVolume; + if (audioVocalTrackGroup != null) audioVocalTrackGroup.volume = vocalTargetVolume; } /**