102 {
104 Key& key = keyboard->
keys_[i];
105
106 const float time_delta_ms =
static_cast<float>(now_ms - key.
event_time_);
107
110
111
112
113
114
117
118
119
121 }
122
124
125 switch (vis_state) {
128 break;
129 }
132 break;
133 }
136 break;
137 }
140 break;
141 }
142
145 break;
146 }
147
150 break;
151 }
152
155 break;
156 }
157
158 default:
160 break;
161 }
162}
static const int kNumKeys
virtual void Set(int i, const Color3i &c)=0
virtual void DrawRepeat(const int *value_array, int array_length)=0
virtual void DrawSequentialRepeat(int repeat)=0
LedColumns LedLayoutArray()
float CalcLuminance(float time_delta_ms, bool sustain_pedal_on, const Key &key, int key_idx)
float CalcSaturation(float time_delta_ms, const ColorHSV &color, bool key_on)
unsigned long event_time_
static void PaintBrightSurprise(const KeyboardState &keyboard, const int *led_column_table, int led_column_table_length, LedRopeInterface *led_rope)
static void PaintVuNotes(uint32_t now_ms, const KeyboardState &keyboard, const int *led_column_table, int led_column_table_length, LedRopeInterface *led_rope)
static void PaintVuSpaceInvaders(uint32_t now_ms, const KeyboardState &keyboard, const int *led_column_table, int led_column_table_length, LedRopeInterface *led_rope)
static void PaintVuMidNotesFade(uint32_t delta_ms, const KeyboardState &keyboard, const int *led_column_table, int led_column_table_length, LedRopeInterface *led_rope)
static void VegasVisualizer(const KeyboardState &keyboard, const int *led_column_table, int led_column_table_length, LedRopeInterface *led_rope)