Added time signature to midi file output.
Minor tidy in gus_pat.c