[LAD] LV2 and parameter interpolation

From: Jörn Nettingsmeier <nettings@email-addr-hidden-hochschule.de>
Date: Mon Feb 06 2012 - 11:33:31 EET

hi *!

total lv2 newbie trying to get my feet wet, so bear with me :)

i'm trying to dezip my control ports by using simple linear
interpolation. to that end, i'm storing the current values of all
control ports in extra fields in the LV2_Handle.
they get ramped to the desired value during run(), so that the current
values will equal the ones set by the control ports at the end of each
run().

now i'm stuck trying to understand where to initialize my current value
fields.
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.

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.

what is the recommended procedure to deal with this?

jörn

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Mon Feb 6 12:15:01 2012

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