37 using namespace Nsound;
49 if(Nf < 1.0) Nf = 1.0;
53 for(
float64 k = 1.0; k <= Nf; k += 1.0)
58 waveform *= 2.0 /
M_PI;
60 ctor(sample_rate, waveform);
float64 sample_rate_
Used to determine when to create a sync sample.
virtual void ctor(const float64 &sample_rate)
DOXME.
static Buffer zeros(const uint32 n_samples)
Returns a Buffer full of zeros of length n_samples.
Buffer drawSine(const float64 &duration, const float64 &frequency)
This method draws a static sine wave.
Sawtooth(const float64 &sample_rate, const int32 n_harmonics=100)
DOXME.
A Buffer for storing audio samples.
A class the provides draw utilities and a wavetable oscillator.