MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ midi_cc()

InputBinding MayaFlux::Core::InputBinding::midi_cc ( std::optional< uint8_t >  cc_number = {},
std::optional< uint8_t >  channel = {},
uint32_t  device_id = 0 
)
static

Bind to MIDI Control Change messages.

Parameters
cc_numberCC number (0-127, nullopt = any CC)
channelMIDI channel (1-16, nullopt = any channel)
device_idDevice ID (0 = any device)

Definition at line 43 of file InputBinding.cpp.

47{
48 return {
49 .backend = InputType::MIDI,
50 .device_id = device_id,
51 .midi_channel = channel,
52 .midi_message_type = 0xB0, // Control Change
53 .midi_cc_number = cc_number
54 };
55}
@ MIDI
MIDI controllers and instruments.
uint32_t device_id
Specific device (0 = any device)

References backend, device_id, and MayaFlux::Core::MIDI.

Referenced by MayaFlux::bind_midi_cc().

+ Here is the caller graph for this function: