jdxi_editor.midi.track.instrument ================================= .. py:module:: jdxi_editor.midi.track.instrument .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: jdxi_editor.midi.track.instrument.GM_INSTRUMENTS Functions --------- .. autoapisummary:: jdxi_editor.midi.track.instrument.instrument_hint Module Contents --------------- .. py:data:: GM_INSTRUMENTS :value: ('Acoustic Grand Piano', 'Bright Acoustic Piano', 'Electric Grand Piano', 'Honky-tonk Piano',... .. py:function:: instrument_hint(track: mido.MidiTrack) -> Optional[str] What the track plays, or None when the file does not say.