VCV Rack API v2
Loading...
Searching...
No Matches
rack::dsp::TSchmittTrigger< T > Struct Template Reference

Turns HIGH when value reaches a threshold (default 0.f), turns LOW when value reaches a threshold (default 1.f). More...

#include <digital.hpp>

Public Member Functions

 TSchmittTrigger ()
 
void reset ()
 
process (T in, T lowThreshold=0.f, T highThreshold=1.f)
 
isHigh ()
 

Public Attributes

state
 

Detailed Description

template<typename T = float>
struct rack::dsp::TSchmittTrigger< T >

Turns HIGH when value reaches a threshold (default 0.f), turns LOW when value reaches a threshold (default 1.f).

Constructor & Destructor Documentation

◆ TSchmittTrigger()

template<typename T = float>
rack::dsp::TSchmittTrigger< T >::TSchmittTrigger ( )
inline

Member Function Documentation

◆ reset()

template<typename T = float>
void rack::dsp::TSchmittTrigger< T >::reset ( )
inline

◆ process()

template<typename T = float>
T rack::dsp::TSchmittTrigger< T >::process ( T in,
T lowThreshold = 0.f,
T highThreshold = 1.f )
inline

◆ isHigh()

template<typename T = float>
T rack::dsp::TSchmittTrigger< T >::isHigh ( )
inline

Member Data Documentation

◆ state

template<typename T = float>
T rack::dsp::TSchmittTrigger< T >::state

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