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

Method PlayNote

Source/FreqDelay.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void FreqDelay::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
83{
84 if (velocity > 0)
85 {
86 float freq = TheScale->PitchToFreq(pitch);
87 float ms = 1000 / freq;
88 mDelayEffect.SetDelay(ms);
89 }
90}
91
92void FreqDelay::DrawModule()
93{

Callers

nothing calls this directly

Calls 2

PitchToFreqMethod · 0.80
SetDelayMethod · 0.80

Tested by

no test coverage detected