Repair BPM setter

This commit is contained in:
2024-04-20 03:06:23 +02:00
parent 605db460e5
commit 1824a345fc
10 changed files with 51 additions and 48 deletions

View File

@ -4,7 +4,7 @@ export const warp = (app: Editor) => (n: number): void => {
/**
* Time-warp the clock by using the tick you wish to jump to.
*/
app.clock.tick = n;
app.clock.time_position.tick = n;
app.clock.time_position = app.clock.convertTicksToTimeposition(n);
};
@ -13,6 +13,6 @@ export const beat_warp = (app: Editor) => (beat: number): void => {
* Time-warp the clock by using the tick you wish to jump to.
*/
const ticks = beat * app.clock.ppqn;
app.clock.tick = ticks;
app.clock.time_position.tick = ticks;
app.clock.time_position = app.clock.convertTicksToTimeposition(ticks);
};