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

Full- or half-wave rectification. More...

#include <mod_tools.hpp>

Public Types

enum class  Mode : std::uint8_t { full_wave , half_wave }

Public Member Functions

void set_mode (Mode m)
SampleType process (SampleType x) const

Detailed Description

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

Full- or half-wave rectification.

RT contract: stateless; audio-thread safe.

USE: the front end of an envelope follower (a follower fed a raw signal tracks nothing). As a modulation shaper it is more interesting: full-wave rectifying a sine gives |sin|, which is the classic bouncing-pluck LFO at double the rate, and half-wave rectifying a triangle gives a ramp with a flat rest between hits.

Member Enumeration Documentation

◆ Mode

template<typename SampleType = float>
enum class pulp::signal::RectifierT::Mode : std::uint8_t
strong
Enumerator
full_wave 
half_wave 

Member Function Documentation

◆ process()

template<typename SampleType = float>
SampleType pulp::signal::RectifierT< SampleType >::process ( SampleType x) const
inline

◆ set_mode()

template<typename SampleType = float>
void pulp::signal::RectifierT< SampleType >::set_mode ( Mode m)
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