clap

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

commit 83a6f48b4c38890bc8c277afd873aed92ef0f887
parent 08c660954a5ade17b1e12e9be41a4073860b1f77
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Thu, 23 Dec 2021 12:19:52 +0100

Adds an event for midi 2 packet

Fixes #24
Fixes #25

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

diff --git a/include/clap/events.h b/include/clap/events.h @@ -24,6 +24,7 @@ enum { CLAP_EVENT_TRANSPORT, // update the transport info; transport attribute CLAP_EVENT_MIDI, // raw midi event; midi attribute CLAP_EVENT_MIDI_SYSEX, // raw midi sysex event; midi_sysex attribute + CLAP_EVENT_MIDI2, // raw midi 2 event; midi2 attribute }; typedef int32_t clap_event_type; @@ -177,6 +178,11 @@ typedef struct clap_event_midi_sysex { alignas(4) uint32_t size; } clap_event_midi_sysex_t; +typedef struct clap_event_midi2 { + alignas(4) uint32_t port_index; + alignas(4) uint32_t data[4]; +} clap_event_midi2_t; + typedef struct clap_event { alignas(4) clap_event_type type; alignas(4) uint32_t time; // offset from the first sample in the process block @@ -191,6 +197,7 @@ typedef struct clap_event { clap_event_note_mask_t note_mask; clap_event_midi_t midi; clap_event_midi_sysex_t midi_sysex; + clap_event_midi2_t midi2; }; } clap_event_t;