32 using namespace Nsound;
68 float64 sample = ::exp(t * -alpha);
81 std::set<Generator *>::iterator itor = this->
sync_slaves_.begin();
120 const Buffer & frequencies,
130 const Buffer & frequencies,
float64 sample_rate_
Used to determine when to create a sync sample.
A class tha generates decay curves.
std::set< Generator * > sync_slaves_
Stores sample counts when synced.
float64 position_
Used for phase offset adjustment.
float64 sync_pos_
The number of samples into the wavefrom.
boolean sync_is_slave_
Indicates if this generator is the master.
A Buffer for storing audio samples.
std::vector< uint32 > sync_vector_
Indicates the number of samples since reset.
uint32 sync_count_
Indicates if this generator is a slave.
virtual float64 generate2(const float64 &frequency, const float64 &alpha)
This is a real-time method for the wavetable oscillator.
A class the provides draw utilities and a wavetable oscillator.
virtual float64 generate2(const float64 &frequency, const float64 &phase)
This is a real-time method for the wavetable oscillator.
virtual float64 generate(const float64 &frequency)
This is a real-time method for the decay curve ossilator.