MayaFlux 0.4.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 282 of file InputBinding.cpp.

283{
284 if (type != Type::MIDI)
285 return nullptr;
286 return &std::get<MIDIMessage>(data);
287}
@ MIDI
Structured MIDI message.
std::variant< double, std::vector< double >, std::vector< uint8_t >, MIDIMessage, OSCMessage > data

References data, MIDI, and type.