FastLED 3.9.15
Loading...
Searching...
No Matches

◆ HandleControlChange()

void KeyboardState::HandleControlChange ( uint8_t d1,
uint8_t d2 )

Definition at line 168 of file Keyboard.cpp.

168 {
169 // Note that d1 and d2 just mean "data-1" and "data-2".
170 // TODO: Find out what d1 and d2 should be called.
171 const bool foot_pedal = (d1 == kMidiFootPedal);
172
173 if (foot_pedal) {
174 // Spec says that if that values 0-63 are OFF, otherwise ON.
175 mSustainPedal = (d2 >= 64);
176 }
177}
bool mSustainPedal
Definition Keyboard.h:102
@ kMidiFootPedal
Definition settings.h:22

References kMidiFootPedal, and mSustainPedal.