Serial and Processing at Midi Baudrate 31250

Has nobody any idea where this comes from? I am currently using a baudrate of 38400 which works fine. But for sending midi I will need 31250.
Could it be a problem with the arduino model I'm using?