Fix PPQN setter in ClockProcessor

This commit is contained in:
2024-04-20 12:46:15 +02:00
parent 7f48b94ffa
commit 2b6e092d37

View File

@ -41,6 +41,8 @@ class TransportProcessor extends AudioWorkletProcessor {
this.currentPulsePosition = 0;
} else if (message.data.type === "ppqn") {
this.ppqn = message.data.value;
this.startTime = currentTime;
this.currentPulsePosition = 0;
} else if (message.data.type === "timeSignature") {
this.timeSignature = [
message.data.num,