167 {
168
169
170 FASTLED_WARN(
"\n\n############## VU NOTES ################\n\n");
171
173
174 for (int i = 0; i < led_column_table_length; ++i) {
175 const Key& key = keyboard.
keys_[i];
176
177
178
179 bool black_key = false;
180 switch (key.
idx_ % 12) {
181 case 1:
182 case 4:
183 case 6:
184 case 9:
185 case 11:
186 black_key = true;
187 break;
188 }
189
190 const int pixel_count = led_column_table[i];
192
193 const int black_pixel_count = pixel_count - draw_pixel_count;
195
196
197 const bool reverse_correct = black_key == (key.
idx_ % 2);
198
199 if (reverse_correct) {
200 for (int j = 0; j < draw_pixel_count; ++j) {
201 if (j < draw_pixel_count - 1) {
203 } else {
204
205 ColorHSV hsv(random(512) / 512.f, random(512) / 512.f, 1.0);
207 }
208 }
209
210 for (int j = 0; j < black_pixel_count; ++j) {
212 }
213 } else {
214 for (int j = 0; j < black_pixel_count; ++j) {
216 }
217
218 for (int j = draw_pixel_count - 1; j >= 0; --j) {
219 if (j < draw_pixel_count - 1) {
221 } else {
222
223 ColorHSV hsv(random(512) / 512.f, random(512) / 512.f, 1.0);
225 }
226 }
227 }
228 }
230}
virtual void RawDrawPixel(const Color3i &c)=0
virtual void RawCommitDraw()=0
virtual void RawBeginDraw()=0
virtual Color3i * GetIterator(int i)=0