MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / PlayNote

Method PlayNote

Source/NoteSorter.cpp:57–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void NoteSorter::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
58{
59 bool foundPitch = false;
60
61 for (int i = 0; i < mDestinationCables.size(); ++i)
62 {
63 if (pitch == mPitch[i])
64 {
65 mDestinationCables[i]->PlayNoteOutput(time, pitch, velocity, voiceIdx, modulation);
66 foundPitch = true;
67 }
68 }
69
70 if (!foundPitch)
71 PlayNoteOutput(time, pitch, velocity, voiceIdx, modulation);
72}
73
74void NoteSorter::SendCC(int control, int value, int voiceIdx)
75{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
PlayNoteOutputMethod · 0.80

Tested by

no test coverage detected