cython-vst-loader
cython-vst-loader copied to clipboard
MIDI Note Duration
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,