they had persuaded pete townshend of the who to transcribe and perform the music , and part of the persuasion had taken the form of creating the illusion of a competition between him and paul mccartney , who just a year earlier had written the score for a ballet performed by the new york city ballet .