Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::KMeterDsp Class Reference

Implements a K-System meter DSP. More...

#include <src/dsp/kmeter_dsp.h>

Public Member Functions

void process (const float *p, int n)
 Process.
float read_f ()
std::pair< float, float > read ()
 Returns the current RMS and peak values.
void reset ()
void init (float samplerate)
 Init with the samplerate.

Detailed Description

Implements a K-System meter DSP.

The KMeterDsp class provides an implementation of a K-System meter, which is a type of audio level meter designed by Bob Katz. It calculates the RMS and peak values of the input audio and provides methods to read these values.

The class is designed to be used in a real-time audio processing context, with the process() method being called for each block of audio samples. The read() method can then be called to retrieve the current RMS and peak values.

The class also provides methods to reset the meter and initialize it with a specific sample rate.

Definition at line 52 of file kmeter_dsp.h.

Member Function Documentation

◆ process()

void zrythm::dsp::KMeterDsp::process ( const float * p,
int n )

Process.

Parameters
pFrame array.
nNumber of samples.

◆ read()

std::pair< float, float > zrythm::dsp::KMeterDsp::read ( )

Returns the current RMS and peak values.

Returns
std::pair<float, float>

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