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

Method PlayNote

Source/PitchDive.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void PitchDive::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
61{
62 if (mEnabled && velocity > 0 && mStart != 0 && mTime != 0)
63 {
64 ComputeSliders(0);
65 auto* pitchBend = mModulation.GetPitchBend(voiceIdx);
66 pitchBend->RampValue(time, mStart, 0, mTime);
67 pitchBend->AppendTo(modulation.pitchBend);
68 modulation.pitchBend = pitchBend;
69 }
70
71 PlayNoteOutput(time, pitch, velocity, voiceIdx, modulation);
72}
73
74void PitchDive::FloatSliderUpdated(FloatSlider* slider, float oldVal, double time)
75{

Callers

nothing calls this directly

Calls 3

RampValueMethod · 0.80
AppendToMethod · 0.80
GetPitchBendMethod · 0.45

Tested by

no test coverage detected