| 61 | } |
| 62 | |
| 63 | void 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 | |
| 77 | void ModwheelToVibrato::FloatSliderUpdated(FloatSlider* slider, float oldVal, double time) |
| 78 | { |
nothing calls this directly
no test coverage detected