Allpass class public functions
Additional functions inherited from
Filter.
- Allpass(int aMaxDelay = 4000);
- Sets the default gain to 0.95, the default delay to 1000 samples,
and the maximum delay to aMaxDelay samples
- ~Allpass();
- Does nothing.
- void action(void);
- Allpass the current input signals for output function.
- void clear(void);
- Initializes all internal variables.
- sampleType getDelay(void);
- Returns the current sample delay of the delay element in the allpass
filter from input channel 2.
- sampleType getGain(void);
- Returns the current feedback/-feedforward gain from input channel 1.
- sampleType getInput(void);
- Returns the current signal input from input channel 0.
- sampleType getLoopTime(void);
- Returns the delay time of the delay element in the allpass
filter in units of seconds.
- sampleType getMaxDelay(void);
- Returns the maximum delay which the allpass filter can have.
- sampleType getReverbTime(void) const;
- Returns T60 in seconds for the current delay and gain
parameters.
- sampleType output(int index = 0);
- Returns the sum of the input signals. index does not
have any use and is ignored.
- void setDelay(sampleType aDelay);
- Sets the delay (loop time) in samples of the allpass filter.
This value is used if there is no signal connected to
input channel 2. The initial value is set to 1000 samples.
- void setDelay(Signal& aSignal, int outputChannel);
void setDelay(Signal* aSignal, int outputChannel);
- Sets the delay in samples of the allpass filter to the
specified signal. The signal will supercede the constant value
described above.
- void setGain(sampleType aValue);
- Sets the feedback/-feedforward scale factor for the allpass
filter if no signal is connected to input channel 1.
The initial gain is set to 0.95.
- void setGain(Signal& aSignal, int outputChannel);
void setGain(Signal* aSignal, int outputChannel);
- Sets the scale factor for the filter to the specified signal.
The signal will supercede the constant value described above.
- void setInput(sampleType aValue);
- Sets the default input signal value if no signal is connected to
input channel 0. Initial value is 0.0.
- void setInput(Signal& aSignal, int outputChannel);
void setInput(Signal* aSignal, int outputChannel);
- Sets the input signal for the filter to the specified signal.
The signal will supercede the constant value described above.
- void setLoopTime(sampleType aLoopTime);
- Sets the loop time of the delay element in seconds.
Value is overriden if a signal is connected to input channel 1.
- void setMaxDelay(int aMax);
- Sets the maximum delay samples of the allpass filter.
- void setReverbTime(long aReverbTime);
- Sets the reverb time of the allpass filter in seconds. Note that
you must set the loop time of the delay element before
this function can be called. Value is overriden if a signal
is connected to input channel 2.