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

Method PlayNote

Source/RingModulator.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void RingModulator::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
121{
122 if (velocity > 0)
123 {
124 float freq = TheScale->PitchToFreq(pitch);
125 mFreqRamp.Start(time, freq, time + mGlideTime);
126 mFreq = freq;
127 }
128}
129
130void RingModulator::ButtonClicked(ClickButton* button, double time)
131{

Callers

nothing calls this directly

Calls 2

PitchToFreqMethod · 0.80
StartMethod · 0.45

Tested by

no test coverage detected