Merge pull request #627 from tidalcycles/fix-clock-drift
fix: midi clock drift
This commit is contained in:
commit
8149b85a55
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue