| 103 | } |
| 104 | |
| 105 | void MPETweaker::FloatSliderUpdated(FloatSlider* slider, float oldVal, double time) |
| 106 | { |
| 107 | if (slider == mPitchBendMultiplierSlider) |
| 108 | { |
| 109 | for (int voiceIdx = -1; voiceIdx < kNumVoices; ++voiceIdx) |
| 110 | mModulationMult.GetPitchBend(voiceIdx)->SetValue(mPitchBendMultiplier); |
| 111 | } |
| 112 | if (slider == mPitchBendOffsetSlider) |
| 113 | { |
| 114 | for (int voiceIdx = -1; voiceIdx < kNumVoices; ++voiceIdx) |
| 115 | mModulationOffset.GetPitchBend(voiceIdx)->SetValue(mPitchBendOffset); |
| 116 | } |
| 117 | |
| 118 | if (slider == mPressureMultiplierSlider) |
| 119 | { |
| 120 | for (int voiceIdx = -1; voiceIdx < kNumVoices; ++voiceIdx) |
| 121 | mModulationMult.GetPressure(voiceIdx)->SetValue(mPressureMultiplier); |
| 122 | } |
| 123 | if (slider == mPressureOffsetSlider) |
| 124 | { |
| 125 | for (int voiceIdx = -1; voiceIdx < kNumVoices; ++voiceIdx) |
| 126 | mModulationOffset.GetPressure(voiceIdx)->SetValue(mPressureOffset); |
| 127 | } |
| 128 | |
| 129 | if (slider == mModWheelMultiplierSlider) |
| 130 | { |
| 131 | for (int voiceIdx = -1; voiceIdx < kNumVoices; ++voiceIdx) |
| 132 | mModulationMult.GetModWheel(voiceIdx)->SetValue(mModWheelMultiplier); |
| 133 | } |
| 134 | if (slider == mModWheelOffsetSlider) |
| 135 | { |
| 136 | for (int voiceIdx = -1; voiceIdx < kNumVoices; ++voiceIdx) |
| 137 | mModulationOffset.GetModWheel(voiceIdx)->SetValue(mModWheelOffset); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | void MPETweaker::CheckboxUpdated(Checkbox* checkbox, double time) |
| 142 | { |
nothing calls this directly
no test coverage detected