ASPiK SDK
Loading...
Searching...
No Matches
WdfParallelRC Class Reference

The WdfParallelRC object implements the reflection coefficient and signal flow through a WDF simulated parallal RC pair. More...

#include <fxobjects.h>

Inheritance diagram for WdfParallelRC:
IComponentAdaptor

Public Member Functions

 WdfParallelRC (double _componentValue_R, double _componentValue_C)
 
void setSampleRate (double _sampleRate)
 
virtual double getComponentResistance ()
 
virtual double getComponentConductance ()
 
virtual void updateComponentResistance ()
 
virtual void setComponentValue_RC (double _componentValue_R, double _componentValue_C)
 
virtual void setComponentValue_R (double _componentValue_R)
 
virtual void setComponentValue_C (double _componentValue_C)
 
virtual double getComponentValue_R ()
 
virtual double getComponentValue_C ()
 
virtual void reset (double _sampleRate)
 
virtual void setInput (double in)
 
virtual double getOutput ()
 
virtual double getOutput1 ()
 
virtual double getOutput2 ()
 
virtual double getOutput3 ()
 
virtual void setInput1 (double _in1)
 
virtual void setInput2 (double _in2)
 
virtual void setInput3 (double _in3)
 
- Public Member Functions inherited from IComponentAdaptor
virtual void initialize (double _R1)
 
virtual void initializeAdaptorChain ()
 
virtual void setInput (double _in)
 
virtual double getOutput ()
 
virtual void setInput1 (double _in1)=0
 
virtual void setInput2 (double _in2)=0
 
virtual void setInput3 (double _in3)=0
 
virtual double getOutput1 ()=0
 
virtual double getOutput2 ()=0
 
virtual double getOutput3 ()=0
 
virtual void reset (double _sampleRate)
 
virtual double getComponentResistance ()
 
virtual double getComponentConductance ()
 
virtual void updateComponentResistance ()
 
virtual void setComponentValue (double _componentValue)
 
virtual void setComponentValue_LC (double componentValue_L, double componentValue_C)
 
virtual void setComponentValue_RL (double componentValue_R, double componentValue_L)
 
virtual void setComponentValue_RC (double componentValue_R, double componentValue_C)
 
virtual double getComponentValue ()
 

Protected Attributes

double zRegister_L = 0.0
 storage register for L
 
double zRegister_C = 0.0
 storage register for C
 
double K = 0.0
 
double componentValue_C = 0.0
 component value C
 
double componentValue_R = 0.0
 component value R
 
double RL = 0.0
 RL value.
 
double RC = 0.0
 RC value.
 
double RR = 0.0
 RR value.
 
double componentResistance = 0.0
 equivalent resistance of pair of components
 
double sampleRate = 0.0
 sample rate
 

Detailed Description

The WdfParallelRC object implements the reflection coefficient and signal flow through a WDF simulated parallal RC pair.

Author
Will Pirkle http://www.willpirkle.com
Remarks
This object is included in Designing Audio Effects Plugins in C++ 2nd Ed. by Will Pirkle SEE: p143 "Design of Wave Digital Filters" Psenicka, Ugalde, Romero M.
Version
Revision : 1.0
Date
Date : 2018 / 09 / 7

Member Function Documentation

◆ getComponentConductance()

virtual double WdfParallelRC::getComponentConductance ( )
inlinevirtual

get component's value as a conducatance (or admittance)

Reimplemented from IComponentAdaptor.

◆ getComponentResistance()

virtual double WdfParallelRC::getComponentResistance ( )
inlinevirtual

get component's value as a resistance

Reimplemented from IComponentAdaptor.

◆ getComponentValue_C()

virtual double WdfParallelRC::getComponentValue_C ( )
inlinevirtual

get C component value

◆ getComponentValue_R()

virtual double WdfParallelRC::getComponentValue_R ( )
inlinevirtual

get R component value

◆ getOutput()

virtual double WdfParallelRC::getOutput ( )
inlinevirtual

get output value; NOTE: output is located in zRegister_C

Reimplemented from IComponentAdaptor.

◆ getOutput1()

virtual double WdfParallelRC::getOutput1 ( )
inlinevirtual

get output1 value; only one resistor output (not used)

Implements IComponentAdaptor.

◆ getOutput2()

virtual double WdfParallelRC::getOutput2 ( )
inlinevirtual

get output2 value; only one resistor output (not used)

Implements IComponentAdaptor.

◆ getOutput3()

virtual double WdfParallelRC::getOutput3 ( )
inlinevirtual

get output3 value; only one resistor output (not used)

Implements IComponentAdaptor.

◆ reset()

virtual void WdfParallelRC::reset ( double  _sampleRate)
inlinevirtual

reset the component; clear registers

Reimplemented from IComponentAdaptor.

◆ setComponentValue_C()

virtual void WdfParallelRC::setComponentValue_C ( double  _componentValue_C)
inlinevirtual

set C component

◆ setComponentValue_R()

virtual void WdfParallelRC::setComponentValue_R ( double  _componentValue_R)
inlinevirtual

set R component

◆ setComponentValue_RC()

virtual void WdfParallelRC::setComponentValue_RC ( double  _componentValue_R,
double  _componentValue_C 
)
inlinevirtual

set both RC components at once

Reimplemented from IComponentAdaptor.

◆ setInput()

virtual void WdfParallelRC::setInput ( double  in)
inlinevirtual

set input value into component;

Reimplemented from IComponentAdaptor.

◆ setInput1()

virtual void WdfParallelRC::setInput1 ( double  _in1)
inlinevirtual

set input1 value; not used for components

Implements IComponentAdaptor.

◆ setInput2()

virtual void WdfParallelRC::setInput2 ( double  _in2)
inlinevirtual

set input2 value; not used for components

Implements IComponentAdaptor.

◆ setInput3()

virtual void WdfParallelRC::setInput3 ( double  _in3)
inlinevirtual

set input3 value; not used for components

Implements IComponentAdaptor.

◆ setSampleRate()

void WdfParallelRC::setSampleRate ( double  _sampleRate)
inline

set sample rate and update component

◆ updateComponentResistance()

virtual void WdfParallelRC::updateComponentResistance ( )
inlinevirtual

change the resistance of component; see FX book for details

Reimplemented from IComponentAdaptor.


The documentation for this class was generated from the following file: