Create a composition by utilizing the given alphabet-based musical pattern and the provided melodic theme.
X:1
L:1/8
M:4/4
K:G
['', 'd>g e>d B>G', 'g>e d>g', 'g>e d>g e>d']  
X:1
L:1/8
M:4/4
K:G
 (3def |: g2 d>g e>d B>G | (3ABA G>B A>G E>D | G,>A,B,>D E>D B,>A, | (3G,A,B,D>E G>A B>G | 
 A>B d.B g.d g.a | b>g e>a g>e d>e | g>e d>g e>d B>G |1 (3ABA G.f G2 e>f :|2 (3ABA G>F G2 A2 || 
 B2 G>B d>G B>d | g>d g>a b>g e>a | g>e d>g e>d B>d | (3ege d>B A>B G>A | B>A G>B d>G B>d | 
 g>d g>a b>g e>a | g>e d>g e>d B>G | (3ABA G>F G2 A2 | B2 G>B d4 | g>d g>a b4 | g>e d>g e>d B>d | 
 (3ege d>B A>B G>A | B>A G>B d>G B>d | g>d g>a b>g e>a | g>e d>g e.d B>G | (3ABA G>F G2 e>f | 
 g2 d>g e>d B>G | (3ABA G>B A>G E>D | G,>A,B,>D E>D B,>A, | (3G,A,B,D>E G>A B>G | A>B d.B g.d g.a | 
 b>g e>a g>e d>e | g>e d>g e>d B>G |1 (3ABA G.f G2 e>f :|2 (3ABA G>F G2 A2 || B2 G>B d>G B>d | 
 g>d g>a b>g e>a | g>e d>g e>d B>d | (3ege d>B A>B G>A | B>A G>B d>G B>d | g>d g>a b>g e>a | 
 g>e d>g e>d B>G | (3ABA G>F G2 A2 | B2 G>B d4 | g>d g>a b4 | g>e d>g e>d B>d | (3ege d>B A>B G>A | 
 B>A G>B d>G B>d | g>d g>a b4 | g>e d>g e>d B>G | (3ABA G>F G2 z g ||  