Fix! DCs on player Midi - Android

This commit is contained in:
Hasinjato 2026-09-11 10:59:17 +03:00
parent e2db1c2f20
commit 1809a5dea6

View file

@ -457,7 +457,6 @@ actual class FMediaPlayer actual constructor(
currentDynamicFactor = if (lastDyn == Dynamic.MF) 1.0f else lastDyn.factor
navigationSteps.forEach { step ->
if (step.gridIndex > gridIndex) {
step.alreadyDone = false
if (step.isFarany) {
step.faranyActive = false
}
@ -712,6 +711,7 @@ actual class FMediaPlayer actual constructor(
println("Exécution changement de tempo : ${step.newBpm} BPM à la grille $currentIndex")
targetBpm = step.newBpm
sharedScreenModel.setBpmFlow(step.newBpm)
setTempo(step.newBpm)
}
}
@ -974,7 +974,6 @@ actual class FMediaPlayer actual constructor(
userCustomTempo = true
usPerTick = (60_000_000.0 / bpm.toDouble()) / resolution.toDouble()
boundModel?.setBpmFlow(bpm)
boundModel?.let { prepareNavigation(it) }
needsClockSync = true
}
actual fun getCurrentBPM(): Float = targetBpm