Add a note_id
@@ -117,6 +117,7 @@ typedef int32_t clap_event_type;
typedef struct clap_event_note {
clap_event_header_t header;
+ int16_t note_id; // -1 if unspecified, otherwise >0
int16_t port_index;
int16_t key; // 0..127
int16_t channel; // 0..15
@@ -146,7 +147,8 @@ typedef struct clap_event_note_expression {
clap_note_expression expression_id;
- // target a specific port, key and channel, -1 for global
+ // target a specific note_id, port, key and channel, -1 for global
+ int16_t note_id;
int16_t port_index;
int16_t key;
int16_t channel;
@@ -161,10 +163,11 @@ typedef struct clap_event_param_value {
clap_id param_id; // @ref clap_param_info.id
void *cookie; // @ref clap_param_info.cookie
- // target a specific port, key and channel, -1 for global
+ // target a specific note_id, port, key and channel, -1 for global
+ int16_t note_id;
int16_t port_index;
- int16_t key;
int16_t channel;
+ int16_t key;
double value;
} clap_event_param_value_t;
@@ -176,10 +179,11 @@ typedef struct clap_event_param_mod {
clap_id param_id; // @ref clap_param_info.id
void *cookie; // @ref clap_param_info.cookie
- // target a specific port, key and channel, -1 for global
+ // target a specific note_id, port, key and channel, -1 for global
+ int16_t note_id;
int16_t port_index;
- int16_t key;
int16_t channel;
+ int16_t key;
double amount; // modulation amount
} clap_event_param_mod_t;
