In V1 I could use
toJson() inside the Widget to load/save user data that do not have anything to do with audio processing, e.g. a string displayed on the GUI or the color of the GUI.
Now in V2 I have to use
dataToJson() inside the Module to load/save this data.
If this data is a number and/or can be packed into a numeric Param, now I add a Param to the module. As a new side effect, this kind of GUI data can now be controlled by Modules like Stoermelder Macro. Is there a way to prevent this?
If this data is a string and/or can’t be packed into a numeric Param, now I use
But what I’m worrying about is the lost of logical separation of Module’s data and Widget’s data, because now in my Module I have data that only makes sense for the widget.