FastLED 3.9.12
|
Definition at line 22 of file Keyboard.h.
Public Member Functions | |
void | SetOn (uint8_t vel, const ColorHSV &color, uint32_t now_ms) |
void | SetOff (uint32_t now_ms) |
void | SetSustained () |
void | Update (uint32_t now_ms, uint32_t delta_ms, bool sustain_pedal_on) |
float | VelocityFactor () const |
float | CalcAttackDecayFactor (uint32_t delta_ms) const |
float | AttackRemapFactor (uint32_t now_ms) |
float | IntensityFactor () const |
void | UpdateIntensity (uint32_t now_ms, uint32_t delta_ms) |
Public Attributes | |
bool | on_ |
bool | sustained_ |
bool | sustain_pedal_on_ |
uint8_t | velocity_ |
int | idx_ |
unsigned long | event_time_ |
float | intensity_ |
ColorHSV | orig_color_ |
ColorHSV | curr_color_ |
Key::Key | ( | ) |
Definition at line 11 of file Keyboard.cpp.
float Key::AttackRemapFactor | ( | uint32_t | now_ms | ) |
Definition at line 59 of file Keyboard.cpp.
float Key::CalcAttackDecayFactor | ( | uint32_t | delta_ms | ) | const |
Definition at line 47 of file Keyboard.cpp.
float Key::IntensityFactor | ( | ) | const |
Definition at line 67 of file Keyboard.cpp.
void Key::SetOff | ( | uint32_t | now_ms | ) |
Definition at line 25 of file Keyboard.cpp.
void Key::SetOn | ( | uint8_t | vel, |
const ColorHSV & | color, | ||
uint32_t | now_ms ) |
Definition at line 14 of file Keyboard.cpp.
void Key::SetSustained | ( | ) |
Definition at line 32 of file Keyboard.cpp.
void Key::Update | ( | uint32_t | now_ms, |
uint32_t | delta_ms, | ||
bool | sustain_pedal_on ) |
Definition at line 36 of file Keyboard.cpp.
void Key::UpdateIntensity | ( | uint32_t | now_ms, |
uint32_t | delta_ms ) |
Definition at line 71 of file Keyboard.cpp.
float Key::VelocityFactor | ( | ) | const |
Definition at line 45 of file Keyboard.cpp.
ColorHSV Key::curr_color_ |
Definition at line 48 of file Keyboard.h.
unsigned long Key::event_time_ |
Definition at line 41 of file Keyboard.h.
int Key::idx_ |
Definition at line 40 of file Keyboard.h.
float Key::intensity_ |
Definition at line 46 of file Keyboard.h.
bool Key::on_ |
Definition at line 36 of file Keyboard.h.
ColorHSV Key::orig_color_ |
Definition at line 47 of file Keyboard.h.
bool Key::sustain_pedal_on_ |
Definition at line 38 of file Keyboard.h.
bool Key::sustained_ |
Definition at line 37 of file Keyboard.h.
uint8_t Key::velocity_ |
Definition at line 39 of file Keyboard.h.