commit f6fb0ba9d03ff77d63048977c387a7d42e6e83df
parent 7f0d0a1f9cd0a88ea3eab9ca04b226feb86534b7
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Thu, 5 May 2022 15:25:39 +0200
Add a note_id
Diffstat:
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/include/clap/events.h b/include/clap/events.h
@@ -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;