Perhaps you turned the instrument on whilst stepping on the pedal?

Sometimes that causes a reverse in polarity with some keyboards.

Ian
_________________________
Yamaha Tyros4, Yamaha MS-60S Powered Monitors(2), Yamaha CS-01, Yamaha TQ-5, Yamaha PSR-S775.