MayaFlux 0.2.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 57 of file InputBinding.cpp.

60{
61 return {
62 .backend = InputType::MIDI,
63 .device_id = device_id,
64 .midi_channel = channel,
65 .midi_message_type = 0x90 // Note On
66 };
67}
@ 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: