jdxi_editor.ui.widgets.audio.analog_vu
Vintage VU meters: a pair of backlit cream faces in a dark housing, each with a needle on a classic VU scale, a red zone above 0 VU and a peak LED.
The scale is a VU scale, not a digital one. The level it shows is the
average (RMS) level in dBFS from the analyser, read against a reference:
0 VU is VU_REFERENCE_DBFS (-18 dBFS, the usual digital studio alignment).
That is printed on the face, and the digital peak is shown on its own, as a
number in dBFS and as the LED, so the two are not confused.
As on a real VU meter the scale is linear in voltage, so -20 to -10 VU is squeezed into the left end and 0 VU sits about two thirds of the way across.
Attributes
Classes
The pivot, arc and sweep of one face. |
Functions
|
The VU reading of an RMS level in dBFS (not clamped). |
|
Where vu sits across the scale, 0 at -20 VU's end to 1 at +3 VU, linear |
|
The housing and the left and right faces inside it. |
|
Paint the housing and both faces. |
|
|
|
|
|
|
|
|
|
Where a scale number is printed. |
|
|
|
|
|
|
|
Where the peak LED sits on a face (for tests). |
Module Contents
- jdxi_editor.ui.widgets.audio.analog_vu.EXPLANATION = Multiline-String[source]
Show Value
"""VU meters: the needle is the average (RMS) level, 0 VU = -18 dBFS. PEAK is the digital peak level in dBFS; the LED lights when it reaches -1 dBFS."""
- jdxi_editor.ui.widgets.audio.analog_vu.vu_from_dbfs(dbfs: float) float[source]
The VU reading of an RMS level in dBFS (not clamped).
- jdxi_editor.ui.widgets.audio.analog_vu.scale_fraction(vu: float) float[source]
Where vu sits across the scale, 0 at -20 VU’s end to 1 at +3 VU, linear in voltage as a VU meter is. Readings off the scale rest on its pins.
- jdxi_editor.ui.widgets.audio.analog_vu.face_rects(width: float, height: float) tuple[PySide6.QtCore.QRectF, PySide6.QtCore.QRectF, PySide6.QtCore.QRectF][source]
The housing and the left and right faces inside it.
- Returns:
(housing, left face, right face)
- class jdxi_editor.ui.widgets.audio.analog_vu.FaceGeometry(face: PySide6.QtCore.QRectF)[source]
The pivot, arc and sweep of one face.
- jdxi_editor.ui.widgets.audio.analog_vu.paint_vintage_meters(painter: PySide6.QtGui.QPainter, width: float, height: float, readings) None[source]
Paint the housing and both faces.
- Parameters:
readings – two (peak dBFS, vu dBFS, held peak dBFS) tuples, left then right
- jdxi_editor.ui.widgets.audio.analog_vu._paint_housing(painter: PySide6.QtGui.QPainter, rect: PySide6.QtCore.QRectF) None[source]
- jdxi_editor.ui.widgets.audio.analog_vu._font(painter: PySide6.QtGui.QPainter, px: float, bold: bool = False) PySide6.QtGui.QFont[source]
- jdxi_editor.ui.widgets.audio.analog_vu._paint_face(painter: PySide6.QtGui.QPainter, face: PySide6.QtCore.QRectF, name: str, peak: float, vu: float, hold: float) None[source]
- jdxi_editor.ui.widgets.audio.analog_vu._paint_scale(painter: PySide6.QtGui.QPainter, geo: FaceGeometry) None[source]
- jdxi_editor.ui.widgets.audio.analog_vu._mark_label_rect(geo: FaceGeometry, vu: float) PySide6.QtCore.QRectF[source]
Where a scale number is printed.
- jdxi_editor.ui.widgets.audio.analog_vu._arc(painter: PySide6.QtGui.QPainter, geo: FaceGeometry, start: float, end: float, radius_scale: float) None[source]
- jdxi_editor.ui.widgets.audio.analog_vu._paint_needle(painter: PySide6.QtGui.QPainter, geo: FaceGeometry, vu: float) None[source]