[Devel] callback on parameter change?
David Robillard
d at drobilla.net
Tue Jan 17 07:56:19 PST 2012
On Tue, 2012-01-17 at 20:47 +0800, Ricardo Wurmus wrote:
> Hi *,
>
> is there a callback that hosts use to notify a plugin that lv2:ControlPort
> parameters have been modified?
>
> Background:
> Now that I've removed all plugin-internal handling of MIDI CCs that would
> affect lv2:ControlPorts, I have no way of performing a few extra calculations
> on parameter changes. Previously, I could have run a function to update the
> internal parameters dependent on the new values provided at the
> lv2:ControlPorts.
>
> I would prefer to keep these calculations out of run() and only perform them
> when really needed.
Store the old value and compare them.
-dr
More information about the Devel
mailing list