jdxi_editor.midi.track.gm_map
The JD-Xi sound closest to a General MIDI instrument.
A file made for a General MIDI instrument chooses each channel’s instrument with a program change (0-127, no JD-Xi bank). On the JD-Xi those numbers pick a sound of whatever bank the part is in: here each GM instrument has the JD-Xi preset that comes closest — a Digital tone for Digital 1 and 2, an Analog tone for the Analog part (it plays one note at a time: basses and leads), a drum kit for the Drums. Close, not the same: a starting point the user can change.
Preset numbers are the JD-Xi’s, 1-based, as in its preset lists.
Attributes
Functions
|
The JD-Xi Digital preset (1-256) closest to GM program. |
|
The JD-Xi Analog preset (1-64) closest to GM program (a mono part: basses and leads). |
|
The JD-Xi drum kit (1-33) closest to GM drum kit program. |
|
The channel (0-based) of the track's first note. |
|
The General MIDI program the track's notes start with: the first program |
|
|
|
|
|
The JD-Xi preset (1-based, of the part's own list) for track played by |
|
track without its program changes and bank selects on channel (0-based), timing kept. |
|
track starting with Bank Select + Program Change (0-based channel and program). |
Module Contents
- jdxi_editor.midi.track.gm_map.GM_TO_DIGITAL: tuple[int, ...] = (162, 162, 163, 162, 164, 165, 168, 169, 173, 174, 175, 176, 176, 176, 173, 178, 170, 171, 170,...[source]
- jdxi_editor.midi.track.gm_map.digital_for_gm(program: int, average_note: float | None = None) int[source]
The JD-Xi Digital preset (1-256) closest to GM program.
- jdxi_editor.midi.track.gm_map.analog_for_gm(program: int, average_note: float | None = None) int[source]
The JD-Xi Analog preset (1-64) closest to GM program (a mono part: basses and leads).
- jdxi_editor.midi.track.gm_map.kit_for_gm(program: int | None) int[source]
The JD-Xi drum kit (1-33) closest to GM drum kit program.
- jdxi_editor.midi.track.gm_map.note_channel(track: mido.MidiTrack) int | None[source]
The channel (0-based) of the track’s first note.
- jdxi_editor.midi.track.gm_map.gm_program(track: mido.MidiTrack) int | None[source]
The General MIDI program the track’s notes start with: the first program change on their channel, unless a JD-Xi Bank Select comes with it (then it is a JD-Xi sound already).
- jdxi_editor.midi.track.gm_map.preset_for_part(channel: int, track: mido.MidiTrack) int | None[source]
The JD-Xi preset (1-based, of the part’s own list) for track played by the part on channel (1, 2, 3, 10); None: the file chooses no GM sound.