Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
Q:1/8=180
M:6/8
K:D
['E2 D FAA AFA', 'gbb bag', 'g faa']  
X:1
L:1/8
Q:1/8=180
M:6/8
K:D
|: A | dfe dcB | AdF E2 D | FAA AFA | Bee e2 f | dfe dcB | AdG E2 D | FAA AFA | Bdd d2 :: g | 
 faa afd | gbb bag | faa agf | gee e2 f | faa agf | gbb bag | fed dge | fdd d2 :: g | faa afd | 
 gbb bag | faa agf | gee e2 g | faa faa | gbb gbb | fed ege | fdd d2 :|  