Beat jumping can now be done outside of the song range

This commit is contained in:
patben8 committed 2026-11-03 11:59:50 +01:00
1 parent 2a40106ea5
commit 5d1bfcf7f1
9 files changed
+126 -10

No files matched your search

+2 -1
View File
@@ -23,5 +23,6 @@ export function extrapolate(m: Model, now: number, loop: Loop, duration: number)
if (loop.on && loop.end > loop.start && p >= loop.end && m.pos < loop.end) {
p = loop.start + ((p - loop.start) % (loop.end - loop.start))
}
return Math.min(p, duration)
// The end — or an engaged loop's, where it reaches past the track.
return Math.min(p, loop.on ? Math.max(duration, loop.end) : duration)
}