mikeoliphant / AudioPlugSharp

Easily create VST (VST3) audio plugins in C# .NET
MIT License
177 stars 21 forks source link

Change parameter definition at runtime #20

Open Lewin225 opened 1 year ago

Lewin225 commented 1 year ago

First please link me to some way to buy you a beer, this is such a nice Library!

Is there a way to add/remove/modify parameters while the plugin is running?

I've tried calling add parameter but it doesn't seem to update in the daw, though it does seem to register in AudioPluginBase.parameterList.

I'm getting a list of parameters over the network (udp request), and I guess this could be done during Initialize but it would involve restarting the plugin each time the remote parameter list changes.

I noticed there's a kParamTitlesChanged event in the vst source. So I guess they can be renamed at runtime which would also be fine

mikeoliphant commented 1 year ago

As far as I know, the VST3 interface unfortunately does not allow for adding/removing of parameters after the plugin has been initialized.

As you point out, it does seem to allow you to rename existing parameters. I haven't yet implemented it in AudioPlugSharp yet, though.