Compose a piece using the specified musical pattern based on the alphabet and the provided melodic theme.
X:1
L:1/8
M:12/8
K:G
['e2 d', 'dBG ABA']  
X:1
L:1/8
M:12/8
K:G
|: GBB BAB GBd efg | Bdd dBG ABA AGA | B2 B BAB GBd e2 f |1 gBB ABA G3 g e2 d :|2 gdB ABA G3 GBd |: 
 g2 d e2 d gfg e2 d | Bdd dBG ABA ABd | g2 d e2 f gfg e2 d |1 dBG ABA G3 GBd :|2 
 dBG ABA G2 g e2 d ||  