maintenance and audio nudging bar
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user