title: How can I write a MIDI file with Python?
body: <p>I am writing a script to convert a picture into MIDI notes based on the RGBA values of the individual pixels. However, I cannot seem to get the last step working, which is to actually output the notes to a file.</p>
  <p>I have tried using the MIDIUtil library, however its documentation is not the greatest and I can't seem to figure it out.</p>
  <p>If anyone could tell me how to sequence the notes (so that they don't all begin at the beginning) it would be greatly appreciated.</p>