Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:4/4
K:D
['D2 FA d2 ed', 'F2 BAGB']  
X:1
L:1/8
M:4/4
K:D
 D2 FA d2 ed | cdBc ABGA | FGEF DEFA | BAGF EGFE | D2 FA d2 ed | cdBA A2 FG | BAGB ABde |1 
 faef dBAG :|2 faed d2 de || f2 df efde | fedB AF F2 | BAGB ADFA | BAGF EAde | f2 df e2 de | 
 fedB AF F2 | BAGB ABde | faed d2 de | f2 df efde | fedB AF F2 | BAGB ADFA | BAGF EGFE | 
 D2 FA d2 ed | cdBc ABGA | FGEF DFAd | faed d4 ||  