Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion note_seq/midi_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ def note_sequence_to_pretty_midi(
for (instr_id, prog_id, is_drum) in sorted(instrument_events.keys()):
# For instr_id 0 append to the instrument created above.
if instr_id > 0:
instrument = pretty_midi.Instrument(prog_id, is_drum)
name = 'Drums' if is_drum else pretty_midi.program_to_instrument_name(prog_id)
instrument = pretty_midi.Instrument(prog_id, is_drum, name)
pm.instruments.append(instrument)
else:
instrument.is_drum = is_drum
Expand Down