Definition at line 99 of file Painter.cpp.
103 {
106
107 const float time_delta_ms =
static_cast<float>(now_ms - key.
mEventTime);
108
111
112
113
114
115
118
119
120
122 }
123
125
126 switch (vis_state) {
129 break;
130 }
133 break;
134 }
137 break;
138 }
141 break;
142 }
143
146 break;
147 }
148
151 break;
152 }
153
156 break;
157 }
158
159 default:
161 break;
162 }
163}
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)
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)
References LedColumns::array, dprint, LedRopeInterface::DrawRepeat(), LedRopeInterface::DrawSequentialRepeat(), kBlockNote, kBrightSurprise, kColumnNote, keyboard, KeyboardState::kNumKeys, kNumKeys, kNumLightsPerNote, kVegas, kVUMidNote, kVUNote, kVUSpaceInvaders, LedLayoutArray(), Key::mCurrColor, Key::mEventTime, Key::mOn, PaintBrightSurprise(), PaintVuMidNotesFade(), PaintVuNotes(), PaintVuSpaceInvaders(), ColorHSV::s_, LedRopeInterface::Set(), ColorHSV::ToRGB(), ColorHSV::v_, and VegasVisualizer().
Referenced by loop().