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 34 of file Keyboard.cpp.

34 {
35 if (sustained_ && !sustain_pedal_on) {
36 sustained_ = false;
37 SetOff(now_ms);
38 }
39 sustain_pedal_on_ = sustain_pedal_on;
40 UpdateIntensity(now_ms, delta_ms);
41}
void SetOff(uint32_t now_ms)
Definition Keyboard.cpp:23
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:69

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

+ Here is the call graph for this function: