audio/midi_mapping.h file

Contents

Mapping MIDI CC to controls.

Classes

struct MidiMapping
A mapping from a MIDI value to a destination.
struct MidiMappings
All MIDI mappings in Zrythm.

Typedefs

using MidiMapping = struct MidiMapping
A mapping from a MIDI value to a destination.
using MidiMappings = struct MidiMappings
All MIDI mappings in Zrythm.

Functions

void midi_mappings_init_loaded(MidiMappings* self)
Initializes the MidiMappings after a Project is loaded.
auto midi_mappings_new(void) -> MidiMappings*
Returns a newly allocated MidiMappings.
void midi_mappings_bind(MidiMappings* self, midi_byte_t* buf, ExtPort* device_port, Port* dest_port)
Binds the CC represented by the given raw buffer (must be size 3) to the given Port.
void midi_mappings_apply(MidiMappings* self, midi_byte_t* buf)
Applies the given buffer to the matching ports.
auto midi_mappings_get_for_port(MidiMappings* self, Port* dest_port, int* size) -> MidiMapping**
Get MIDI mappings for the given port.