Testing writing out midi