86 {
88
97
98
102
105
109
115
116
117 CRGBPalette16 bluePalette(
CRGB(0, 0, 40),
CRGB(0, 40, 120),
118 CRGB(100, 160, 255),
CRGB(255, 255, 255));
124
125
127
128
129
130
131
132
136
137
140 float bass = levels.
bass;
141
142
145
146
148 float intensity =
149 fl::clamp((bass - thresh) / thresh, 0.3f, 1.0f);
150 int count = 1 + int(intensity * 2.0f);
151 for (int i = 0; i < count; i++) {
153 }
154 }
155
156
160
161 float intensity =
162 fl::clamp((bass - thresh) / thresh, 0.4f, 1.0f);
166 }
167 });
168
169
170 audio->onDropImpact([&](
float impact) {
175 });
176 }
177}
fl::UIAudio audio("Audio Input")
fl::FxEngine fxEngine(NUM_LEDS)
fl::UIAudio audio_ui("Audio Input")
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
fl::UISlider speedSlider("Particle Speed", 2.6f, 0.1f, 3.0f, 0.1f)
fl::UICheckbox enableMeteors("Beat Meteors", true)
fl::UISlider ambientTrailSlider("Ambient Trail", 217.0f, 0.0f, 255.0f, 1.0f)
fl::UISlider minVelocitySlider("Min Velocity", 0.01f, 0.01f, 0.5f, 0.01f)
fl::UICheckbox enableAmbient("Ambient Particles", true)
fl::UISlider ambientDecaySlider("Ambient Fade", 0.955f, 0.90f, 1.0f, 0.005f)
fl::UICheckbox enableTimeWarp("Noise Time-Warp", false)
fl::UISlider debrisVelDecaySlider("Debris Drag", 0.95f, 0.85f, 1.0f, 0.01f)
float noiseTimeMultiplier
fl::UISlider dragSlider("Particle Drag", 0.06f, 0.0f, 1.0f, 0.01f)
fl::UISlider meteorTrailSlider("Meteor Trail", 171.0f, 0.0f, 255.0f, 1.0f)
fl::UISlider debrisDecaySlider("Debris Fade", 0.96f, 0.80f, 1.0f, 0.01f)
fl::UISlider meteorThreshold("Meteor Threshold", 1.5f, 1.5f, 6.0f, 0.1f)
fl::PerlinParticlePunch sailboatFx(NUM_LEDS)
fl::UISlider ambientThreshold("Ambient Threshold", 1.0f, 0.5f, 3.0f, 0.1f)
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
constexpr ChipsetTimingConfig makeTimingConfig() FL_NOEXCEPT
Convert compile-time CHIPSET type to runtime timing config.
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NOEXCEPT
Configuration for a single LED channel.
Optional channel configuration parameters All fields have sensible defaults and can be overridden as ...
Clockless chipset configuration (single data pin)