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

◆ on_pitch_bend()

HookId MayaFlux::Nodes::Input::MIDINode::on_pitch_bend ( std::function< void(int16_t bend)>  callback)
inline

Callback for pitch bend with 14-bit value.

Definition at line 190 of file MIDINode.hpp.

191 {
193 [this, callback](NodeContext&) {
195 callback(static_cast<int16_t>(((m_last_midi_message->data2 << 7) | m_last_midi_message->data1) - 8192));
196 }
197 },
198 callback.target_type());
199 }
PickCallback callback
Definition Picker.cpp:22
HookId add(NodeHook hook, const std::type_info &key, uint8_t tag=0, std::array< double, 2 > params={})
Appends a hook with no duplicate check and returns its id.
std::optional< Core::InputValue::MIDIMessage > m_last_midi_message
Definition MIDINode.hpp:208

References callback.