function to set the ppqn

This commit is contained in:
2023-08-15 11:58:34 +02:00
parent 01fd9bd4a1
commit 0802a5da5d
2 changed files with 14 additions and 3 deletions

View File

@ -47,7 +47,7 @@ export class Clock {
this.time_position = { bar: 0, beat: 0, pulse: 0 }
this.bpm = 120;
this.time_signature = [4, 4];
this.ppqn = 48;
this.ppqn = 8;
ctx.audioWorklet.addModule(TransportProcessor).then((e) => {
this.transportNode = new TransportNode(ctx, {}, this.app);
this.transportNode.connect(ctx.destination);