SynthLab SDK
SynthLab::SlewLimiter Class Reference

Implements a simple slew limiter using a one pole lowpass filter. More...

#include <synthbase.h>

Public Member Functions

void reset ()
 reset the counter
 
void setSlewValue (double _g)
 b1 coefficient
 
double doSlewLimiter (double input)
 

Protected Attributes

double g = 0
 one pole filter feedback coefficient
 
double z1 = 0.0
 one pole filter state variable
 

Detailed Description

Implements a simple slew limiter using a one pole lowpass filter.

  • the slew value is the single feedback coefficient (b1) in the filter
Author
Will Pirkle http://www.willpirkle.com
Remarks
This object is included and described in further detail in Designing Software Synthesizer Plugins in C++ 2nd Ed. by Will Pirkle
Version
Revision : 1.0
Date
Date : 2021 / 04 / 26

Member Function Documentation

◆ doSlewLimiter()

double SynthLab::SlewLimiter::doSlewLimiter ( double  input)
inline
Parameters
inputrun the one pole filter

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