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

◆ try_midi()

const InputValue::MIDIMessage * MayaFlux::Core::InputValue::try_midi ( ) const
noexcept

Safe MIDI extraction.

Returns
Pointer to MIDIMessage, or nullptr if this is not MIDI.

Definition at line 287 of file InputBinding.cpp.

288{
289 if (type != Type::MIDI)
290 return nullptr;
291 return &std::get<MIDIMessage>(data);
292}
@ MIDI
Structured MIDI message.
std::variant< double, std::vector< double >, std::vector< uint8_t >, MIDIMessage, OSCMessage > data

References data, MIDI, and type.