Keep tempo on seekto grid 0

This commit is contained in:
Hasinjato 2026-08-11 11:18:44 +03:00
parent aaee37d7f7
commit bcb21883c5

View file

@ -722,13 +722,7 @@ actual class FMediaPlayer actual constructor(
val tick = (gridIndex.toDouble() * resolution).toLong()
sequencer?.tickPosition = tick
val initialOrPreviousBpm = navigationSteps
.filter { it.newBpm != null && it.gridIndex <= gridIndex }
.maxByOrNull { it.gridIndex }?.newBpm ?: 120f
targetBpm = initialOrPreviousBpm
applyBpm()
sharedScreenModel.setBpmFlow(initialOrPreviousBpm)
// Voir les velocity avant
val lastDynamic = navigationSteps
.filter { it.dynamic != null && it.gridIndex <= gridIndex }
@ -747,9 +741,9 @@ actual class FMediaPlayer actual constructor(
val currentTick = sequencer?.tickPosition ?: 0L
if (currentTick == 0L) {
resetNavigationFlags()
targetBpm = initialBpm
/*targetBpm = initialBpm
forceTempo(initialBpm.toDouble())
boundModel?.setBpmFlow(initialBpm)
boundModel?.setBpmFlow(initialBpm)*/
}
val countInEnable = prefs.getBoolean("isCountIn", true)
if (currentTick == 0L && countInEnable) {