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

Method sendNote

distrho/src/DistrhoPluginVST2.cpp:317–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315
316 #if DISTRHO_PLUGIN_WANT_MIDI_INPUT
317 void sendNote(const uint8_t channel, const uint8_t note, const uint8_t velocity)
318 {
319 uint8_t midiData[3];
320 midiData[0] = (velocity != 0 ? 0x90 : 0x80) | channel;
321 midiData[1] = note;
322 midiData[2] = velocity;
323 fNotesRingBuffer.writeCustomData(midiData, 3);
324 fNotesRingBuffer.commitWrite();
325 }
326 #endif
327
328 #if DISTRHO_PLUGIN_WANT_STATE

Callers 1

sendNoteCallbackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected