DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::AlgorithmicReverb< T >::SegmentLfo Struct Reference

Modulation by segments: a straight move toward the other side, a random share (0.3 to 0.95) of the way to its limit, at a random speed (each segment 0.5 to 1.5 cycles of the rate), then the next; the output follows the segments through a critically damped second-order filter (at twice the rate, 0.2 to 20 Hz), so the delay and its rate of change are continuous. More...

#include <AlgorithmicReverb.h>

Public Member Functions

void prepare (uint32_t seed) noexcept
 
double next (int stride, double rateHz, double sr) noexcept
 

Public Attributes

double pos = 0.0
 
double vel = 0.0
 
double goal = 0.0
 
double target = 0.0
 
double step = 0.0
 
double side = 1.0
 
uint32_t state = 1
 

Detailed Description

template<FloatType T>
struct dspark::AlgorithmicReverb< T >::SegmentLfo

Modulation by segments: a straight move toward the other side, a random share (0.3 to 0.95) of the way to its limit, at a random speed (each segment 0.5 to 1.5 cycles of the rate), then the next; the output follows the segments through a critically damped second-order filter (at twice the rate, 0.2 to 20 Hz), so the delay and its rate of change are continuous.

Definition at line 1866 of file AlgorithmicReverb.h.

Member Function Documentation

◆ next()

template<FloatType T>
double dspark::AlgorithmicReverb< T >::SegmentLfo::next ( int  stride,
double  rateHz,
double  sr 
)
inlinenoexcept

Definition at line 1878 of file AlgorithmicReverb.h.

◆ prepare()

template<FloatType T>
void dspark::AlgorithmicReverb< T >::SegmentLfo::prepare ( uint32_t  seed)
inlinenoexcept

Definition at line 1871 of file AlgorithmicReverb.h.

Member Data Documentation

◆ goal

template<FloatType T>
double dspark::AlgorithmicReverb< T >::SegmentLfo::goal = 0.0

Definition at line 1868 of file AlgorithmicReverb.h.

◆ pos

template<FloatType T>
double dspark::AlgorithmicReverb< T >::SegmentLfo::pos = 0.0

Definition at line 1868 of file AlgorithmicReverb.h.

◆ side

template<FloatType T>
double dspark::AlgorithmicReverb< T >::SegmentLfo::side = 1.0

Definition at line 1868 of file AlgorithmicReverb.h.

◆ state

template<FloatType T>
uint32_t dspark::AlgorithmicReverb< T >::SegmentLfo::state = 1

Definition at line 1869 of file AlgorithmicReverb.h.

◆ step

template<FloatType T>
double dspark::AlgorithmicReverb< T >::SegmentLfo::step = 0.0

Definition at line 1868 of file AlgorithmicReverb.h.

◆ target

template<FloatType T>
double dspark::AlgorithmicReverb< T >::SegmentLfo::target = 0.0

Definition at line 1868 of file AlgorithmicReverb.h.

◆ vel

template<FloatType T>
double dspark::AlgorithmicReverb< T >::SegmentLfo::vel = 0.0

Definition at line 1868 of file AlgorithmicReverb.h.


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