Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
Q:1/8=160
M:4/4
K:D
['fg afaf d2 fd ecec A2 GF', 'd2 de fded B2 ga b2 e2']  
X:1
L:1/8
Q:1/8=160
M:4/4
K:D
 fg | afaf d2 fd | ecec A2 GF | GABc defg | ecAc d2 fg | afaf d2 fd | ecec A2 GF | Ggbg fdec | 
 d2 d2 d2 :: de | fded B2 ga | b2 e2 e2 cd | ecdc A2 fg | a2 d2 d3 c | BccB AFAF | BcdB BFAF | 
 Ggbg fdec | d2 d2 d2 :|  