small change
This commit is contained in:
@ -13,6 +13,7 @@ export class TransportNode extends AudioWorkletNode {
|
|||||||
/** @type {(this: MessagePort, ev: MessageEvent<any>) => any} */
|
/** @type {(this: MessagePort, ev: MessageEvent<any>) => any} */
|
||||||
handleMessage = (message) => {
|
handleMessage = (message) => {
|
||||||
if (message.data && message.data.type === "bang") {
|
if (message.data && message.data.type === "bang") {
|
||||||
|
this.app.api.MidiConnection.sendMidiClock();
|
||||||
this.app.clock.tick++;
|
this.app.clock.tick++;
|
||||||
const futureTimeStamp = this.app.clock.convertTicksToTimeposition(
|
const futureTimeStamp = this.app.clock.convertTicksToTimeposition(
|
||||||
this.app.clock.tick
|
this.app.clock.tick
|
||||||
@ -21,7 +22,6 @@ export class TransportNode extends AudioWorkletNode {
|
|||||||
this.timeviewer.innerHTML = `${zeroPad(futureTimeStamp.bar, 2)}:${
|
this.timeviewer.innerHTML = `${zeroPad(futureTimeStamp.bar, 2)}:${
|
||||||
futureTimeStamp.beat + 1
|
futureTimeStamp.beat + 1
|
||||||
}:${zeroPad(futureTimeStamp.pulse, 2)}`;
|
}:${zeroPad(futureTimeStamp.pulse, 2)}`;
|
||||||
this.app.api.MidiConnection.sendMidiClock();
|
|
||||||
if (this.app.exampleIsPlaying) {
|
if (this.app.exampleIsPlaying) {
|
||||||
tryEvaluate(this.app, this.app.example_buffer);
|
tryEvaluate(this.app, this.app.example_buffer);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user