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

◆ midi_note_on()

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

Bind to MIDI Note On messages.

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

Definition at line 62 of file InputBinding.cpp.

65{
66 return {
67 .backend = InputType::MIDI,
68 .device_id = device_id,
69 .midi_channel = channel,
70 .midi_message_type = 0x90 // Note On
71 };
72}
@ 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_note_on().

+ Here is the caller graph for this function: