Compose a piece using the specified musical pattern based on the alphabet and the provided melodic theme.
X:1
L:1/4
M:3/4
K:G
['A B']  
X:1
L:1/4
M:3/4
K:G
 D/D/ | G2 G | A B A | G3- | G2 G | c2 c | B2 A | G A B | A3- | A2 A/G/ | A A B/c/ | d d D | 
 G A B | A G A | B c/B/ A | B A G | F2 A | G2 |]  