ASPiK SDK
|
The WdfSeriesTerminatedAdaptor object implements the series terminated (non-reflection-free) adaptor. More...
#include <fxobjects.h>
Public Member Functions | |
virtual double | getR2 () |
virtual void | initialize (double _R1) |
virtual void | setInput1 (double _in1) |
virtual void | setInput2 (double _in2) |
virtual void | setInput3 (double _in3) |
virtual double | getOutput1 () |
virtual double | getOutput2 () |
virtual double | getOutput3 () |
Public Member Functions inherited from WdfAdaptorBase | |
void | setTerminalResistance (double _terminalResistance) |
void | setOpenTerminalResistance (bool _openTerminalResistance=true) |
void | setSourceResistance (double _sourceResistance) |
void | setPort1_CompAdaptor (IComponentAdaptor *_port1CompAdaptor) |
void | setPort2_CompAdaptor (IComponentAdaptor *_port2CompAdaptor) |
void | setPort3_CompAdaptor (IComponentAdaptor *_port3CompAdaptor) |
virtual void | reset (double _sampleRate) |
void | setComponent (wdfComponent componentType, double value1=0.0, double value2=0.0) |
virtual void | initializeAdaptorChain () |
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) |
IComponentAdaptor * | getPort1_CompAdaptor () |
IComponentAdaptor * | getPort2_CompAdaptor () |
IComponentAdaptor * | getPort3_CompAdaptor () |
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 () |
Additional Inherited Members | |
Static Public Member Functions inherited from WdfAdaptorBase | |
static void | connectAdaptors (WdfAdaptorBase *upstreamAdaptor, WdfAdaptorBase *downstreamAdaptor) |
Protected Attributes inherited from WdfAdaptorBase | |
IComponentAdaptor * | port1CompAdaptor = nullptr |
componant or adaptor connected to port 1 | |
IComponentAdaptor * | port2CompAdaptor = nullptr |
componant or adaptor connected to port 2 | |
IComponentAdaptor * | port3CompAdaptor = nullptr |
componant or adaptor connected to port 3 | |
IComponentAdaptor * | wdfComponent = nullptr |
WDF componant connected to port 3 (default operation) | |
double | R1 = 0.0 |
input port resistance | |
double | R2 = 0.0 |
output port resistance | |
double | R3 = 0.0 |
component resistance | |
double | in1 = 0.0 |
stored port 1 input; not used in this implementation but may be required for extended versions | |
double | in2 = 0.0 |
stored port 2 input; not used in this implementation but may be required for extended versions | |
double | in3 = 0.0 |
stored port 3 input; not used in this implementation but may be required for extended versions | |
double | out1 = 0.0 |
stored port 1 output; not used in this implementation but may be required for extended versions | |
double | out2 = 0.0 |
stored port 2 output; it is y(n) for this library | |
double | out3 = 0.0 |
stored port 3 output; not used in this implementation but may be required for extended versions | |
double | terminalResistance = 600.0 |
value of terminal (load) resistance | |
bool | openTerminalResistance = false |
flag for open circuit load | |
double | sourceResistance = 600.0 |
source impedance; OK for this to be set to 0.0 for Rs = 0 | |
The WdfSeriesTerminatedAdaptor object implements the series terminated (non-reflection-free) adaptor.
|
inlinevirtual |
get OUT1 = reflected output pin on Port 1
Implements IComponentAdaptor.
|
inlinevirtual |
get OUT2 = incident (normal) output pin on Port 2
Implements IComponentAdaptor.
|
inlinevirtual |
get OUT3 always connects to component
Implements IComponentAdaptor.
|
inlinevirtual |
get the resistance at port 2; R2 = R1 + component (series)
|
inlinevirtual |
initialize adaptor with input resistance
Reimplemented from IComponentAdaptor.
|
inlinevirtual |
push audio input sample into incident wave input
Implements IComponentAdaptor.
|
inlinevirtual |
push audio input sample into reflected wave input for terminated adaptor, this is dead end, just store it
Implements IComponentAdaptor.
|
inlinevirtual |
set input 3 always connects to component
Implements IComponentAdaptor.