writeMidiFile() creates incorrect ppqPositions

Thanks Gerrit, much appreciated.