Construct a musical piece by amalgamating the designated alphabetical representation and the supplied musical theme.
X:1
L:1/8
M:2/4
K:D
['E A2 AB =c2 BA B=cBA G3']  
X:1
L:1/8
M:2/4
K:D
 E | A2 AB | =c2 BA | B=cBA | G3 A | A2 E=F | G2 G=F | E2 =FE | D2 z |]  