TidalVST icon indicating copy to clipboard operation
TidalVST copied to clipboard

Improve MIDI message scheduling

Open Spacechild1 opened this issue 3 years ago • 0 comments

I just noticed that you schedule MIDI messages on the tempo clock:

https://github.com/thgrund/TidalVST/blob/a625ad604ba79e7f790cb2d57a722da85c9c23f0/TidalVST.scd#L91-L97

For accurate timing, the MIDI messages should be scheduled as OSC bundles instead. For example:

~dirt.server.makeBundle(latency, {
    instruments[vstName].midi.noteOn(0, note, velocity);
});

~dirt.server.makeBundle(sustain + latency, {
    instruments[vstName].midi.noteOff(0, note, velocity);
});

Spacechild1 avatar Jan 14 '23 20:01 Spacechild1