Skip to content

Commit

Permalink
plugin: Fix cannot reset / save presets on VST3 and CLAP
Browse files Browse the repository at this point in the history
Must set parameter.symbol, this is the unique ID of each parameter.

If not set, you can neither save presets nor reset to factory default, in VST3 and CLAP!
  • Loading branch information
AnClark authored Apr 17, 2024
1 parent ad05b47 commit f3daf87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CetoneSynthDPF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ void CCetoneSynth::initParameter(uint32_t index, Parameter& parameter)
parameter.ranges.max = 1.0f;
parameter.ranges.def = 0.5f;

// Must set parameter.symbol, this is the unique ID of each parameter.
// If not set, you can neither save presets nor reset to factory default, in VST3 and CLAP!
char buff[256];
getParameterName(index, buff);
parameter.symbol = String(buff).replace(' ', '_').replace('.', '_');
parameter.name = String(buff);

switch (index) {
Expand Down

0 comments on commit f3daf87

Please sign in to comment.