|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
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. | |
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.
| void zrythm::dsp::KMeterDsp::process | ( | const float * | p, |
| int | n ) |
Process.
| p | Frame array. |
| n | Number of samples. |
| std::pair< float, float > zrythm::dsp::KMeterDsp::read | ( | ) |
Returns the current RMS and peak values.