An ID can be established when the parameter is created (through a paramAdded() for instance). It has to be unique. They could not be indexed unless they are enumerated in a list.mystran wrote: Tue Jul 14, 2020 2:01 amParameters alone won't solve the problem for custom editors though, since not everything you can do in a complex plugin editor is necessarily something that can be made into a parameter, but it would certainly be nice for the purpose of automation.Music Engineer wrote: Mon Jul 13, 2020 11:50 pmthat assumes that the set of parameters is fixed. what about an equalizer with an arbitrary number of bands that are created dynamically? or an envelope generator with an arbitrary number of breakpoints? or maybe it doesn't? ...hmmm...well...you could perhaps create an api that involves callbacks or opcodes like "parameterAdded", "parameterRemoved", etc. this would have to be a plugin-to-host requestcamsr wrote: Mon Jul 13, 2020 6:45 pm I would like to see all the parameters of the plugin exposed to the host
There's a few complications though, like specifying how to synchronize threads with regards to such changes and also whether to then just go with arbitrary IDs (but maybe the ID should still be used as a sorting key for UI?), given that the set of parameter indexes might not remain continuous anymore.
This does add some odd complexity, specifically around save and load of plugin (and host) states.
