diff --git a/composeApp/src/androidMain/kotlin/mg/dot/feufaro/midi/MidiPlayer.kt b/composeApp/src/androidMain/kotlin/mg/dot/feufaro/midi/MidiPlayer.kt index 4fd3030..51a3a51 100644 --- a/composeApp/src/androidMain/kotlin/mg/dot/feufaro/midi/MidiPlayer.kt +++ b/composeApp/src/androidMain/kotlin/mg/dot/feufaro/midi/MidiPlayer.kt @@ -446,7 +446,7 @@ actual class FMediaPlayer actual constructor( } else { navigationSteps .filter { it.newBpm != null && it.gridIndex <= gridIndex } - .maxByOrNull { it.gridIndex }?.newBpm ?: initialBpm + .maxByOrNull { it.gridIndex }?.newBpm ?: targetBpm } targetBpm = initialOrPreviousBpm