MCPcopy Create free account
hub / github.com/DISTRHO/DPF / sendNote

Method sendNote

distrho/src/DistrhoPluginJACK.cpp:548–556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546
547# if DISTRHO_PLUGIN_WANT_MIDI_INPUT
548 void sendNote(const uint8_t channel, const uint8_t note, const uint8_t velocity)
549 {
550 uint8_t midiData[3];
551 midiData[0] = (velocity != 0 ? 0x90 : 0x80) | channel;
552 midiData[1] = note;
553 midiData[2] = velocity;
554 fNotesRingBuffer.writeCustomData(midiData, 3);
555 fNotesRingBuffer.commitWrite("PluginJack::sendNote");
556 }
557# endif
558
559# if DISTRHO_PLUGIN_WANT_STATE

Callers 1

sendNoteCallbackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected