This is my post from back in July (wow) about the MIDI rounding bug, and this might be what is causing you to get incorrect values possibly: