32 for (
unsigned i =
mPartials.size(); i < max_harm; i += 2)
void nextWaveInto(SampleBuffer dest, unsigned count, bool oneHz)
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
unsigned mFrameRate
trigger ignored here
std::vector< Partial * > mPartials
float sample
(could be changed to int, or double)
void nextWaveInto(sample *dest, unsigned count, bool oneHz)
void addPartial(Partial *pt)
given a SHARC spectrum
void setFrequency(UnitGenerator &frequency)
Setter accessors.
PortMap mInputs
the map of my inputs or controls (used by the mix-in classes)