Tonejs / Tone.js

A Web Audio framework for making interactive music in the browser.
https://tonejs.github.io
MIT License
13.37k stars 976 forks source link

Sequence inaccurate with midi play note #1130

Closed karkovich closed 4 months ago

karkovich commented 1 year ago

Describe the bug

wrote simple Sequence that play note every quarter. the synth.triggerAttackRelease sounds like it played accurate however the WebMidi.outputs[0].channels[1].playNote played inaccurate.

To Reproduce

I use Ableton/LogicPro/Cubase with midi channel to receive the note and play sample (kick)

Expected behavior played same like the synth

ceelian commented 1 year ago

Have you tried to schedule the midi events to be on the exact time like the tone scheduler? Like so: https://webmidijs.org/docs/getting-started/basics#schedule-notes