writeMidiFile() creates incorrect ppqPositions

When I imported the midi file written from my script, the notes were all in the wrong positions. They seemed to be quantized to quarter notes.

I used a “for” loop to print all the events in the midi table track array, before the file is written. They were accurate, so insertEvent() isn’t the problem. After importing the file and printing again, I noticed the ppqPositions were all rounded to the nearest whole numbers.

I copied the example script from insertEvent and writeMidiFile in the developers resource, changed the ppqPosition increment to decimals, but the problem persists.

Hi AposMus,
I’m able to reproduce it here. Its now in our Defect-Tracking-System and listed as Bug-ID “HALLY-7182”.
I hope we can provide a fix for it soon.

Thanks for your report and please accept my apologies for any inconvenience caused.
Gerrit Junge

Thanks Gerrit, much appreciated.