jdxi_editor.ui.widgets.audio.audio_monitor

The Audio Monitor panel: device, the three instruments, and one timer.

Classes

_Readout

A short heading and one instrument, on the chassis surface.

AudioMonitor

Captures an input, analyses it once, and paints whichever instruments

Functions

_round_button(icon, text, tooltip)

A round JD-Xi button and its icon + text label, as on the Transport.

_luminance(colour) → float

_contrast(first, second) → float

_heading_colour(skin) → str

The readout headings sit on the chassis's dark control surface, not on

Module Contents

class jdxi_editor.ui.widgets.audio.audio_monitor._Readout(title: str, body: PySide6.QtWidgets.QWidget, parent: PySide6.QtWidgets.QWidget | None = None)[source]

Bases: PySide6.QtWidgets.QWidget

A short heading and one instrument, on the chassis surface.

heading[source]
body[source]
apply_skin() → None[source]
class jdxi_editor.ui.widgets.audio.audio_monitor.AudioMonitor(parent: PySide6.QtWidgets.QWidget | None = None)[source]

Bases: PySide6.QtWidgets.QWidget

Captures an input, analyses it once, and paints whichever instruments are switched on.

ring[source]
analyser[source]
source[source]
scope[source]
vu[source]
spectrum[source]
scope_panel[source]
meter_panel[source]
spectrum_panel[source]
_skin_id[source]
device[source]
status[source]
show_scope[source]
show_vu[source]
show_spectrum[source]
timebase[source]
_timer[source]
_populate_devices() → None[source]
_timebase_changed(_index: int) → None[source]
_on_listen_clicked(_checked: bool) → None[source]
_set_listening(listening: bool) → None[source]
start() → None[source]

Open the chosen input and start the refresh timer.

Returns:

None

stop() → None[source]

Close the input and stop analysis.

Returns:

None

refresh_display() → None[source]

Paint the latest snapshot, if one has been published.

Returns:

None

show_snapshot(snapshot: jdxi_editor.audio.audio_snapshot.AudioSnapshot | None) → None[source]

Hand one snapshot to the three instruments.

Parameters:

snapshot – Optional[AudioSnapshot]

Returns:

None

_apply_panel_skin() → None[source]
closeEvent(event) → None[source]
jdxi_editor.ui.widgets.audio.audio_monitor._round_button(icon: str, text: str, tooltip: str)[source]

A round JD-Xi button and its icon + text label, as on the Transport.

Parameters:
  • icon – str name of a JDXi.UI.Icon constant

  • text – str label

  • tooltip – str

Returns:

(QPushButton, QWidget label row)

jdxi_editor.ui.widgets.audio.audio_monitor._luminance(colour: str) → float[source]
jdxi_editor.ui.widgets.audio.audio_monitor._contrast(first: str, second: str) → float[source]
jdxi_editor.ui.widgets.audio.audio_monitor._heading_colour(skin) → str[source]

The readout headings sit on the chassis’s dark control surface, not on the faceplate. A pale skin’s faceplate ink (dark) would vanish there, so it is used only when it reads on the surface; otherwise the display’s colours, which are made for a dark ground, and failing those a light grey.