Fixed pitch bend and added a hack for MIDI.