Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
Q:1/8=375
M:12/8
K:D
['AAA DFD A2 D A2 d cBA', 'd2 e fff e2']  
X:1
L:1/8
Q:1/8=375
M:12/8
K:D
 (3EFG | AAA DFD A2 D A2 d | cBA EFG EFD EFG | AAA DFD A2 D A2 d | cBA EGE F2 D D :| FA | 
 d2 e fff e2 z dcA | AAA EFG EFD EFG | d2 e fff e2 e dcA | AAA EGE F2 D D :|  