clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 1cba85980af04c36cb2d133af8fe66abccf3a6f3
parent cf78219971cd12b2d06db17dc071f263413de3f7
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Thu, 29 Apr 2021 22:13:05 +0200

add support for modulated values

Diffstat:
Minclude/clap/ext/params.h | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/clap/ext/params.h b/include/clap/ext/params.h @@ -27,6 +27,7 @@ typedef struct clap_param_info { bool is_per_note; // does this param supports per note automations? bool is_per_channel; // does this param supports per channel automations? + bool is_modulable; // does this param bool is_used; // is this parameter used by the patch? bool is_periodic; // after the last value, go back to the first one bool is_locked; // if true, the parameter can't be changed by the host @@ -61,7 +62,10 @@ typedef struct clap_plugin_params { // If the plupin is activated, then the host must send a param event // in the next process call to update the audio processor. // [main-thread] - void (*set_value)(clap_plugin *plugin, int32_t param_index, clap_param_value plain_value); + void (*set_value)(clap_plugin * plugin, + int32_t param_index, + clap_param_value plain_value, + clap_param_value plain_modulated_value); // Normalization only exists for float values // [thread-safe,lock-wait-free]