Help with midi controller transpose button

Those if statements are mutually exclusive. If the pitch is modified, it can never be sent.