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

◆ on_note()

void MayaFlux::Nodes::Input::MIDINode::on_note ( std::function< void(uint8_t note, uint8_t velocity, bool is_on)>  callback)
inline

Callback for note events with note number and velocity.

Parameters
callbackFunction receiving (note_number, velocity, is_note_on)

Definition at line 156 of file MIDINode.hpp.

157 {
158 m_note_callbacks.push_back(std::move(callback));
159 }
std::vector< NoteCallback > m_note_callbacks
Definition MIDINode.hpp:186