hq9000 / cython-vst-loader

a cython-based loader for VST audio plugins proving a clean python object-oriented interface
MIT License
39 stars 2 forks source link

Get render audio as a float array #17

Open nyckmaia opened 2 years ago

nyckmaia commented 2 years ago

Hi, I tested the script on doc/usage_examples.md and it loads my VST plugin without any errors.

Now, I would like to send a MIDI message to this VSTi plugin and get back the rendered audio as a Python float array. To do that, I tried:

event = VstNoteOnMidiEvent(3, 60, 100, 1)

plugin.process_events([event])
plugin.process_replacing([], [right_output, left_output], buffer_size)

print(right_output)

But the documentation says that right_output is just an integer that represents the pointer, right? So, how can I get the output audio?

Thank you,

My System: