54 Oscillator(
double peakAmplitude,
double frequency, uint32_t sampleRate,
double phase_rad);
#define HEPH_API
Definition HephShared.h:132
base class for oscillators.
Definition Oscillator.h:16
double phase_rad
Definition Oscillator.h:34
virtual ~Oscillator()=default
double frequency
Definition Oscillator.h:28
Oscillator(double peakAmplitude, double frequency, uint32_t sampleRate, double phase_rad)
Heph::DoubleBuffer GenerateBuffer(size_t size) const
Heph::DoubleBuffer GenerateBuffer(size_t index, size_t size) const
virtual double operator[](size_t n) const =0
double peakAmplitude
Definition Oscillator.h:22
uint32_t sampleRate
Definition Oscillator.h:40
Heph::DoubleBuffer GenerateBuffer() const
buffer for storing doubles.
Definition DoubleBuffer.h:14