33 #ifndef _NSOUND_PULSE_H_
34 #define _NSOUND_PULSE_H_
127 const Buffer & frequencies,
PulseUnits units_
The default pulse width to use.
Buffer generate2(const float64 &duration, const float64 &frequency, const Buffer &pulse_width)
This does nothing for now.
float64 generate(const float64 &frequency)
This is a real-time method for the Pulse generator.
void setUnits(const PulseUnits &units)
Sets the PulseUnits to units for this Pulse Generator.
float64 pulse_width_
The falling edge time for the pulse.
Buffer generate(const float64 &duration, const float64 &frequency, const Buffer &pulse_widths)
This does nothing for now.
Buffer generate2(const float64 &duration, const Buffer &frequency, const Buffer &pulse_width)
This does nothing for now.
void reset()
Resets the position pointer back to the begging of the waveform.
float64 fall_t_
The rising edge time for the pulse.
Buffer generate(const float64 &duration, const float64 &frequency, const float64 &pulse_width)
This does nothing for now.
virtual float64 generate(const float64 &frequency)
This is a real-time method for the wavetable oscillator.
float64 generate2(const float64 &frequency, const float64 &pulse_width)
This is a real-time method for the Pulse generator.
Pulse(const float64 &sample_rate, const float64 &pulse_width, const PulseUnits &units=PULSE_PERCENT)
Creates a new Pulse Generator.
A Buffer for storing audio samples.
Buffer generate(const float64 &duration, const Buffer &frequencies, const Buffer &pulse_widths)
This does nothing for now.
Buffer generate2(const float64 &duration, const Buffer &frequency, const float64 &pulse_width)
This does nothing for now.
A class the provides draw utilities and a wavetable oscillator.