1 #ifndef NOISE_OSCILLATOR_HPP
2 #define NOISE_OSCILLATOR_HPP
float randf()
generate a random number between 0 and 1
The NoiseOscillator generates random values in the range [-1, 1] at a given frequency.
static constexpr float begin_phase
void reset()
Reset oscillator (typically resets phase)
static constexpr float end_phase
float generate()
Produce the next consecutive sample.
NoiseOscillator(float sr)
void setSampleRate(float sr)
virtual float generate()
Produce the next consecutive sample.