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

Method PlayNote

Source/PitchToValue.cpp:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void PitchToValue::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
67{
68 if (mEnabled && velocity > 0)
69 {
70 for (size_t i = 0; i < mTargets.size(); ++i)
71 {
72 if (mTargets[i] != nullptr)
73 mTargets[i]->SetValue(pitch, time);
74 }
75 }
76}
77
78void PitchToValue::SaveLayout(ofxJSONElement& moduleInfo)
79{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
SetValueMethod · 0.45

Tested by

no test coverage detected