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

◆ GetKey()

Key * KeyboardState::GetKey ( int midi_pitch)

Definition at line 209 of file Keyboard.cpp.

209 {
210 uint8_t idx = KeyIndex(midi_pitch);
211 return &mKeys[idx];
212}
static uint8_t KeyIndex(int midi_pitch)
Definition Keyboard.cpp:204
Key mKeys[kNumKeys]
Definition Keyboard.h:103
unsigned char uint8_t
Definition s16x16x4.h:209

References KeyIndex(), and mKeys.

Referenced by HandleNoteOff(), and HandleNoteOn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: