We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0782bea commit 1ca0035Copy full SHA for 1ca0035
1 file changed
SoulSource/SoulPatch.hpp
@@ -31,6 +31,10 @@ class SoulPatch : public Patch {
31
params = soulpatch.createParameterList();
32
for(size_t i=0; i<params.size(); ++i){
33
registerParameter(PatchParameterId(PARAMETER_A+i), params[i].properties.name);
34
+ float min = params[i].properties.minValue;
35
+ float max = params[i].properties.maxValue;
36
+ float value = (params[i].properties.initialValue - min)/(max-min);
37
+ setParameterValue(PatchParameterId(PARAMETER_A+i), value);
38
}
39
ASSERT(getNumberOfChannels() >= SOULPATCH::numAudioInputChannels, "Too many input channels in SOUL patch");
40
ASSERT(getNumberOfChannels() >= SOULPATCH::numAudioOutputChannels, "Too many output channels in SOUL patch");
0 commit comments