jdxi_editor.audio.analysers.vu_analyser
Peak and VU ballistics over a block of samples.
The peak meter attacks in about 10 ms and falls in about 150 ms. The VU integrates over about 300 ms. Peak hold falls more slowly, so the highest recent peak stays visible.
Attributes
Classes
Stereo peak meter, peak hold, and VU, kept between blocks. |
Functions
|
|
|
|
|
Module Contents
- jdxi_editor.audio.analysers.vu_analyser.amplitude_db(amplitude: float) float[source]
20 log10of an amplitude.- Parameters:
amplitude – float linear amplitude, 0..1
- Returns:
float decibels, not yet clipped to the meter
- jdxi_editor.audio.analysers.vu_analyser._approach(current: float, target: float, alpha: float) float[source]
- class jdxi_editor.audio.analysers.vu_analyser.VUAnalyser[source]
Stereo peak meter, peak hold, and VU, kept between blocks.
- block_levels(block: numpy.ndarray) tuple[numpy.ndarray, numpy.ndarray][source]
RMS and peak of one stereo block, in dB, unclipped.
- Parameters:
block – np.ndarray shape
(n, 2)- Returns:
tuple of RMS and peak, each shape
(2,)