LMMS
Loading...
Searching...
No Matches
dsp::sine_multi_lfo< T, Voices > Class Template Reference

#include <multichorus.h>

Public Member Functions

 sine_multi_lfo ()
uint32_t get_voices () const
void set_voices (uint32_t value)
void set_overlap (float overlap)
int get_value (uint32_t voice) const
 Get LFO value for given voice, returns a values in range of [-65536, 65535] (or close).
void step ()
get_scale () const
void reset ()

Public Attributes

chorus_phase phase
 Current LFO phase.
chorus_phase dphase
 LFO phase increment.
chorus_phase vphase
 LFO phase per-voice increment.
uint32_t voices
 Current number of voices.
scale
 Current scale (output multiplier).
int32_t voice_offset
 Per-voice offset unit (the value that says how much the voices are offset with respect to each other in non-100% 'overlap' mode), scaled so that full range = 131072.
uint32_t voice_depth
 LFO Range scaling for non-100% overlap.

Protected Attributes

sine_table< int, 4096, 65535 > sine

Constructor & Destructor Documentation

◆ sine_multi_lfo()

template<class T, uint32_t Voices>
dsp::sine_multi_lfo< T, Voices >::sine_multi_lfo ( )
inline

Member Function Documentation

◆ get_scale()

template<class T, uint32_t Voices>
T dsp::sine_multi_lfo< T, Voices >::get_scale ( ) const
inline

◆ get_value()

template<class T, uint32_t Voices>
int dsp::sine_multi_lfo< T, Voices >::get_value ( uint32_t voice) const
inline

Get LFO value for given voice, returns a values in range of [-65536, 65535] (or close).

◆ get_voices()

template<class T, uint32_t Voices>
uint32_t dsp::sine_multi_lfo< T, Voices >::get_voices ( ) const
inline

◆ reset()

template<class T, uint32_t Voices>
void dsp::sine_multi_lfo< T, Voices >::reset ( )
inline

◆ set_overlap()

template<class T, uint32_t Voices>
void dsp::sine_multi_lfo< T, Voices >::set_overlap ( float overlap)
inline

◆ set_voices()

template<class T, uint32_t Voices>
void dsp::sine_multi_lfo< T, Voices >::set_voices ( uint32_t value)
inline

◆ step()

template<class T, uint32_t Voices>
void dsp::sine_multi_lfo< T, Voices >::step ( )
inline

Member Data Documentation

◆ dphase

template<class T, uint32_t Voices>
chorus_phase dsp::sine_multi_lfo< T, Voices >::dphase

LFO phase increment.

◆ phase

template<class T, uint32_t Voices>
chorus_phase dsp::sine_multi_lfo< T, Voices >::phase

Current LFO phase.

◆ scale

template<class T, uint32_t Voices>
T dsp::sine_multi_lfo< T, Voices >::scale

Current scale (output multiplier).

◆ sine

template<class T, uint32_t Voices>
sine_table<int, 4096, 65535> dsp::sine_multi_lfo< T, Voices >::sine
protected

◆ voice_depth

template<class T, uint32_t Voices>
uint32_t dsp::sine_multi_lfo< T, Voices >::voice_depth

LFO Range scaling for non-100% overlap.

◆ voice_offset

template<class T, uint32_t Voices>
int32_t dsp::sine_multi_lfo< T, Voices >::voice_offset

Per-voice offset unit (the value that says how much the voices are offset with respect to each other in non-100% 'overlap' mode), scaled so that full range = 131072.

◆ voices

template<class T, uint32_t Voices>
uint32_t dsp::sine_multi_lfo< T, Voices >::voices

Current number of voices.

◆ vphase

template<class T, uint32_t Voices>
chorus_phase dsp::sine_multi_lfo< T, Voices >::vphase

LFO phase per-voice increment.


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