maintenance and audio nudging bar

This commit is contained in:
2023-10-07 20:09:19 +02:00
parent 22e1e36169
commit 0c21770eaa
10 changed files with 173 additions and 123 deletions

View File

@ -13,7 +13,7 @@ export class TransportNode extends AudioWorkletNode {
/** @type {(this: MessagePort, ev: MessageEvent<any>) => any} */
handleMessage = (message) => {
if (message.data && message.data.type === "bang") {
if(this.app.settings.send_clock) this.app.api.MidiConnection.sendMidiClock();
if (this.app.settings.send_clock) this.app.api.MidiConnection.sendMidiClock();
this.app.clock.tick++;
const futureTimeStamp = this.app.clock.convertTicksToTimeposition(
this.app.clock.tick
@ -45,6 +45,10 @@ export class TransportNode extends AudioWorkletNode {
this.port.postMessage({ type: "ppqn", value: ppqn });
}
setNudge(nudge) {
this.port.postMessage({ type: "nudge", value: nudge });
}
stop() {
this.port.postMessage("stop");
}