Osc class public functions

Additional functions inherited from Filter.

Osc(sampleType anAmplitude = 1.0);
anAmplitude is used only if no signal is connected to input channel 1.
void action(void);
Generate the next signal values of the oscillator based on the current frequency.
sampleType getAmplitude(void);
Returns the value of amplitude. If a signal is connected at index 1, then that value is returned, otherwise will return the default value.
sampleType getFrequency(void);
Returns the index 0 signal value.
sampleType output(int index);
Returns the current value of the oscillator.
void setAmplitude(sampleType anAmplitude);
Sets the amplitude of the oscillator which will be used if there is no signal connected to input channel 1.