Finished function for outputing generated song file