Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::signal::SignalComparatorT< SampleType > Class Template Reference

Signal-valued comparator from the Round-2 patching lane. More...

#include <mod_tools.hpp>

Public Member Functions

void set_thresholds (double high, double low)
void set_levels (SampleType low_level, SampleType high_level)
void reset ()
SampleType process (SampleType input)
bool high () const

Detailed Description

template<typename SampleType = float>
class pulp::signal::SignalComparatorT< SampleType >

Signal-valued comparator from the Round-2 patching lane.

The established ComparatorT above deliberately returns a boolean event-domain gate; this distinct name preserves configurable output levels without making overload resolution or return semantics depend on call context.

Member Function Documentation

◆ high()

template<typename SampleType = float>
bool pulp::signal::SignalComparatorT< SampleType >::high ( ) const
inline

◆ process()

template<typename SampleType = float>
SampleType pulp::signal::SignalComparatorT< SampleType >::process ( SampleType input)
inline

◆ reset()

template<typename SampleType = float>
void pulp::signal::SignalComparatorT< SampleType >::reset ( )
inline

◆ set_levels()

template<typename SampleType = float>
void pulp::signal::SignalComparatorT< SampleType >::set_levels ( SampleType low_level,
SampleType high_level )
inline

◆ set_thresholds()

template<typename SampleType = float>
void pulp::signal::SignalComparatorT< SampleType >::set_thresholds ( double high,
double low )
inline

The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/signal/include/pulp/signal/mod_tools.hpp