There's a bug in the Adafruit AFMotor library that will probably show up if you try to use PWM frequencies that don't match the PWM frequencies that the Arduino core uses for analogWrite()
Details here: http://www.adafruit.com/forums/viewtopic.php?f=31&t=21171