Gin
Public Types | Public Member Functions | List of all members
Dynamics Class Reference

Compressor / Gate / Expander / Limiter based on algorithm from Designing Audio Effect Plug-ins in C++ by Will Pirkle. More...

Public Types

enum  Type { compressor , limiter , expander , gate }
 

Public Member Functions

 Dynamics ()=default
 
 ~Dynamics ()=default
 
void setSampleRate (double sampleRate)
 
void setNumChannels (int ch)
 
void setMode (Type t)
 
void setLinked (bool l)
 
void setParams (float attackS, float holdS, float releaseS, float thresh, float ratio, float kneeWidth)
 
void setInputGain (float g)
 
void setOutputGain (float g)
 
void reset ()
 
void process (juce::AudioSampleBuffer &buffer, juce::AudioSampleBuffer *envelopeOut=nullptr)
 
const LevelTrackergetInputTracker ()
 
const LevelTrackergetOutputTracker ()
 
const LevelTrackergetReductionTracker ()
 
float calcCurve (float detectorValue)
 

Detailed Description

Compressor / Gate / Expander / Limiter based on algorithm from Designing Audio Effect Plug-ins in C++ by Will Pirkle.

Member Enumeration Documentation

◆ Type

Enumerator
compressor 
limiter 
expander 
gate 

Constructor & Destructor Documentation

◆ Dynamics()

Dynamics::Dynamics ( )
default

◆ ~Dynamics()

Dynamics::~Dynamics ( )
default

Member Function Documentation

◆ setSampleRate()

void Dynamics::setSampleRate ( double  sampleRate)

◆ setNumChannels()

void Dynamics::setNumChannels ( int  ch)

◆ setMode()

void Dynamics::setMode ( Type  t)

◆ setLinked()

void Dynamics::setLinked ( bool  l)

◆ setParams()

void Dynamics::setParams ( float  attackS,
float  holdS,
float  releaseS,
float  thresh,
float  ratio,
float  kneeWidth 
)

◆ setInputGain()

void Dynamics::setInputGain ( float  g)

◆ setOutputGain()

void Dynamics::setOutputGain ( float  g)

◆ reset()

void Dynamics::reset ( )

◆ process()

void Dynamics::process ( juce::AudioSampleBuffer &  buffer,
juce::AudioSampleBuffer *  envelopeOut = nullptr 
)

◆ getInputTracker()

const LevelTracker& Dynamics::getInputTracker ( )

◆ getOutputTracker()

const LevelTracker& Dynamics::getOutputTracker ( )

◆ getReductionTracker()

const LevelTracker& Dynamics::getReductionTracker ( )

◆ calcCurve()

float Dynamics::calcCurve ( float  detectorValue)

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