WDF Inductor Node. More...
Public Member Functions | |
InductorT (T value, T fs=(T) 48000.0) | |
Creates a new WDF Inductor. More... | |
void | prepare (T sampleRate) |
Prepares the inductor to operate at a new sample rate. More... | |
void | reset () |
Resets the inductor state. More... | |
void | setInductanceValue (T newL) |
Sets the inductance value of the WDF inductor, in Henries. More... | |
void | calcImpedance () override |
Computes the impedance of the WDF inductor, Z_L = 2 * f_s * L. More... | |
void | incident (T x) noexcept |
Accepts an incident wave into a WDF inductor. More... | |
T | reflected () noexcept |
Propogates a reflected wave from a WDF inductor. More... | |
InductorT (T value, T fs=(T) 48000.0) | |
Creates a new WDF Inductor. More... | |
void | prepare (T sampleRate) |
Prepares the inductor to operate at a new sample rate. More... | |
void | reset () |
Resets the inductor state. More... | |
void | setInductanceValue (T newL) |
Sets the inductance value of the WDF inductor, in Henries. More... | |
void | calcImpedance () override |
Computes the impedance of the WDF inductor, Z_L = 2 * f_s * L. More... | |
void | incident (T x) noexcept |
Accepts an incident wave into a WDF inductor. More... | |
T | reflected () noexcept |
Propogates a reflected wave from a WDF inductor. More... | |
Public Member Functions inherited from BaseWDF | |
virtual | ~BaseWDF ()=default |
void | connectToParent (BaseWDF *p) |
virtual void | propagateImpedanceChange () |
virtual | ~BaseWDF ()=default |
void | connectToParent (BaseWDF *p) |
virtual void | propagateImpedanceChange () |
Public Attributes | |
WDFMembers< T > | wdf |
Additional Inherited Members | |
Protected Attributes inherited from BaseWDF | |
BaseWDF * | parent = nullptr |
WDF Inductor Node.
|
explicit |
Creates a new WDF Inductor.
value | Inductance value in Farads |
fs | WDF sample rate |
References InductorT< T >::calcImpedance().
|
explicit |
Creates a new WDF Inductor.
value | Inductance value in Farads |
fs | WDF sample rate |
References InductorT< T >::calcImpedance().
void prepare | ( | T | sampleRate | ) |
Prepares the inductor to operate at a new sample rate.
References BaseWDF::propagateImpedanceChange(), and InductorT< T >::reset().
void reset | ( | ) |
Resets the inductor state.
Referenced by InductorT< T >::prepare().
void setInductanceValue | ( | T | newL | ) |
Sets the inductance value of the WDF inductor, in Henries.
References BaseWDF::propagateImpedanceChange().
|
overridevirtual |
Computes the impedance of the WDF inductor, Z_L = 2 * f_s * L.
Implements BaseWDF.
References InductorT< T >::wdf.
Referenced by InductorT< T >::InductorT().
|
noexcept |
Accepts an incident wave into a WDF inductor.
References InductorT< T >::wdf.
|
noexcept |
Propogates a reflected wave from a WDF inductor.
References InductorT< T >::wdf.
void prepare | ( | T | sampleRate | ) |
Prepares the inductor to operate at a new sample rate.
References BaseWDF::propagateImpedanceChange(), and InductorT< T >::reset().
void reset | ( | ) |
Resets the inductor state.
void setInductanceValue | ( | T | newL | ) |
Sets the inductance value of the WDF inductor, in Henries.
References BaseWDF::propagateImpedanceChange().
|
overridevirtual |
Computes the impedance of the WDF inductor, Z_L = 2 * f_s * L.
Implements BaseWDF.
References InductorT< T >::wdf.
|
noexcept |
Accepts an incident wave into a WDF inductor.
References InductorT< T >::wdf.
|
noexcept |
Propogates a reflected wave from a WDF inductor.
References InductorT< T >::wdf.
WDFMembers< T > wdf |
Referenced by InductorT< T >::calcImpedance(), InductorT< T >::incident(), and InductorT< T >::reflected().