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

◆ Update()

void Key::Update ( uint32_t now_ms,
uint32_t delta_ms,
bool sustain_pedal_on )

Definition at line 36 of file Keyboard.cpp.

36 {
37 if (sustained_ && !sustain_pedal_on) {
38 sustained_ = false;
39 SetOff(now_ms);
40 }
41 sustain_pedal_on_ = sustain_pedal_on;
42 UpdateIntensity(now_ms, delta_ms);
43}
void SetOff(uint32_t now_ms)
Definition Keyboard.cpp:25
bool sustained_
Definition Keyboard.h:37
bool sustain_pedal_on_
Definition Keyboard.h:38
void UpdateIntensity(uint32_t now_ms, uint32_t delta_ms)
Definition Keyboard.cpp:71

References SetOff(), sustain_pedal_on_, sustained_, and UpdateIntensity().

+ Here is the call graph for this function: