| 2096 | } |
| 2097 | |
| 2098 | void Push2Control::OnMidiPitchBend(MidiPitchBend& pitchBend) |
| 2099 | { |
| 2100 | if (mGridControlInterface != nullptr) |
| 2101 | { |
| 2102 | bool handled = mGridControlInterface->OnPush2Control(this, kMidiMessage_PitchBend, pitchBend.mChannel, pitchBend.mValue); |
| 2103 | if (handled) |
| 2104 | return; |
| 2105 | } |
| 2106 | |
| 2107 | float value = pitchBend.mValue / MidiDevice::kPitchBendMax; |
| 2108 | TheSynth->SetZoomLevel(pow(2, value * 2 - 1) + .1f); |
| 2109 | |
| 2110 | //ofLog() << "pitchbend " << pitchBend.mChannel << " " << pitchBend.mValue; |
| 2111 | } |
| 2112 | |
| 2113 | int Push2Control::GetGridControllerOption1Control() const |
| 2114 | { |
no test coverage detected