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

Constructor & Destructor Documentation

◆ DiodePairRoot()

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

Definition at line 455 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 496 of file WDF.h.

◆ prepare()

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

Definition at line 462 of file WDF.h.

◆ process()

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

Definition at line 471 of file WDF.h.

◆ reset()

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

Definition at line 469 of file WDF.h.

◆ setIdealityTimesVt()

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

Definition at line 460 of file WDF.h.

◆ setSaturationCurrent()

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

Definition at line 459 of file WDF.h.


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