Added control change messages and implemented legato and damper pedal