jdxi_editor.ui.editors.digital.wave_browser

The PCM waveforms of a Digital partial, browsed by family.

The 160 waves, a search, favourites (remembered) and Try: a wave chosen is set on the partial at once and a short note plays it, so the arrows go through the waves by ear. Cancel puts the wave back. OK is one Undo step.

Attributes

FAVOURITES_KEY

TRY_KEY

TRY_NOTE

TRY_VELOCITY

TRY_LENGTH_MS

FAMILIES

Classes

WaveBrowser

Choose the PCM wave of a partial: families, search, favourites, try by ear.

Functions

wave_name(number) → str

The wave's name without its number. 1 is Calc.Saw.

family_of(number) → str

matches(number, text) → bool

Words in the name, in any order, or the start of the number.

_settings() → PySide6.QtCore.QSettings

favourites([settings]) → set[int]

set_favourites(numbers[, settings]) → None

Module Contents

jdxi_editor.ui.editors.digital.wave_browser.FAVOURITES_KEY = 'digital/pcm_favourites'[source]
jdxi_editor.ui.editors.digital.wave_browser.TRY_KEY = 'digital/pcm_try'[source]
jdxi_editor.ui.editors.digital.wave_browser.TRY_NOTE = 60[source]
jdxi_editor.ui.editors.digital.wave_browser.TRY_VELOCITY = 100[source]
jdxi_editor.ui.editors.digital.wave_browser.TRY_LENGTH_MS = 600[source]
jdxi_editor.ui.editors.digital.wave_browser.FAMILIES: dict[str, tuple[int, ...]][source]
jdxi_editor.ui.editors.digital.wave_browser.wave_name(number: int) → str[source]

The wave’s name without its number. 1 is Calc.Saw.

jdxi_editor.ui.editors.digital.wave_browser.family_of(number: int) → str[source]
jdxi_editor.ui.editors.digital.wave_browser.matches(number: int, text: str) → bool[source]

Words in the name, in any order, or the start of the number.

jdxi_editor.ui.editors.digital.wave_browser._settings() → PySide6.QtCore.QSettings[source]
jdxi_editor.ui.editors.digital.wave_browser.favourites(settings: PySide6.QtCore.QSettings | None = None) → set[int][source]
jdxi_editor.ui.editors.digital.wave_browser.set_favourites(numbers: set[int], settings: PySide6.QtCore.QSettings | None = None) → None[source]
class jdxi_editor.ui.editors.digital.wave_browser.WaveBrowser(wave, play_note: Callable[[int, int], None] | None = None, title: str = '', history=None, parent: PySide6.QtWidgets.QWidget | None = None, settings: PySide6.QtCore.QSettings | None = None)[source]

Bases: PySide6.QtWidgets.QDialog

Choose the PCM wave of a partial: families, search, favourites, try by ear.

wave[source]
play_note = None[source]
history = None[source]
settings[source]
original[source]
starred[source]
_note_timer[source]
_sounding = False[source]
search[source]
families[source]
waves[source]
try_box[source]
star[source]
status[source]
refresh(*_args) → None[source]
_select(number: int, play: bool = False) → None[source]
current_number() → int | None[source]
_chosen(item, _previous=None) → None[source]
_set_wave(number: int, remember: bool) → None[source]

Set the wave. remember False: a try, not an Undo step of its own.

_note_off() → None[source]
toggle_star() → None[source]
_show_star(number: int) → None[source]
accept() → None[source]
reject() → None[source]