I’m not sure exactly what you mean, but controls in Nyquist plug-ins are not “interactive” - they can’t update on the fly. Choices have to be explicitly written into the code.
Nyquist can read and write files, so perhaps you could achieve what you want by reading/writing a configuration file for your plug-in?
Nyquist can read and write files, so perhaps you could achieve what you want by reading/writing a configuration file for your plug-in?
Yes I’d like to know how to read/create configuration presets. I can see settings stored in .audacity-data/pluginsettings.cfg but I’m not sure how to pre-seed it?
End goal is to have a PEMF frequency generator with a pick-list (e.g. below). Pick a set of frequencies then give end users the ability to adjust the frequencies - hence my inquiry for presets. I’d like to generate the Frequencies in Audacity because it is cross platform and allows me to playback a frequency and record the end result from the magnet in the same interface.
I’m still not clear about what you are trying to do, but Nyquist plug-ins are just text files, which Audacity then interprets to create the plug-in.
If you want specific choices, you just need to add a “choice” widget to the plug-in code with the choices that you want.
Here’s an example that can be run in the Nyquist Prompt effect (it could equally be written as a “plug-in” which you could then install, but to keep the example simple I’ll just give an example that can run in the Nyquist prompt).