|
Gin
|
Base class for storing state in audio functions. More...
#include <gin_audiofunctions.h>
Public Member Functions | |
| FuncState (double sr) | |
| virtual | ~FuncState ()=default |
| virtual void | setSampleRate (double sr) |
| virtual void | reset () |
Public Attributes | |
| double | sampleRate = 44100.0 |
Base class for storing state in audio functions.
FuncState provides a base for stateful audio functions used in AudioEquationParser. While pure functions don't have state, audio filters and oscillators need to maintain internal state between samples (filter histories, oscillator phases, etc.). This class manages that state and provides sample rate change notification.
All audio function state classes (filter states, oscillator states) derive from this base to provide consistent state management and sample rate handling.
| FuncState::FuncState | ( | double | sr | ) |
|
virtualdefault |
References sampleRate.
Reimplemented in OscState, HP12State, HP24State, BP12State, BP24State, LP12State, LP24State, Notch12State, and Notch24State.
| double FuncState::sampleRate = 44100.0 |