well, it seems that you have a midi loop problem, when u switch local=off on the XP50, it will need to receive the note(and other) information from the thru=on on the Cakewalk, and as u told, in this condition u have no sound on the XP, so try to put THRU = AUTO on Cakewalk, assign a midi channel to each of the tracks, put LOCAL = OFF in the XP, and u're probably in !!