RNBO: exporting presets in C++; Can users make (and save) their own?
Hey all,
I'm reading about adding presets (with snapshots) and then working with them in the exported C++ code (e.g. see: https://rnbo.cycling74.com/learn/working-with-presets-cpp#storing-presets).
I understand that the presets I define in the patcher will be exported into a file and be available to my C++ program, so I can show those presets to the user, load them etc.
But what if the user wants to create and save a new preset?
I read about the getPreset
(or getPresetAsync
) function that allows me to capture the state into a new PresetObject
, but is there a way for this new preset to be saved back into the preset file so that users can find it next time?
For context, I'm evaluating whether to use the RNBO preset system vs doing it the traditional way in a VST I'm working on.
Thanks :)