[LAD] LV2 and parameter interpolation

2012-02-06 Thread Jörn Nettingsmeier
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

Re: [LAD] LV2 and parameter interpolation

2012-02-06 Thread Fons Adriaensen
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

Re: [LAD] LV2 and parameter interpolation

2012-02-06 Thread Jörn Nettingsmeier
On 02/06/2012 12:04 PM, Fons Adriaensen wrote: 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

Re: [LAD] LV2 and parameter interpolation

2012-02-06 Thread Gabriel M. Beddingfield
On 02/06/2012 03:33 AM, Jörn Nettingsmeier wrote: can i rely on control port data being available during activate() so that i can initialize my current values to the control port values? No. Ports are only valid during the run() method. now i could set the current values to NULL during

Re: [LAD] LV2 and parameter interpolation

2012-02-06 Thread Jörn Nettingsmeier
On 02/06/2012 02:23 PM, Gabriel M. Beddingfield wrote: On 02/06/2012 03:33 AM, Jörn Nettingsmeier wrote: can i rely on control port data being available during activate() so that i can initialize my current values to the control port values? No. Ports are only valid during the run() method.

Re: [LAD] LV2 and parameter interpolation

2012-02-06 Thread David Robillard
On Mon, 2012-02-06 at 12:55 +0100, Jörn Nettingsmeier wrote: On 02/06/2012 12:04 PM, Fons Adriaensen wrote: 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