Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:2/2
K:D
['', 'B>G G2', 'g>fe>d (3(efe) d>B A>GF>G |2,3', 'g>fe>d (3(Bcd) e>f e2 f>g :|2,4 A>fe>f']  
X:1
L:1/8
M:2/2
K:D
 (3(ABc) |: (3ddd d>A B>G G2 | F>GA>c B>G G2 |1,3{a} g2 g>f e>dc>d | 
 (3(efe) (3(dcB) A>B({d}cA) :|2,4 A>ge>f g>ec>d | e>d({e}dc) d2 :: (fg) |: a>fd>f g>fe>d | 
 (3(efe) d>B A>GF>G |2,3 F>fe>f g>fe>d | (3(Bcd) e>f e2 f>g :|2,4 A>fe>f g>ec>d | e>d({e}dc) d2 :|  