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 |
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.
|
strong |
|
inline |
|
inline |