fix bpm
This commit is contained in:
@ -33,7 +33,7 @@
|
|||||||
"postcss": "^8.4.27",
|
"postcss": "^8.4.27",
|
||||||
"showdown": "^2.1.0",
|
"showdown": "^2.1.0",
|
||||||
"showdown-highlight": "^3.1.0",
|
"showdown-highlight": "^3.1.0",
|
||||||
"superdough": "^0.9.5",
|
"superdough": "^0.9.6",
|
||||||
"tailwind-highlightjs": "^2.0.1",
|
"tailwind-highlightjs": "^2.0.1",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.3.3",
|
||||||
"tone": "^14.8.49",
|
"tone": "^14.8.49",
|
||||||
|
|||||||
@ -30,9 +30,9 @@ class TransportProcessor extends AudioWorkletProcessor {
|
|||||||
this.lastPausedTime = 0;
|
this.lastPausedTime = 0;
|
||||||
this.wasStopped = true;
|
this.wasStopped = true;
|
||||||
this.currentPulsePosition = 0;
|
this.currentPulsePosition = 0;
|
||||||
} else if(message.data === 'bpm') {
|
} else if(message.data.type === 'bpm') {
|
||||||
this.bpm = message.data.value;
|
this.bpm = message.data.value;
|
||||||
} else if(message.data === 'ppqn') {
|
} else if(message.data.type === 'ppqn') {
|
||||||
this.ppqn = message.data.value;
|
this.ppqn = message.data.value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user