jdxi_editor.jdxi.preset.manager

Classes

JDXiPresetManager

Module Contents

class jdxi_editor.jdxi.preset.manager.JDXiPresetManager[source]
_instance = None[source]

Singleton class to manage presets.

current_preset_number = 1[source]
current_preset_index = 0[source]
current_preset_name = 'Init Tone'[source]
current_preset_names[source]
preset_channel_map[source]
preset_synth_map[source]
get_preset_name_by_type_and_index(synth_type: jdxi_editor.jdxi.synth.type.JDXiSynth, preset_index: int) str[source]

Get the name of the currently selected preset

Parameters:
  • synth_type – JDXISynth The type of synth

  • preset_index – int The index of the preset

Returns:

str The name of the preset

get_presets_for_synth(synth: jdxi_editor.jdxi.synth.type.JDXiSynth) jdxi_editor.jdxi.preset.lists.JDXiPresetToneList[source]

Get the available presets for the given synth type.

Parameters:

synth – JDXISynth The type of synth

Returns:

JDXIPresets The available presets

get_presets_for_channel(channel: jdxi_editor.midi.channel.channel.MidiChannel) jdxi_editor.jdxi.preset.lists.JDXiPresetToneList[source]

Get the available presets for the given channel.

Parameters:

channel – MidiChannel The MIDI channel

Returns:

JDXIPresets The available presets

set_current_preset_name(preset_name: str)[source]

Set the current global tone name.

Parameters:

preset_name – str The name of the preset

set_preset_name_by_type(preset_type: str, preset_name: str)[source]

Set the preset name for a specific tone type.

Parameters:
  • preset_type – str The type of preset

  • preset_name – str The name of the preset

get_preset_name_by_type(tone_type: jdxi_editor.jdxi.synth.type.JDXiSynth) str[source]

Get the tone name for a specific tone type.

Parameters:

tone_type – JDXISynth The type of tone

Returns:

str The name of the tone

reset_all_presets()[source]

Reset all tone names to ‘Init Tone’.

_update_display()[source]

Update the display.