Allpass1 class public functions
Additional functions inherited from
Filter.
- Allpass1(void);
- Sets the input signal to 0.0, and the gain to 0.5.
Sets the name of the signal object to "Allpass1".
Initializes all internal delay elements to zero.
- ~Allpass1();
- Does nothing.
- void action(void);
- Calculates the next output value for the filter. Requires all
upstream connected elements to be up-to-date.
- void clear(void);
- Sets the delay elements in the allpass filter to zero.
When an Allpass1 filter is created, it is automatically cleared.
- sampleType getGain(void);
- Returns the feedback/-feedforward gain.
- sampleType output(int index);
- Returns the last value calculated by action().
index is not used.
- void printState(void);
- Prints the gain and input signal for the object. Useful for
debugging.
- void setInput(sampleType aValue);
void setInput(Signal& aSignal, int outputChannel = 0);
void setInput(Signal* aSignal, int outputChannel = 0);
- Sets the input signal of the allpass filter to the given
constant value or signal. When created, an Allpass1 object
sets its input to 0.0.
- void setGain(sampleType aGain);
void setGain(Signal& aSignal, int outputChannel = 0);
void setGain(Signal* aSignal int outputChannel = 0);
- Sets the feedback/-feedforward scale factor for the allpass
filter to the given constant gain or signal. When created, an
Allpass1 object sets its gain to 0.5.