spotify / pedalboard

🎛 🔊 A Python library for audio.
https://spotify.github.io/pedalboard
GNU General Public License v3.0
4.96k stars 249 forks source link

Change VST editor params while streaming audio? #299

Closed dodeca-6-tope closed 3 months ago

dodeca-6-tope commented 3 months ago

I'd like to play around with VST GUI and stream output immediately for fine-tuning and experimentation. Is it possible? Thanks!

psobot commented 3 months ago
from pedalboard.io import AudioStream
from pedalboard import Pedalboard, load_plugin

my_plugin = load_plugin("path/to/plugin")
board = Pedalboard([plugin])

with AudioStream("my input", "my output", board) as s:
    my_plugin.show_editor()
    # Play with the UI and see it react in real-time to audio.
    # Send Ctrl-C (KeyboardInterrupt) or close the window to stop.
    #
    # my_plugin.some_parameter_name will be updated
    # automatically in response to changes made in the GUI
dodeca-6-tope commented 3 months ago

Great!