Closed stani closed 7 years ago
time should always be unsigned.
long ticksToMs(long ticks, int mpqn, int resolution) { return ((ticks * (mpqn & 0x00000000ffffffffL)) / resolution) / 1000; }
Still something wrong with the new formula.
ticksToMs(9432,454545,120) -> 35727
ticksToMs(9452,454545,120) -> 11
conversion may have fixed playback speed of midi.
ticksToMs
is not used anywhere in the plugin, only msToTicks
is used
seemed i confused myself with the other. anyway I forced value to do a unsigned long long. Seems like the multiplication is causing a value overflow
Works good.
result: -1440