jdxi_editor.ui.editors.playlist.progress

Playlist progress

Where playback is in a playlist: an LCD with the song number and name, the song’s own progress (elapsed, length and time left), a bar with a segment per song (played, playing, still to come; click one to play it) and the next song.

Attributes

SEGMENT_GAP

SEGMENT_HEIGHT

PLAYED_TOP

PLAYED_BOTTOM

UNPLAYED

UNPLAYED_BORDER

CURRENT_BORDER

ARTWORK_SIZE

Classes

PlaylistSegmentBar

A segment per song: played ones lit, the current one filling, the rest dark.

PlaylistProgressWidget

Now playing: song n of N, its progress, the playlist's progress, up next.

Module Contents

jdxi_editor.ui.editors.playlist.progress.SEGMENT_GAP = 3[source]
jdxi_editor.ui.editors.playlist.progress.SEGMENT_HEIGHT = 14[source]
jdxi_editor.ui.editors.playlist.progress.PLAYED_TOP[source]
jdxi_editor.ui.editors.playlist.progress.PLAYED_BOTTOM[source]
jdxi_editor.ui.editors.playlist.progress.UNPLAYED[source]
jdxi_editor.ui.editors.playlist.progress.UNPLAYED_BORDER[source]
jdxi_editor.ui.editors.playlist.progress.CURRENT_BORDER[source]
jdxi_editor.ui.editors.playlist.progress.ARTWORK_SIZE = 96[source]
class jdxi_editor.ui.editors.playlist.progress.PlaylistSegmentBar(parent: PySide6.QtWidgets.QWidget | None = None)[source]

Bases: PySide6.QtWidgets.QWidget

A segment per song: played ones lit, the current one filling, the rest dark.

song_clicked[source]
_titles: list[str] = [][source]
_current: int | None = None[source]
_fraction = 0.0[source]
set_songs(titles: list[str]) → None[source]
set_position(current: int | None, fraction: float = 0.0) → None[source]

Song current is playing, fraction (0-1) through; None: none is.

_segment_rects() → list[PySide6.QtCore.QRectF][source]
song_at(x: float) → int | None[source]
paintEvent(_event) → None[source]
event(event: PySide6.QtCore.QEvent) → bool[source]
mousePressEvent(event: PySide6.QtGui.QMouseEvent) → None[source]
class jdxi_editor.ui.editors.playlist.progress.PlaylistProgressWidget(parent: PySide6.QtWidgets.QWidget | None = None)[source]

Bases: PySide6.QtWidgets.QWidget

Now playing: song n of N, its progress, the playlist’s progress, up next.

song_clicked[source]
_titles: list[str] = [][source]
_artwork: list[str | None] = [][source]
_current: int | None = None[source]
_duration = 0.0[source]
_paused = False[source]
_status = 'Stopped'[source]
display[source]
song_bar[source]
segments[source]
next_label[source]
artwork_label[source]
set_songs(titles: list[str]) → None[source]

The playlist’s songs (the rows with a MIDI file), in play order.

set_artwork(paths: list) → None[source]

Each song’s cover image path (None for none), in play order.

_show_artwork() → None[source]
property artwork_shown: str | None[source]

Path of the cover on show, or None.

show_song(index: int, duration: float) → None[source]

Song index (0-based) has started; it lasts duration seconds.

set_current(index: int) → None[source]

The playing song is now number index (0-based), e.g. after sorting.

set_position(seconds: float) → None[source]

Playback position in the current song.

set_paused(paused: bool) → None[source]
show_stopped() → None[source]
show_finished() → None[source]

The last song ended: every segment lit.

_show_idle(status: str) → None[source]
property current: int | None[source]
_refresh() → None[source]