cython-vst-loader icon indicating copy to clipboard operation
cython-vst-loader copied to clipboard

MIDI Note Duration

Open nyckmaia opened this issue 3 years ago • 0 comments

Hi, I would like to write and play a simple melody from Python through my VST plugin and get back the rendered output audio as a float array.

So, how can I create an VstNoteOnMidiEvent array where each element have a time duration? Exemple:

event1 = VstNoteOnMidiEvent(3, 60, 100, 1)
event2 = ...

melody = [event1, event2, event3, ...]

# Where each 'event' have a time duration
"C4": 60 - 1.0 seconds
"D4": 62 - 0.5 seconds
...

Thanks,

nyckmaia avatar Feb 23 '22 21:02 nyckmaia