VST3 and how to save selected preset in host project?

DSP, Plug-in and Host development discussion.
Oberheim 8000
KVRist
237 posts since 1 Feb, 2014

Post Sat Mar 28, 2020 2:25 am

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.
www.oberheim8000.com [ midi arpegiator and sound presets ]
www.easyffbackup.com [ backup your work, samples, presets, etc... free beta ]

User avatar
Vokbuz
KVRist
152 posts since 24 Aug, 2014 from Moscow

Re: VST3 and how to save selected preset in host project?

Post Sat Mar 28, 2020 3:46 am

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.

Oberheim 8000
KVRist
237 posts since 1 Feb, 2014

Re: VST3 and how to save selected preset in host project?

Post Sat Mar 28, 2020 3:57 am

How can I obtain this byte array?
www.oberheim8000.com [ midi arpegiator and sound presets ]
www.easyffbackup.com [ backup your work, samples, presets, etc... free beta ]

Oberheim 8000
KVRist
237 posts since 1 Feb, 2014

Re: VST3 and how to save selected preset in host project?

Post Sat Mar 28, 2020 5:24 am

Ok I got it.
www.oberheim8000.com [ midi arpegiator and sound presets ]
www.easyffbackup.com [ backup your work, samples, presets, etc... free beta ]

Return to “DSP and Plug-in Development”