Envelope class public functions

Additional functions inherited from Generator

Envelope(char *envelopeString, long numSamplesDuration = 0);
Sets up a envelope at triggers it at time 0. if numSamplesDuration is specified, then setDurationSamples(numSamplesDuration) will be called at end of constructor.
~Envelope();
Frees space on heap for envelope string.
void action(void);
Calculates next
int activeQ(void);
Returns true if currently generating an envelope, False If envelope is finished.
long getDurationSamples(void);
Returns the number of samples for which the envelope is to be calculated.
float getDurationSeconds(void);
Returns the time in seconds for which the envelope is to be calculated.
char* getEnvelope(void);
Returns the command string that was used to generate the envelope. See the description of the envelope string.
sampleType output(void);
Returns the current output of the envelope.
void printState(void);
Prints the envelope command string, sampling rate, current sample duration, and current point in the envelope.
void setDuration(long samples);
Sets the duration of the envelope to Samples length.
void setDuration(float seconds);
Sets the duration of the envelope to time in seconds.
void setDurationSamples(long samples);
Sets the duration of the envelope to samples length.
void setDurationSeconds(float seconds);
Sets the duration of the envelope to time in seconds.
void setEnvelope(char *envelopeString, int timeQ = 1);
Recalculate the envelope given the new envelope string. Will trigger the envelope. If timeQ is true, then time points will be interpreted as seconds. If there is no stick point, then the last time in the envelope is the total time of the envelope. If there is a stick point in the envelope, then the last time point in the envelope is the minimum time for the envelope with not stick point extension. If timeQ is false, then the time units will be assumed to be samples. If there is no stick point, then the functions to set the duration will make the variable timeQ unnecessary.
void trigger(float startPoint = 0);
Start or restart the envelope at the given starting point for the envelope, the starting point being 0.