jdxi_editor.ui.editors.pattern.helper ===================================== .. py:module:: jdxi_editor.ui.editors.pattern.helper Functions --------- .. autoapisummary:: jdxi_editor.ui.editors.pattern.helper.reset_button jdxi_editor.ui.editors.pattern.helper.reset_measure jdxi_editor.ui.editors.pattern.helper._note_spec_from_button jdxi_editor.ui.editors.pattern.helper.get_button_note_spec jdxi_editor.ui.editors.pattern.helper.sync_button_note_spec jdxi_editor.ui.editors.pattern.helper.update_button_state jdxi_editor.ui.editors.pattern.helper.set_spinbox_value jdxi_editor.ui.editors.pattern.helper.set_sequencer_style Module Contents --------------- .. py:function:: reset_button(button: jdxi_editor.ui.widgets.pattern.sequencer_button.SequencerButton) reset the Sequencer button .. py:function:: reset_measure(measure: jdxi_editor.ui.widgets.pattern.measure_widget.PatternMeasureWidget) .. py:function:: _note_spec_from_button(button) -> picomidi.ui.widget.button.note.NoteButtonEvent Build NoteButtonSpec from button NOTE/NOTE_DURATION/NOTE_VELOCITY. .. py:function:: get_button_note_spec(button) -> picomidi.ui.widget.button.note.NoteButtonEvent Return the effective NoteButtonSpec (from attribute or built from attrs). .. py:function:: sync_button_note_spec(button) -> None Update button.note_spec from NOTE, NOTE_DURATION, NOTE_VELOCITY. .. py:function:: update_button_state(button: PySide6.QtWidgets.QPushButton, checked_state: bool | None = None, enabled_state: bool | None = None) .. py:function:: set_spinbox_value(spinbox: PySide6.QtWidgets.QSpinBox, value: int) set spinbox value safely .. py:function:: set_sequencer_style(btn: jdxi_editor.ui.widgets.pattern.sequencer_button.SequencerButton, is_current: bool = False, checked: bool = False) set sequencer style