Change clock starting point and add oncount method as alternative to onbeat

This commit is contained in:
2023-08-31 18:03:07 +03:00
parent 3c335a50a9
commit 86739faa77
6 changed files with 67 additions and 38 deletions

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;
}
};