This commit is contained in:
2023-08-31 13:35:55 +02:00
parent 3c335a50a9
commit d85dbdfeb9
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@
"postcss": "^8.4.27",
"showdown": "^2.1.0",
"showdown-highlight": "^3.1.0",
"superdough": "^0.9.5",
"superdough": "^0.9.6",
"tailwind-highlightjs": "^2.0.1",
"tailwindcss": "^3.3.3",
"tone": "^14.8.49",

View File

@ -30,9 +30,9 @@ class TransportProcessor extends AudioWorkletProcessor {
this.lastPausedTime = 0;
this.wasStopped = true;
this.currentPulsePosition = 0;
} else if(message.data === 'bpm') {
} else if(message.data.type === 'bpm') {
this.bpm = message.data.value;
} else if(message.data === 'ppqn') {
} else if(message.data.type === 'ppqn') {
this.ppqn = message.data.value;
}
};