Vital
Loading...
Searching...
No Matches
vital::RandomLfo::RandomState Struct Reference

Holds the internal state of the RandomLfo for a given voice or channel. More...

#include <random_lfo.h>

Public Member Functions

 RandomState ()
 

Public Attributes

poly_float offset
 Current offset (phase) in the LFO cycle.
 
poly_float last_random_value
 The previously generated random value.
 
poly_float next_random_value
 The next target random value for interpolation.
 
poly_float state1
 
poly_float state2
 
poly_float state3
 

Detailed Description

Holds the internal state of the RandomLfo for a given voice or channel.

This structure stores offsets, last and next random values, and various intermediate states required for generating continuous or discrete random waveforms.

Constructor & Destructor Documentation

◆ RandomState()

vital::RandomLfo::RandomState::RandomState ( )
inline

Member Data Documentation

◆ last_random_value

poly_float vital::RandomLfo::RandomState::last_random_value

The previously generated random value.

◆ next_random_value

poly_float vital::RandomLfo::RandomState::next_random_value

The next target random value for interpolation.

◆ offset

poly_float vital::RandomLfo::RandomState::offset

Current offset (phase) in the LFO cycle.

◆ state1

poly_float vital::RandomLfo::RandomState::state1

◆ state2

poly_float vital::RandomLfo::RandomState::state2

◆ state3

poly_float vital::RandomLfo::RandomState::state3

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