Writes songs to midi files