17 #ifndef CSL_KARPLUSSTRING_H
18 #define CSL_KARPLUSSTRING_H
AdditiveInstrument.h – Sum-of-sines synthesis instrument class.
unsigned mIndex
current index in the delay line
Phased – a mix-in for objects with phase accumulators (local float) and frequency controls (an input...
void initDelayLine()
function to initialize the delay line
void dump()
print debugging info.
void setFrequency(float frequency)
Scalable – mix-in class with scale and offset control inputs (may be constants or generators)...
unsigned mDelayLength
allocated size of the delay line
void trigger()
reset internal buffers to re-pluck the string.
unsigned mEnergy
energy left in buffer
Buffer – the multi-channel sample buffer class (passed around between generators and IO guys)...
void nextBuffer(Buffer &outputBuffer, unsigned outBufNum)
The mono_next_buffer method does all the work.
Buffer mDelayLine
the delay line (just a buffer, not a RingBuffer)
virtual bool isActive()
query whether I'm currently active (Envelopes can go inactive)
KarplusString – string model class.
Base class of CSL exceptions (written upper-case). Has a string message.