MIDI Remote sending delayed (and incorrect) messages to my controllers

But this is not a bug. Casting to integer always cut of the decimal places. If you want rounding then casting is the wrong message. In javascript there should rounding available.