Compose a piece using the specified musical pattern based on the alphabet and the provided melodic theme.
X:1
L:1/8
Q:1/2=80
M:2/2
K:Gmin
['d2 d2 g3 a g>b a>g ^f2', '(3gag (3fgf']  
X:1
L:1/8
Q:1/2=80
M:2/2
K:Gmin
 d2 d2 | g3 a g>b a>g | ^f2 d2 (3gag (3fgf | (3efe d>c B2 A>G G4 G2 ec | BABG dcdG | ^F2 D2 GABG | 
 cAdB ecdD | G4 :| f2 f2 | d2 B2 (3gag (3fgf | e2 d2 (gab)g | (3gag (3fgf | e>d c>B | B4 d2 d2 | 
 (=e2 e2 e2) f>g | f>e d2 b2 a2 | (g2 f2) b2 (3aba | (3gag g>f d2 (g/a/b) | (^f3 a) g4 | 
 dcBA G2 dc | BABG dcdG | ^F2 D2 GABG | cAdB ecdD | G4 |]  