Gin
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
KWeightingFilter Class Reference

The two stage K-weighting filter from ITU-R BS.1770: a high shelf that models the acoustic effect of the head followed by a high pass. More...

#include <gin_loudnessmeter.h>

Classes

struct  Coefficients
 

Public Member Functions

void prepare (double sampleRate, int numChannels)
 
void reset ()
 
void process (juce::AudioBuffer< float > &buffer)
 
void process (float *samples, int numSamples, int channel)
 
int getNumChannels () const
 

Static Public Member Functions

static Coefficients stage1Coefficients (double sampleRate)
 The pre-filter (high shelf) for a given sample rate.
 
static Coefficients stage2Coefficients (double sampleRate)
 The RLB weighting (high pass) for a given sample rate.
 

Detailed Description

The two stage K-weighting filter from ITU-R BS.1770: a high shelf that models the acoustic effect of the head followed by a high pass.

Processes audio in place, one filter state per channel.

Member Function Documentation

◆ stage1Coefficients()

static Coefficients KWeightingFilter::stage1Coefficients ( double  sampleRate)
static

The pre-filter (high shelf) for a given sample rate.

◆ stage2Coefficients()

static Coefficients KWeightingFilter::stage2Coefficients ( double  sampleRate)
static

The RLB weighting (high pass) for a given sample rate.

◆ prepare()

void KWeightingFilter::prepare ( double  sampleRate,
int  numChannels 
)

◆ reset()

void KWeightingFilter::reset ( )

◆ process() [1/2]

void KWeightingFilter::process ( juce::AudioBuffer< float > &  buffer)

◆ process() [2/2]

void KWeightingFilter::process ( float *  samples,
int  numSamples,
int  channel 
)

◆ getNumChannels()

int KWeightingFilter::getNumChannels ( ) const

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