jdxi_editor.ui.dialogs.trim =========================== .. py:module:: jdxi_editor.ui.dialogs.trim .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: jdxi_editor.ui.dialogs.trim.MIN_LENGTH_SECONDS Classes ------- .. autoapisummary:: jdxi_editor.ui.dialogs.trim.TrimDialog Module Contents --------------- .. py:data:: MIN_LENGTH_SECONDS :value: 0.01 .. py:class:: TrimDialog(*, title: str, description: str, start: float, end: float, duration: float, bar_beat: Callable[[float], tuple[int, int]], playhead: Callable[[], float], parent: Optional[PySide6.QtWidgets.QWidget] = None) Bases: :py:obj:`PySide6.QtWidgets.QDialog` Start and end (seconds) of the part of a MIDI file or track to keep. .. py:attribute:: _bar_beat .. py:attribute:: _playhead .. py:attribute:: length_label .. py:attribute:: ok_button .. py:method:: _time_row(duration: float) -> tuple[PySide6.QtWidgets.QDoubleSpinBox, PySide6.QtWidgets.QHBoxLayout, PySide6.QtWidgets.QLabel] Seconds spin box, its bar:beat and a button to take the playhead. .. py:method:: _update(*_args) -> None .. py:method:: range_seconds() -> tuple[float, float] (start, end) in seconds.