Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:2/4
K:D
['D2 DD', 'EE Ed dd cB GB']  
X:1
L:1/8
M:2/4
K:D
 z A AF | D2 DD | B,D FB, | D2 DD | B,D FB, | D2 DD | FA AF | E4 | z A AF | D2 DD | B,D FB, | 
 D2 DD | FD AD | BF AD | FD EC | D4 :|[K:A] E2 CE | AE EE | BE EE | cE EE | dE EE | Ed dd | cB GB | 
 A4 | EE EE | EA AA | BB AB | c2 A2 | EE EE | Ed dd | cB GB | A4 ||  