jdxi_editor.ui.preset.utils
Get preset Values
Example: >>> get_preset_values(preset_index=1) (95, 64, 1)
Functions
|
Normalize Digital PROGRAM_CHANGE dict or preset list to list format. |
|
Retrieve MSB, LSB, and PC values for a given preset. |
Module Contents
- jdxi_editor.ui.preset.utils.convert_preset_dict_to_list(preset_list: Dict[int, Dict[str, Any]] | List[Dict[str, Any]]) List[Dict[str, Any]][source]
Normalize Digital PROGRAM_CHANGE dict or preset list to list format.
- Parameters:
preset_list – Dict keyed by preset id or existing list (Analog/Drum)
- Returns:
List of preset dicts with id, name, category, msb, lsb, pc
- jdxi_editor.ui.preset.utils.get_preset_values(preset_index: int, preset_list=JDXi.UI.Preset.Digital.LIST)[source]
Retrieve MSB, LSB, and PC values for a given preset.
- Parameters:
preset_index – int The index of the preset
preset_list – list The list of presets
- Returns:
tuple The MSB, LSB, and PC values