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

Antiparallel diode pair root (the classic clipper nonlinearity). More...

#include <WDF.h>

Public Member Functions

 DiodePairRoot (Tree &tree, T saturationCurrent=T(2.52e-9), T idealityTimesVt=T(1.752 *0.02585)) noexcept
 
void setSaturationCurrent (T amps) noexcept
 
void setIdealityTimesVt (T volts) noexcept
 
void prepare (double sampleRate) noexcept
 
void reset () noexcept
 
void process () noexcept
 
getVoltage () const noexcept
 Voltage across the pair (the clipper output).
 

Detailed Description

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

Antiparallel diode pair root (the classic clipper nonlinearity).

Shockley model: i(v) = 2 Is sinh(v / (n Vt)). Defaults approximate a 1N4148 (Is = 2.52 nA, n = 1.752, Vt = 25.85 mV).

Definition at line 436 of file WDF.h.

Constructor & Destructor Documentation

◆ DiodePairRoot()

template<FloatType T, typename Tree >
dspark::wdf::DiodePairRoot< T, Tree >::DiodePairRoot ( Tree &  tree,
saturationCurrent = T(2.52e-9),
idealityTimesVt = T(1.752 * 0.02585) 
)
inlineexplicitnoexcept

Definition at line 439 of file WDF.h.

Member Function Documentation

◆ getVoltage()

template<FloatType T, typename Tree >
T dspark::wdf::DiodePairRoot< T, Tree >::getVoltage ( ) const
inlinenoexcept

Voltage across the pair (the clipper output).

Definition at line 480 of file WDF.h.

◆ prepare()

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

Definition at line 446 of file WDF.h.

◆ process()

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

Definition at line 455 of file WDF.h.

◆ reset()

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

Definition at line 453 of file WDF.h.

◆ setIdealityTimesVt()

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

Definition at line 444 of file WDF.h.

◆ setSaturationCurrent()

template<FloatType T, typename Tree >
void dspark::wdf::DiodePairRoot< T, Tree >::setSaturationCurrent ( amps)
inlinenoexcept

Definition at line 443 of file WDF.h.


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