Could you have played the piano,when we were getting married?Is that sentance correct?Ты могу сыграть на пианино когда мы женились?
Только без запятой. Could you have played the piano when we were getting married? = Ты мог играть на пианино на нашей свадьбе?