Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:2/4
K:none
['AB AA/A/', 'd/e/ fA AA/^G/ AF Ad c3 c/d/', 'Dd Bd Bd cA AA/B/ cF FF/A/']  
X:1
L:1/8
M:2/4
K:none
[K:D] A/A/ | AB AA/A/ | AB AA/A/ | AB Ad | Pdc cA/A/ | AB AA/A/ | AB AA/A/ | Ac Ae | ed dA/A/ | 
 AB AA/A/ | AB AA/A/ | AF d>c | PcB BA/A/ | Ac/d/ e/d/c/B/ | A !>!d2 F/A/ | Gc cB/c/ | d3 d/e/ |: 
 !>!f2 !>!f2 | fA AA/^G/ | AF Ad | c3 c/d/ | !>!e2 !>!e2 | eA AB/^G/ | Ac AB/c/ |1 d3 d/e/ :|2 
 d3 d |:[K:G] Bd Bd | dA AA/B/ |"_c" cF FA | GD Dd | Bd Bd |"_c" cA AA/B/ | cF FF/A/ |1 G3 d :|2 
 G3 z |]  