Component Guide wrote:The default value for when
the number of presets is
Now, if you try this with a completely new 'Preset Parameter' primitive from the toolbox, that's exactly what it does.
But, the bitmap knobs in the toolbox don't do this - they seem to have a 'memory' of some previous settings from when they were created. Tried it with some other controls - the 'Sliders' also seems to contain 'legacy' values, but the 'Readout Knob' works as it should.
What's interesting is that the controls that have a 'long memory' all contain exactly the same sequence of values - so I guess they are all modifications of one stock design.
I did some more experiments...
- Removed the 'Preset Parameter' primitive from a stock knob and replaced it with a fresh, new one from the toolbox - now it works as it should - added presets get the value at the default input.
- Dropped it into the toolbox. Reset the Manager to 1 preset. Put it back in the schematic. Increasing the number of presets now 'reveals' any preset values that were stored before it was dropped into the toolbox.
- Back to 1 preset, replaced the primitive again, into the toolbox (before adding more presets) - now works OK when dropped from the toolbox, new presets get the default value again (no memory effect)....
So, any time you drop a module into your toolbox that has presets, the preset values go into the toolbox with it - and will be 'revealed' when you use the module again. The default value is ignored until you add more presets than the control was 'saved' with. And it seems that OutSim must have done this with a lot of the stock toolbox controls (presumably just dragged in from the example synth etc.)
It may be worth re-making the controls with a fresh primitive, set to zero, to avoid surprises when adding new presets (zero so that output volume=0, so no blown speakers/eardrums when selecting an 'undefined' preset).
But really, I think it's nice to create a full bank of presets anyway, to be the defaults when a new user first loads your plugin - so really it's not much of problem IMHO, once you know what's going on!