Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
Q:1/4=120
M:3/4
K:D
['F>A d2 F2 G>B e3 d c>e', 'B>c d2 c>B', 'a2 a2', "f4 b>b g4 c'>(a", 'b>)a g2 [Bg]2']  
X:1
L:1/8
Q:1/4=120
M:3/4
K:D
 F>A d2 F2 | G>B e3 d | c>e a>g f>e | d>f A3 G | F>A d2 F2 | G>B e3 d | c>e a>g f>e | 
 d2 [Fd]2 z2 :: B>c d2 c>B | g>g f4 | B>c d2 c>B | ^A>c f>e d>c | B>c d2 c>B | b>b d3 e | 
 f>g f>e c>d | B2 B2 z2 ::[K:D] (3dfa c'2 c'2 | c'2 c'>c c2 | (3A^df a2 a2 | a2 g>f | 
 (3gfg a>g f>e | d>d b4 || c'>c' f4 | b>b g4 || c'>(a f>)(d b>)a | g2 [Bg]2 z2 :|  