Vital
Loading...
Searching...
No Matches
vital::SynthLfo::LfoState Struct Reference

Holds the state of the LFO for either control-rate or audio-rate processing. More...

#include <synth_lfo.h>

Public Attributes

poly_float delay_time_passed = 0.0f
 How much time has passed since the LFO was triggered or started its delay.
 
poly_float fade_amplitude = 0.0f
 The current fade-in amplitude value.
 
poly_float smooth_value = 0.0f
 The stored value for applying smoothing between updates.
 
poly_float fade_amount = 0.0f
 Controls how much fade has been applied (not directly updated here).
 
poly_float offset = 0.0f
 The current LFO offset (phase offset).
 
poly_float phase = 0.0f
 The current LFO phase.
 

Detailed Description

Holds the state of the LFO for either control-rate or audio-rate processing.

Each LfoState stores timing and smoothing variables to ensure consistent and correct LFO behavior after triggers, fades, and delays.

Member Data Documentation

◆ delay_time_passed

poly_float vital::SynthLfo::LfoState::delay_time_passed = 0.0f

How much time has passed since the LFO was triggered or started its delay.

◆ fade_amount

poly_float vital::SynthLfo::LfoState::fade_amount = 0.0f

Controls how much fade has been applied (not directly updated here).

◆ fade_amplitude

poly_float vital::SynthLfo::LfoState::fade_amplitude = 0.0f

The current fade-in amplitude value.

◆ offset

poly_float vital::SynthLfo::LfoState::offset = 0.0f

The current LFO offset (phase offset).

◆ phase

poly_float vital::SynthLfo::LfoState::phase = 0.0f

The current LFO phase.

◆ smooth_value

poly_float vital::SynthLfo::LfoState::smooth_value = 0.0f

The stored value for applying smoothing between updates.


The documentation for this struct was generated from the following file: