Synthesize a MIDI file to WAV from the command line using FluidSynth:
fluidsynth -F output.wav soundfont.sf2 input.mid
Some popular SoundFonts: GeneralUser GS, Fluid R3 GM, some others.
DeepBach uses the Python music21 library for MIDI parsing, but only supports monophonic MIDI (it throws 'Chord' object has no attribute 'pitch'
if you give it a polyphonic MIDI file). The patch here lets it use polyphonic MIDI by arbitrarily using the first pitch in a chord.