DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
dspark::wdf::Series< T, Child1, Child2 > Class Template Reference

Adapted three-port series connector. More...

#include <WDF.h>

Public Member Functions

 Series (Child1 &c1, Child2 &c2) noexcept
 
void prepare (double sampleRate) noexcept
 
void updatePorts () noexcept
 
void reset () noexcept
 
double portResistance () const noexcept
 
reflected () noexcept
 
void incident (T a3) noexcept
 

Detailed Description

template<FloatType T, typename Child1, typename Child2>
class dspark::wdf::Series< T, Child1, Child2 >

Adapted three-port series connector.

Children connect to ports 1-2; the up-facing port 3 is reflection-free (R3 = R1 + R2), which is what allows nesting under any parent or root.

A polarity inversion is folded into the up-facing port. The raw Fettweis series adaptor enforces KVL as v1 + v2 + v3 = 0, which makes elements read "upside down" relative to circuit intuition (and flips again at every nesting level). With the folded inversion the natural convention holds instead: the voltage across the up port equals v1 + v2, so a source driving Series(R, C) yields the textbook divider with all element voltages in their expected polarity, at any nesting depth.

Definition at line 223 of file WDF.h.

Constructor & Destructor Documentation

◆ Series()

template<FloatType T, typename Child1 , typename Child2 >
dspark::wdf::Series< T, Child1, Child2 >::Series ( Child1 &  c1,
Child2 &  c2 
)
inlinenoexcept

Definition at line 226 of file WDF.h.

Member Function Documentation

◆ incident()

template<FloatType T, typename Child1 , typename Child2 >
void dspark::wdf::Series< T, Child1, Child2 >::incident ( a3)
inlinenoexcept

Definition at line 253 of file WDF.h.

◆ portResistance()

template<FloatType T, typename Child1 , typename Child2 >
double dspark::wdf::Series< T, Child1, Child2 >::portResistance ( ) const
inlinenoexcept

Definition at line 244 of file WDF.h.

◆ prepare()

template<FloatType T, typename Child1 , typename Child2 >
void dspark::wdf::Series< T, Child1, Child2 >::prepare ( double  sampleRate)
inlinenoexcept

Definition at line 228 of file WDF.h.

◆ reflected()

template<FloatType T, typename Child1 , typename Child2 >
T dspark::wdf::Series< T, Child1, Child2 >::reflected ( )
inlinenoexcept

Definition at line 246 of file WDF.h.

◆ reset()

template<FloatType T, typename Child1 , typename Child2 >
void dspark::wdf::Series< T, Child1, Child2 >::reset ( )
inlinenoexcept

Definition at line 242 of file WDF.h.

◆ updatePorts()

template<FloatType T, typename Child1 , typename Child2 >
void dspark::wdf::Series< T, Child1, Child2 >::updatePorts ( )
inlinenoexcept

Definition at line 233 of file WDF.h.


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