SynthLab SDK
SynthLab::LogPeakDetector Class Reference

Encapsulates McNally's peak detector with added LPF smoothing (optional) More...

#include <limiter.h>

Public Member Functions

virtual bool reset (double _sampleRate)
 reset members to initialized state
 
virtual double processAudioSample (double xn)
 process MONO input More...
 
void setAttackReleaseTimes (double attack_in_ms, double release_in_ms)
 set attack/release times More...
 
bool checkFloatUnderflow (double &value)
 set check for underflow
 

Public Attributes

const double kSmallestPositiveFloatValue = 1.175494351e-38
 
const double kSmallestNegativeFloatValue = -1.175494351e-38
 

Detailed Description

Encapsulates McNally's peak detector with added LPF smoothing (optional)

  • output is in dB
  • can detect values greater than 0dBFS
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

◆ processAudioSample()

virtual double SynthLab::LogPeakDetector::processAudioSample ( double  xn)
inlinevirtual

process MONO input

Parameters
xninput
Returns
the processed sample

◆ setAttackReleaseTimes()

void SynthLab::LogPeakDetector::setAttackReleaseTimes ( double  attack_in_ms,
double  release_in_ms 
)
inline

set attack/release times

Parameters
attack_in_msattack in milliseconds
release_in_msrelease in milliseconds

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