On Mon, Feb 06, 2012 at 10:33:31AM +0100, Jörn Nettingsmeier wrote:
what i want to avoid is a ramp from default or
previous values whenever
the plugin is run for the first time. in that case, i want to have no
ramp and start cold with the control port value.
For general purpose processing (as opposed to synthesis) that doesn't
matter in practice. Certainly not if the ramp is just one period.
can i rely on control port data being available during
activate() so
that i can initialize my current values to the control port values?
now i could set the current values to NULL during instantiate and
deactivate, but then i'd have an extra conditional in run(), which i'd
like to avoid.
This would be outside the main loop, so harmless. You may want something
similar to switch between interpolated or constant runs as well, so it
would just add one boolean.
Note that making parameter smoothing dependent on the period size
is not really recommended, except again for synthesis. For the zita
series it is Verboten.
--
FA
Vor uns liegt ein weites Tal, die Sonne scheint - ein Glitzerstrahl.