32 vid_fx->setFade(0, 0);
72 bool ok =
mEffects.get(index, &removedFx);
FxPtr getFx(int index) FL_NO_EXCEPT
Retrieves an effect from the engine without removing it.
FxPtr removeFx(int index) FL_NO_EXCEPT
Requests removal of an effect from the engine, which might not happen immediately (for example the Fx...
fl::vector< AudioFrame > mAudioBack
void setAudio(fl::shared_ptr< fl::audio::Processor > proc) FL_NO_EXCEPT
Connects an audio processor for automatic audio delivery.
int addFx(FxPtr effect) FL_NO_EXCEPT
Adds a new effect to the engine.
bool nextFx(u16 transition_ms=500) FL_NO_EXCEPT
Transitions to the next effect in the sequence.
bool mDurationSet
Flag indicating if a new transition has been set.
bool setNextFx(int index, u16 duration) FL_NO_EXCEPT
Sets the next effect to transition to.
void pushAudioFrame(const AudioFrame &frame) FL_NO_EXCEPT
Pushes an audio frame into the back buffer.
FxCompositor mCompositor
Handles effect transitions and rendering.
~FxEngine() FL_NO_EXCEPT
Destructor for FxEngine.
int mCurrId
Id of the current effect.
fl::vector< AudioFrame > mAudioFront
fl::shared_ptr< fl::audio::Processor > mAudioProcessor
u16 mDuration
Duration of the current transition.
IntFxMap mEffects
Collection of effects.
bool draw(fl::u32 now, fl::span< CRGB > outputBuffer) FL_NO_EXCEPT
Renders the current effect or transition to the output buffer.
FxEngine(u16 numLeds, bool interpolate=true) FL_NO_EXCEPT
Constructs an FxEngine with the specified number of LEDs.
static Scheduler & instance() FL_NO_EXCEPT
void update() FL_NO_EXCEPT
#define FASTLED_FX_ENGINE_MAX_FX
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
shared_ptr< T > make_shared(Args &&... args) FL_NO_EXCEPT
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Base definition for an LED controller.
fl::u32 timestamp
When this audio sample was captured (ms)
float volume
Overall volume (0.0-1.0, normalized RMS)
float mid
Mid energy (0.0-1.0, normalized)
float bass
Bass energy (0.0-1.0, normalized)
bool beat
True if a beat was detected this sample.
float treble
Treble energy (0.0-1.0, normalized)
Lightweight snapshot of pre-computed audio analysis for one audio sample.
Task scheduler — manages timer and frame-based tasks.