commit 9a4048f3c0ca71f211b07c2659f6eda3f838afc3
parent 08bc33d243fab07a3342b76d6b1c9a39e9af6501
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date: Thu, 5 May 2022 16:13:59 +0200
Forgot to update the flags
Diffstat:
2 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/include/clap/events.h b/include/clap/events.h
@@ -119,8 +119,8 @@ typedef struct clap_event_note {
int32_t note_id; // -1 if unspecified, otherwise >0
int16_t port_index;
- int16_t key; // 0..127
int16_t channel; // 0..15
+ int16_t key; // 0..127
double velocity; // 0..1
} clap_event_note_t;
@@ -150,8 +150,8 @@ typedef struct clap_event_note_expression {
// target a specific note_id, port, key and channel, -1 for global
int32_t note_id;
int16_t port_index;
- int16_t key;
int16_t channel;
+ int16_t key;
double value; // see expression for the range
} clap_event_note_expression_t;
diff --git a/include/clap/ext/params.h b/include/clap/ext/params.h
@@ -112,32 +112,38 @@ enum {
CLAP_PARAM_IS_AUTOMATABLE = 1 << 5,
// Does this param supports per note automations?
- CLAP_PARAM_IS_AUTOMATABLE_PER_NOTE = 1 << 6,
+ CLAP_PARAM_IS_AUTOMATABLE_PER_NOTE_ID = 1 << 6,
+
+ // Does this param supports per note automations?
+ CLAP_PARAM_IS_AUTOMATABLE_PER_KEY = 1 << 7,
// Does this param supports per channel automations?
- CLAP_PARAM_IS_AUTOMATABLE_PER_CHANNEL = 1 << 7,
+ CLAP_PARAM_IS_AUTOMATABLE_PER_CHANNEL = 1 << 8,
// Does this param supports per port automations?
- CLAP_PARAM_IS_AUTOMATABLE_PER_PORT = 1 << 8,
+ CLAP_PARAM_IS_AUTOMATABLE_PER_PORT = 1 << 9,
// Does the parameter support the modulation signal?
- CLAP_PARAM_IS_MODULATABLE = 1 << 9,
+ CLAP_PARAM_IS_MODULATABLE = 1 << 10,
+
+ // Does this param supports per note automations?
+ CLAP_PARAM_IS_MODULATABLE_PER_NOTE_ID = 1 << 11,
// Does this param supports per note automations?
- CLAP_PARAM_IS_MODULATABLE_PER_NOTE = 1 << 10,
+ CLAP_PARAM_IS_MODULATABLE_PER_KEY = 1 << 12,
// Does this param supports per channel automations?
- CLAP_PARAM_IS_MODULATABLE_PER_CHANNEL = 1 << 11,
+ CLAP_PARAM_IS_MODULATABLE_PER_CHANNEL = 1 << 13,
// Does this param supports per channel automations?
- CLAP_PARAM_IS_MODULATABLE_PER_PORT = 1 << 12,
+ CLAP_PARAM_IS_MODULATABLE_PER_PORT = 1 << 14,
// Any change to this parameter will affect the plugin output and requires to be done via
// process() if the plugin is active.
//
// A simple example would be a DC Offset, changing it will change the output signal and must be
// processed.
- CLAP_PARAM_REQUIRES_PROCESS = 1 << 13,
+ CLAP_PARAM_REQUIRES_PROCESS = 1 << 15,
};
typedef uint32_t clap_param_info_flags;