jdxi_editor.ui.widgets.audio.vu_meter
Stereo meters.
The skin’s meter style chooses the drawing: two horizontal bars on one dB
scale (MeterStyle.BARS, the default), circular dials (NEEDLES), or a pair of
backlit analogue VU meters (VINTAGE_VU, see analog_vu).
Attributes
Classes
Stereo levels: bars by default, needles when the skin asks. |
Functions
|
Degrees, standard position, for a meter reading. |
|
Where the needle ends. |
|
The left and right dials. |
|
The rectangle both bars and the scale share. |
|
The x of a level on the shared scale. |
|
One channel's bar inside the track. |
|
|
|
|
|
Module Contents
- jdxi_editor.ui.widgets.audio.vu_meter.needle_angle(db: float) float[source]
Degrees, standard position, for a meter reading.
- Parameters:
db – float
- Returns:
float
- jdxi_editor.ui.widgets.audio.vu_meter.needle_tip(origin_x: float, origin_y: float, radius: float, db: float) tuple[float, float][source]
Where the needle ends.
- Parameters:
origin_x – float pivot
origin_y – float pivot
radius – float length
db – float
- Returns:
tuple x, y in widget coordinates
- jdxi_editor.ui.widgets.audio.vu_meter.dial_rects(width: float, height: float) tuple[PySide6.QtCore.QRectF, PySide6.QtCore.QRectF][source]
The left and right dials.
- Parameters:
width – float
height – float
- Returns:
tuple of QRectF
- jdxi_editor.ui.widgets.audio.vu_meter.track_rect(width: float, height: float) PySide6.QtCore.QRectF[source]
The rectangle both bars and the scale share.
- Parameters:
width – float
height – float
- Returns:
QRectF
- jdxi_editor.ui.widgets.audio.vu_meter.bar_x(rect: PySide6.QtCore.QRectF, db: float) float[source]
The x of a level on the shared scale.
- Parameters:
rect – QRectF the track
db – float
- Returns:
float
- jdxi_editor.ui.widgets.audio.vu_meter.row_bar(track: PySide6.QtCore.QRectF, index: int) PySide6.QtCore.QRectF[source]
One channel’s bar inside the track.
- Parameters:
track – QRectF
index – int 0 is left, 1 is right
- Returns:
QRectF
- class jdxi_editor.ui.widgets.audio.vu_meter.VUMeter(parent: PySide6.QtWidgets.QWidget | None = None)[source]
Bases:
PySide6.QtWidgets.QWidgetStereo levels: bars by default, needles when the skin asks.
- jdxi_editor.ui.widgets.audio.vu_meter._meter_style() jdxi_editor.ui.style.rack_skin.MeterStyle[source]