jdxi_editor.midi.sysex.parser.tone_mapper

tone mapper functions

Functions

get_temporary_area(→ str)

Map address bytes to corresponding temporary area.

get_partial_address(→ str)

Map partial address to corresponding temporary area.

get_drum_tone(→ tuple[str, int])

Map byte value to corresponding synth tone.

get_synth_tone(→ tuple[str, int])

Map byte value to corresponding synth tone.

Module Contents

jdxi_editor.midi.sysex.parser.tone_mapper.get_temporary_area(data: bytes) str[source]

Map address bytes to corresponding temporary area.

Parameters:

data – bytes SysEx message data

Returns:

str Temporary Area: TEMPORARY_PROGRAM, ANALOG_SYNTH, DIGITAL_SYNTH_1 …

jdxi_editor.midi.sysex.parser.tone_mapper.get_partial_address(part_name: str) str[source]

Map partial address to corresponding temporary area.

Parameters:

part_name – str

Returns:

str

jdxi_editor.midi.sysex.parser.tone_mapper.get_drum_tone(byte_value: int) tuple[str, int][source]

Map byte value to corresponding synth tone.

Parameters:

byte_value – int

Returns:

str

jdxi_editor.midi.sysex.parser.tone_mapper.get_synth_tone(byte_value: int) tuple[str, int][source]

Map byte value to corresponding synth tone.

Parameters:

byte_value – int byte value to query

Returns:

tuple[str, int]