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

Method PlayNote

Source/ModwheelToVibrato.cpp:63–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void ModwheelToVibrato::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
64{
65 if (mEnabled)
66 {
67 mModulation.GetPitchBend(voiceIdx)->AppendTo(modulation.pitchBend);
68 mModulation.GetPitchBend(voiceIdx)->SetLFO(mVibratoInterval, mVibratoAmount);
69 mModulation.GetPitchBend(voiceIdx)->MultiplyIn(modulation.modWheel);
70 modulation.pitchBend = mModulation.GetPitchBend(voiceIdx);
71 modulation.modWheel = nullptr;
72 }
73
74 PlayNoteOutput(time, pitch, velocity, voiceIdx, modulation);
75}
76
77void ModwheelToVibrato::FloatSliderUpdated(FloatSlider* slider, float oldVal, double time)
78{

Callers

nothing calls this directly

Calls 4

AppendToMethod · 0.80
MultiplyInMethod · 0.80
GetPitchBendMethod · 0.45
SetLFOMethod · 0.45

Tested by

no test coverage detected