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

Ideal voltage source closing a linear tree: b = 2 Vs - a. More...

#include <WDF.h>

Public Member Functions

 IdealVoltageSourceRoot (Tree &tree) noexcept
 
void setVoltage (T volts) noexcept
 
void prepare (double sampleRate) noexcept
 
void reset () noexcept
 
void process () noexcept
 

Detailed Description

template<FloatType T, typename Tree>
class dspark::wdf::IdealVoltageSourceRoot< T, Tree >

Ideal voltage source closing a linear tree: b = 2 Vs - a.

The whole tree hangs across the source. Set the voltage, call process(), then read voltages/currents anywhere in the tree.

Definition at line 354 of file WDF.h.

Constructor & Destructor Documentation

◆ IdealVoltageSourceRoot()

template<FloatType T, typename Tree >
dspark::wdf::IdealVoltageSourceRoot< T, Tree >::IdealVoltageSourceRoot ( Tree &  tree)
inlineexplicitnoexcept

Definition at line 357 of file WDF.h.

Member Function Documentation

◆ prepare()

template<FloatType T, typename Tree >
void dspark::wdf::IdealVoltageSourceRoot< T, Tree >::prepare ( double  sampleRate)
inlinenoexcept

Definition at line 361 of file WDF.h.

◆ process()

template<FloatType T, typename Tree >
void dspark::wdf::IdealVoltageSourceRoot< T, Tree >::process ( )
inlinenoexcept

Definition at line 369 of file WDF.h.

◆ reset()

template<FloatType T, typename Tree >
void dspark::wdf::IdealVoltageSourceRoot< T, Tree >::reset ( )
inlinenoexcept

Definition at line 367 of file WDF.h.

◆ setVoltage()

template<FloatType T, typename Tree >
void dspark::wdf::IdealVoltageSourceRoot< T, Tree >::setVoltage ( volts)
inlinenoexcept

Definition at line 359 of file WDF.h.


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