jdxi_editor.jdxi.preset.manager
Classes
Module Contents
- class jdxi_editor.jdxi.preset.manager.JDXiPresetManager[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