DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
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 370 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 373 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 377 of file WDF.h.

◆ process()

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

Definition at line 385 of file WDF.h.

◆ reset()

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

Definition at line 383 of file WDF.h.

◆ setVoltage()

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

Definition at line 375 of file WDF.h.


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