Re: [LAD] LV2 and parameter interpolation

From: Fons Adriaensen <fons@email-addr-hidden>
Date: Mon Feb 06 2012 - 13:04:50 EET

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.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Mon Feb 6 12:15:02 2012

This archive was generated by hypermail 2.1.8 : Mon Feb 06 2012 - 12:15:02 EET