FastLED 3.9.12
Loading...
Searching...
No Matches
Key Struct Reference

Detailed Description

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_
 

Constructor & Destructor Documentation

◆ Key()

Key::Key ( )

Definition at line 11 of file Keyboard.cpp.

Member Function Documentation

◆ AttackRemapFactor()

float Key::AttackRemapFactor ( uint32_t now_ms)

Definition at line 59 of file Keyboard.cpp.

◆ CalcAttackDecayFactor()

float Key::CalcAttackDecayFactor ( uint32_t delta_ms) const

Definition at line 47 of file Keyboard.cpp.

◆ IntensityFactor()

float Key::IntensityFactor ( ) const

Definition at line 67 of file Keyboard.cpp.

◆ SetOff()

void Key::SetOff ( uint32_t now_ms)

Definition at line 25 of file Keyboard.cpp.

◆ SetOn()

void Key::SetOn ( uint8_t vel,
const ColorHSV & color,
uint32_t now_ms )

Definition at line 14 of file Keyboard.cpp.

◆ SetSustained()

void Key::SetSustained ( )

Definition at line 32 of file Keyboard.cpp.

◆ Update()

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

Definition at line 36 of file Keyboard.cpp.

◆ UpdateIntensity()

void Key::UpdateIntensity ( uint32_t now_ms,
uint32_t delta_ms )

Definition at line 71 of file Keyboard.cpp.

◆ VelocityFactor()

float Key::VelocityFactor ( ) const

Definition at line 45 of file Keyboard.cpp.

Member Data Documentation

◆ curr_color_

ColorHSV Key::curr_color_

Definition at line 48 of file Keyboard.h.

◆ event_time_

unsigned long Key::event_time_

Definition at line 41 of file Keyboard.h.

◆ idx_

int Key::idx_

Definition at line 40 of file Keyboard.h.

◆ intensity_

float Key::intensity_

Definition at line 46 of file Keyboard.h.

◆ on_

bool Key::on_

Definition at line 36 of file Keyboard.h.

◆ orig_color_

ColorHSV Key::orig_color_

Definition at line 47 of file Keyboard.h.

◆ sustain_pedal_on_

bool Key::sustain_pedal_on_

Definition at line 38 of file Keyboard.h.

◆ sustained_

bool Key::sustained_

Definition at line 37 of file Keyboard.h.

◆ velocity_

uint8_t Key::velocity_

Definition at line 39 of file Keyboard.h.


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