jdxi_editor.ui.dialogs.trim

Trim dialog

Choose the range to keep when trimming a MIDI file or one of its tracks: a start and end time, each shown as a bar and beat too, and each settable from the playback position.

Attributes

MIN_LENGTH_SECONDS

Classes

TrimDialog

Start and end (seconds) of the part of a MIDI file or track to keep.

Module Contents

jdxi_editor.ui.dialogs.trim.MIN_LENGTH_SECONDS = 0.01[source]
class jdxi_editor.ui.dialogs.trim.TrimDialog(*, title: str, description: str, start: float, end: float, duration: float, bar_beat: Callable[[float], tuple[int, int]], playhead: Callable[[], float], parent: PySide6.QtWidgets.QWidget | None = None)[source]

Bases: PySide6.QtWidgets.QDialog

Start and end (seconds) of the part of a MIDI file or track to keep.

_bar_beat[source]
_playhead[source]
length_label[source]
ok_button[source]
_time_row(duration: float) → tuple[PySide6.QtWidgets.QDoubleSpinBox, PySide6.QtWidgets.QHBoxLayout, PySide6.QtWidgets.QLabel][source]

Seconds spin box, its bar:beat and a button to take the playhead.

_update(*_args) → None[source]
range_seconds() → tuple[float, float][source]

(start, end) in seconds.