FastLED 3.9.7
Loading...
Searching...
No Matches
KeyboardState Class Reference

Detailed Description

Definition at line 55 of file Keyboard.h.

Public Member Functions

void Update (uint32_t now_ms, uint32_t delta_ms)
 
void HandleNoteOn (uint8_t midi_note, uint8_t velocity, int color_selector_value, uint32_t now_ms)
 
void HandleNoteOff (uint8_t midi_note, uint8_t velocity, uint32_t now_ms)
 
void HandleAfterTouchPoly (uint8_t note, uint8_t pressure)
 
void HandleControlChange (uint8_t d1, uint8_t d2)
 
KeyGetKey (int midi_pitch)
 

Static Public Member Functions

static uint8_t KeyIndex (int midi_pitch)
 

Public Attributes

bool sustain_pedal_
 
Key keys_ [kNumKeys]
 

Static Public Attributes

static const int kNumKeys = 88
 

Constructor & Destructor Documentation

◆ KeyboardState()

KeyboardState::KeyboardState ( )

Definition at line 190 of file Keyboard.cpp.

Member Function Documentation

◆ GetKey()

Key * KeyboardState::GetKey ( int midi_pitch)

Definition at line 207 of file Keyboard.cpp.

◆ HandleAfterTouchPoly()

void KeyboardState::HandleAfterTouchPoly ( uint8_t note,
uint8_t pressure )

Definition at line 180 of file Keyboard.cpp.

◆ HandleControlChange()

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

Definition at line 169 of file Keyboard.cpp.

◆ HandleNoteOff()

void KeyboardState::HandleNoteOff ( uint8_t midi_note,
uint8_t velocity,
uint32_t now_ms )

Definition at line 149 of file Keyboard.cpp.

◆ HandleNoteOn()

void KeyboardState::HandleNoteOn ( uint8_t midi_note,
uint8_t velocity,
int color_selector_value,
uint32_t now_ms )

Definition at line 116 of file Keyboard.cpp.

◆ KeyIndex()

uint8_t KeyboardState::KeyIndex ( int midi_pitch)
static

Definition at line 202 of file Keyboard.cpp.

◆ Update()

void KeyboardState::Update ( uint32_t now_ms,
uint32_t delta_ms )

Definition at line 196 of file Keyboard.cpp.

Member Data Documentation

◆ keys_

Key KeyboardState::keys_[kNumKeys]

Definition at line 103 of file Keyboard.h.

◆ kNumKeys

const int KeyboardState::kNumKeys = 88
static

Definition at line 101 of file Keyboard.h.

◆ sustain_pedal_

bool KeyboardState::sustain_pedal_

Definition at line 102 of file Keyboard.h.


The documentation for this class was generated from the following files: