jdxi_editor.midi.track.instrument

The instrument a track plays, when its name is missing: the file’s own instrument name if it has one, else the General MIDI instrument of its first program change (channel 10: drums).

Attributes

GM_INSTRUMENTS

Functions

instrument_hint(track) → Optional[str]

What the track plays, or None when the file does not say.

Module Contents

jdxi_editor.midi.track.instrument.GM_INSTRUMENTS = ('Acoustic Grand Piano', 'Bright Acoustic Piano', 'Electric Grand Piano', 'Honky-tonk Piano',...[source]
jdxi_editor.midi.track.instrument.instrument_hint(track: mido.MidiTrack) → str | None[source]

What the track plays, or None when the file does not say.