VST3 and how to save selected preset in host project?
-
- KVRist
- Topic Starter
- 278 posts since 1 Feb, 2014
I save preset in my custom file format and I want save index of selected preset in to host. I thought, save Index as paramater automation, but I don't know if it is good idea, because from documentation, all parametres have value form 0.0 to 1.0. Any ideas?
For example some synths / samplers save preset as custom file and they not expose preset list under hosts VST window, but when some preset is selected (from GUI) it is saved with host project. I want to do same.
For example some synths / samplers save preset as custom file and they not expose preset list under hosts VST window, but when some preset is selected (from GUI) it is saved with host project. I want to do same.
- KVRist
- 243 posts since 24 Aug, 2014
From host point of view your plugin saves its data in project as opaque byte array. You can save there whatever you want, not only parameter values. So just make that preset index additional integer in that byte array. There is no need to expose preset number as parameter.
-
- KVRist
- Topic Starter
- 278 posts since 1 Feb, 2014
How can I obtain this byte array?
-
- KVRist
- Topic Starter
- 278 posts since 1 Feb, 2014
Ok I got it.