Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:6/8
K:D
['d cAA BAG', 'f3 gfg afd']  
X:1
L:1/8
M:6/8
K:D
 d | cAA BAG | cAA A2 d | cAA BAG | AFD D2 d | cAA BAG | cAA AFD | G3 BAG | AFD D2 :: e | f3 gfg | 
 afd cBA | f3 gfg | afd dfg | a2 f gfe | fed efd | cAA BAG | AFD D2 :|  