jdxi_editor.midi.sysex.parser.tone_mapper

tone mapper functions

Attributes

PROGRAM_SECTION_MAP

Classes

TemporaryArea

Functions

get_program_section(→ tuple[str, int])

Map LMB byte to section name for TEMPORARY_PROGRAM area.

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.PROGRAM_SECTION_MAP[source]
jdxi_editor.midi.sysex.parser.tone_mapper.get_program_section(byte_value: int) tuple[str, int][source]

Map LMB byte to section name for TEMPORARY_PROGRAM area.

Parameters:

byte_value – int LMB byte from SysEx address

Returns:

tuple[str, int] section name and offset (0 for program sections)

class jdxi_editor.midi.sysex.parser.tone_mapper.TemporaryArea[source]
TEMPORARY_PROGRAM = 'TEMPORARY_PROGRAM'[source]
ANALOG_SYNTH = 'ANALOG_SYNTH'[source]
DIGITAL_SYNTH_1 = 'DIGITAL_SYNTH_1'[source]
DIGITAL_SYNTH_2 = 'DIGITAL_SYNTH_2'[source]
DRUM_KIT = 'DRUM_KIT'[source]
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, SYSTEM_COMMON, …

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]