mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
fix: midi clock drift
This commit is contained in:
parent
b0a8d12112
commit
b55721f16f
@ -105,7 +105,7 @@ Pattern.prototype.midi = function (output) {
|
||||
hap.ensureObjectValue();
|
||||
|
||||
// calculate time
|
||||
const timingOffset = WebMidi.time - getAudioContext().currentTime * 1000;
|
||||
const timingOffset = WebMidi.time - getAudioContext().getOutputTimestamp().contextTime * 1000;
|
||||
time = time * 1000 + timingOffset;
|
||||
|
||||
// destructure value
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user