MCPcopy Create free account
hub / github.com/FastLED/FastLED / driveDisorganized

Method driveDisorganized

examples/AnimartrixRing/sound_orchestrator.cpp:181–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181float SoundOrchestrator::driveDisorganized(fl::u32 /*nowMs*/, float manualSpeedScalar) {
182 if (!mProcessor) return manualSpeedScalar;
183 // Map vibe.bass (self-normalizing, ~1.0 = average) into a speed modulation.
184 // This is the "time warp as secondary effect" knob: it still exists, but
185 // it's bounded by disorganizedSpeedSpan rather than dominating.
186 const float bass = mProcessor->getVibeBass(); // ~1.0 nominal
187 const float bassBoost = (bass - 1.0f) * mCfg.disorganizedSpeedSpan;
188 float speed = 1.0f + bassBoost;
189 if (speed < 0.1f) speed = 0.1f;
190 if (speed > 4.0f) speed = 4.0f;
191 return speed * manualSpeedScalar;
192}
193
194float SoundOrchestrator::driveBpmLocked(fl::u32 nowMs, float manualSpeedScalar) {
195 if (!mProcessor) return manualSpeedScalar;

Callers

nothing calls this directly

Calls 1

getVibeBassMethod · 0.80

Tested by

no test coverage detected