OnePole class public functions

Additional functions inherited from Filter.

OnePole(void);
Sets all internal delays to zero.
OnePole~();
Does nothing.
void action(void);
current output = gain * current input - feedback * previous output
sampleType getFeedback(void);
Returns the feedback value if no input signal is connected to input channel 1. Defaults to zero.
sampleType getGain(void);
Returns the gain for the input if there is no input signal connected to input channel 2. Defaults to one.
sampleType output(int index);
Returns the current output as calculated by the action() function.
void setFeedback(sampleType aGain);
Sets the feedback coefficient which is used only if there is no input signal connected to input channel 1.
void setGain(sampleType aGain);
Sets the gain coefficient which is used only if there is no input signal connected to input channel 2.