mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Beat jumping can now be done outside of the song range
This commit is contained in:
1 parent
2a40106ea5
commit
5d1bfcf7f1
9 files changed
+126
-10
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user