Gin
|
State for an oscillator. More...
Public Member Functions | |
OscState (double sr) | |
void | incPhase (float note) |
void | reset () override |
Public Member Functions inherited from FuncState | |
FuncState (double sr) | |
virtual | ~FuncState ()=default |
virtual void | setSampleRate (double sr) |
Public Attributes | |
float | phase { juce::Random::getSystemRandom().nextFloat() } |
float | lastNote = -1.0f |
float | frequency = -1.0f |
float | delta = -1.0f |
Public Attributes inherited from FuncState | |
double | sampleRate = 44100.0 |
State for an oscillator.
OscState::OscState | ( | double | sr | ) |
void OscState::incPhase | ( | float | note | ) |
References delta, frequency, getMidiNoteInHertz(), lastNote, phase, and FuncState::sampleRate.
float OscState::phase { juce::Random::getSystemRandom().nextFloat() } |
Referenced by incPhase(), and reset().
float OscState::lastNote = -1.0f |
Referenced by incPhase().
float OscState::frequency = -1.0f |
Referenced by incPhase().
float OscState::delta = -1.0f |
Referenced by incPhase().