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.