clap

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

commit 4afc0d3d0401825a169d97d11a5263a603b5ea97
parent 931efa26ba870134170fb9b3fc37f1b47015a55a
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Fri, 29 Apr 2016 15:04:32 +0200

Add program event to CLAP

Diffstat:
Minclude/clap/clap.h | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/include/clap/clap.h b/include/clap/clap.h @@ -133,6 +133,8 @@ enum clap_event_type CLAP_EVENT_PAUSE = 13, // no attribute CLAP_EVENT_STOP = 14, // no attribute CLAP_EVENT_JUMP = 15, // attribute jump + + CLAP_EVENT_PROGRAM = 16, // program attribute }; struct clap_event_param @@ -179,6 +181,22 @@ struct clap_event_jump int32_t tsig_denom; // time signature denominator }; +/** + * Asks the plugin to load a program. + * This is analogue to the midi program set: + * bank msb goes into bank0 + * bank lsb goes into bank1 + * program goes into program + * + * Clap is not limited to 127. + */ +struct clap_event_program +{ + int32_t bank0; + int32_t bank1; + int32_t program; +}; + struct clap_event { struct clap_event *next; // linked list, NULL on end