jdxi_editor.audio.audio_snapshot
The latest analysis, handed to the window as one immutable value.
Attributes
Classes
One published frame of analysis. |
Functions
|
Clamp a level onto the meter scale. |
Module Contents
- jdxi_editor.audio.audio_snapshot.clip_db(value: float) float[source]
Clamp a level onto the meter scale.
- Parameters:
value – float decibels
- Returns:
float in DB_FLOOR..DB_CEIL
- class jdxi_editor.audio.audio_snapshot.AudioSnapshot[source]
One published frame of analysis.
Levels are decibels on the meter scale.
spectrumhasBAND_COUNTbands. Each waveform is(columns, 2)of min and max per column, so a transient is not averaged away.- Parameters:
rms_left – float block RMS, left, dB
rms_right – float block RMS, right, dB
peak_left – float peak meter, left, dB
peak_right – float peak meter, right, dB
peak_hold_left – float held peak, left, dB
peak_hold_right – float held peak, right, dB
vu_left – float VU, left, dB
vu_right – float VU, right, dB
spectrum – np.ndarray band levels, dB
waveform_left – np.ndarray decimated min/max
waveform_right – np.ndarray decimated min/max
sample_rate – int Hz
timebase_ms – int oscilloscope window
- spectrum: numpy.ndarray[source]
- waveform_left: numpy.ndarray[source]
- waveform_right: numpy.ndarray[source]