Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:4/4
K:D
['dcde fefd', 'bagf bagf']  
X:1
L:1/8
M:4/4
K:D
 A2 | dcde fefd | efgf e2 af | dcde fefd | edcB A3 A | dcde fefd | efgd e2 fg | afdf gedc | 
 d2 f2 d2 :| cd | edcd Bc A2 | fede cd B2 | bagf bagf | bagf gfge | dcdc defe | fdef gf e2 | 
 afdf gecA | d2 f2 d2 :|  