clap

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

commit 169fd706e438961e732a1567977e3404ec851d20
parent 66b07e7c4c0eaf6492e3a14f2bb4e020804a6b76
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Tue, 27 Apr 2021 01:25:39 +0200

more work

Diffstat:
Minclude/clap/clap.h | 12++++++------
Minclude/clap/ext/draft/vst3-convert.h | 29+++++++++++++----------------
2 files changed, 19 insertions(+), 22 deletions(-)

diff --git a/include/clap/clap.h b/include/clap/clap.h @@ -116,7 +116,7 @@ typedef enum clap_event_type { CLAP_EVENT_NOTE_EXPRESSION, // note_expression attribute CLAP_EVENT_CHOKE, // no attribute CLAP_EVENT_PARAM_SET, // param attribute - CLAP_EVENT_JUMP, // transport attribute + CLAP_EVENT_JUMP, // jump attribute CLAP_EVENT_CHORD, // chord attribute CLAP_EVENT_TEMPO, // tempo attribute CLAP_EVENT_TSIG, // tsig attribute @@ -156,11 +156,11 @@ typedef enum clap_note_expression { } clap_note_expression; typedef struct clap_event_note_expression { - int32_t expression_id; - int32_t key; // 0..127, or -1 to match all keys - int32_t channel; // 0..15, or -1 to match all channels - int32_t control; // 0..127 - double plain_value; // see expression for the range + clap_note_expression expression_id; + int32_t key; // 0..127, or -1 to match all keys + int32_t channel; // 0..15, or -1 to match all channels + int32_t control; // 0..127 + double plain_value; // see expression for the range } clap_event_note_expression; typedef struct clap_event_param { diff --git a/include/clap/ext/draft/vst3-convert.h b/include/clap/ext/draft/vst3-convert.h @@ -9,37 +9,34 @@ extern "C" { #define CLAP_EXT_VST3_CONVERT "clap/draft/vst3-convert" -struct clap_plugin_vst3_convert { +typedef struct clap_plugin_vst3_convert { // Copies the name and VST3 plugin id that we can convert from. // Returns the lenght of the name. // [thread-safe] - int32_t (*get_vst3_plugin_id)(clap_plugin *plugin, - uint8_t * vst3_plugin_id); + int32_t (*get_vst3_plugin_id)(clap_plugin *plugin, uint8_t *vst3_plugin_id); // Loads the plugin state from stream using the vst3 chunk. // [main-thread] - bool (*restore_vst3_state)(clap_plugin * plugin, - clap_istream *stream); + bool (*restore_vst3_state)(clap_plugin *plugin, clap_istream *stream); // converts the VST3 param id and normalized value to clap param id and // normalized value. // [thread-safe] - bool (*convert_normalize_value)( - clap_plugin * plugin, - uint32_t vst3_param_id, - double vst3_normalized_value, - uint32_t * clap_param_id, - clap_param_value *clap_normalized_value); + bool (*convert_normalize_value)(clap_plugin * plugin, + uint32_t vst3_param_id, + double vst3_normalized_value, + uint32_t * clap_param_id, + clap_param_value *clap_normalized_value); // converts the vst3 param id and plain value to clap param id and // plain value. // [thread-safe] - bool (*convert_plain_value)(clap_plugin * plugin, - uint32_t vst3_param_index, - double vst3_plain_value, - uint32_t * clap_param_index, + bool (*convert_plain_value)(clap_plugin * plugin, + uint32_t vst3_param_index, + double vst3_plain_value, + uint32_t * clap_param_index, clap_param_value *clap_plain_value); -}; +} clap_plugin_vst3_convert; #ifdef __cplusplus }