clap

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

commit 2dae69aa19a0e6d85ebc35685308c2af4b931ccf
parent fe53eb8ba854514278913e862a09c8ae6ecdea98
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Mon, 29 Sep 2014 13:35:14 +0200

Add preset set

Diffstat:
Mclap.h | 18+++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/clap.h b/clap.h @@ -54,7 +54,8 @@ enum clap_param_type struct clap_param_info { enum clap_param_type type; - const char *name; + const char *id; // a string which identify the param + const char *name; // the display name const char *desc; bool is_per_note; @@ -70,6 +71,14 @@ union clap_param_value const char *s; }; +struct clap_preset_info +{ + const char *id; + const char *name; + const char *desc; + const char **tags; // null terminated array of tags +}; + struct clap_event_note { uint16_t division; // 12 for a standard octave @@ -90,6 +99,11 @@ struct clap_event_diapason float freq_hz; // usually 440Hz }; +struct clap_event_preset +{ + const char *id; +}; + enum clap_event_type { CLAP_EVENT_NOTE_ON, @@ -97,6 +111,7 @@ enum clap_event_type CLAP_EVENT_NOTE_OFF, CLAP_EVENT_PARAM_SET, + CLAP_EVENT_PRESET_SET, }; struct clap_event @@ -109,6 +124,7 @@ struct clap_event struct clap_event_note note; struct clap_event_param param; struct clap_event_diapason diapason; + struct clap_event_preset preset; }; };