Compose a piece using the specified musical pattern based on the alphabet and the provided melodic theme.
X:1
L:1/8
M:4/4
K:D
['A,2 EA,', 'BGBd cAAA eaef ged=c BGBd ^cAAA eaed']  
X:1
L:1/8
M:4/4
K:D
 A,2 EA, FA,EA, | A,2 ED =CA,A,G, | A,2 EA, FA,EF |1 G2 D=C B,G,G,B, :|2 G2 D=C B,G,G,d || 
 cAAA eaed | cAAA BGBd | cAAA eaef | ged=c BGBd | ^cAAA eaed | cAAA BGBd | =c2 dc B2 dB | 
 =caBg cBGB, ||  