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

Method sendNote

distrho/src/DistrhoUIDSSI.cpp:203–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201
202#if DISTRHO_PLUGIN_WANT_MIDI_INPUT
203 void sendNote(const uint8_t channel, const uint8_t note, const uint8_t velocity)
204 {
205 if (fOscData.server == nullptr)
206 return;
207 if (channel > 0xF)
208 return;
209
210 uint8_t mdata[4] = {
211 0,
212 static_cast<uint8_t>(channel + (velocity != 0 ? 0x90 : 0x80)),
213 note,
214 velocity
215 };
216 fOscData.send_midi(mdata);
217 }
218#endif
219
220private:

Callers 1

sendNoteCallbackMethod · 0.45

Calls 1

send_midiMethod · 0.80

Tested by

no test coverage detected