| 58 | } |
| 59 | |
| 60 | void 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 | |
| 74 | void PitchDive::FloatSliderUpdated(FloatSlider* slider, float oldVal, double time) |
| 75 | { |
nothing calls this directly
no test coverage detected