updating MIDI export to use 24 ticks per beat, as seems to be standard, and fixing overlap bug / misinterpretation of the standard