def mkHeader(count, tempo, Mtype): return packBytes("MThd", intToLong(6), intToWord(Mtype), intToWord(count), intToWord(tempo))
def mkHeader(count, tempo, Mtype): return "MThd" + intToLong(6) + intToWord(Mtype) + intToWord(count) + intToWord(tempo)