Now write_midi excepts a list of instruments to use for each track written to the MIDI file, and each track gets its own MIDI channel.