Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:2/2
K:D
['FG ABAF', 'dAFA dAFA']  
X:1
L:1/8
M:2/2
K:D
 FG | ABAF d2 dB | ABAF E2 FG | ABAF defe | dBAF DEFG | ABAF dedB | ABAF E2 FG | ABAF defe | 
 dBAF D2 || A2 | dAFA dAFA | dAFA E2 Ac | dAFA defe | dBAF D2 A2 | dAFA dAFA | dAFA E2 Ac | 
 dAFA defe | dBAF D2 ||  