Description
A question came up on a discord server I'm in (Ref), as to whether it's possible to connect a VST instrument as the 'input' of an AudioStream
; or if not, some other method of allowing to stream the instrument to an output device.
The example for live audio seems to show using both an input/output device, and applying an effects chain:
And the docs seem to show that input/output device usage, as well as 'synchronous use', where an ogg_buffer
is passed in (but it's not super clear where the output of that goes when .run()
is called:
Attempting to look at the underlying code didn't help me figure out any better if it was possible:
pedalboard/pedalboard_native/io/__init__.pyi
Lines 219 to 323 in 9ab77d3
pedalboard/pedalboard/python_bindings.cpp
Line 67 in 9ab77d3
- https://github.com/spotify/pedalboard/blob/9ab77d335e858205a136463735c2154a8ac229bb/pedalboard/io/AudioStream.h
Asking ChatGPT, it suggested using another external library such as the following, and using that on the output from the instrument, to stream it to the desired output device:
- https://github.com/spatialaudio/python-sounddevice
- https://people.csail.mit.edu/hubert/pyaudio/
- https://www.portaudio.com/