Resonator class

Additional functions inherited from Filter.

Resonator(sampleType aFrequency = 0.0, sampleType aBandwidth = 100.0);
Sets all internal delays to zero. setHzForm(), and setBandwitdhForm() functions called.
Resonator~();
Does nothing.
void action(void);
calculates the next sample of the resonator.
sampleType getBandwidth(void);
Returns the bandwidth of the resonator in units of Hertz.
sampleType getFrequency(void);
Returns the resonance frequency of the resonator.
sampleType getOmega(void);
Returns the normalized angular frequency of the pole on the z-plane.
sampleType getPoleRadius(void);
Returns the radius of the pole on the z-plane.
sampleType output(int index);
Returns the current output.
void setBandwidth(sampleType aBandwidth);
Sets the bandwidth of the resonator in units of Hertz. If a signal is connected to input channel 2, then this bandwidth value is ignored.
void setBandwidthForm(void);
If an input is connected to input channel 2, then it is interpreted as a Bandwidth of the resonator in units of Hertz. Reverses the effect of setRadiusForm.
void setFrequency(sampleType aFrequency);
Sets the resonance frequency of the Resonator object in units of Hertz. If a signal is connected to input channel 2, then this frequency value is ignored.
void setHzForm(void);
If an input is connected to input channel 1, then it is interpreted as resonance frequency in units of Hertz. Reverses the effect of setOmegaForm.
void setOmega(sampleType anOmega);
Sets the angle of the pole in the z-plane. Unis are that of a normalized angular frequency (0 = 0 Pi, 1 = 1 Pi, etc.).
void setOmegaForm(void);
If an input is connected to input channel 1, then it is interpreted as an angle of the pole of the resonator on the z-plane. Reverses the effect of setHzForm.
void setPoleRadius(sampleType aPoleRadius);
Sets the radius of the pole in the z-plane. If input channel 2 is connected to a signal, then this radius value is ignored.
void setRadiusForm(void);
If an input is connected to input channel 2, then it is interpreted as a radius of the pole of the resonator on the z-plane. Reverses the effect of setBandwidthForm.