Generate music with the following musical form represented in alphabets and the given motif.
X:1
L:1/8
M:3/4
K:Gmin
['d>e d2', 'ef fd dg (3g^fg =fe']  
X:1
L:1/8
M:3/4
K:Gmin
 d>e d2 B2 | (3(BAB) (3(cBc) (3(dcd) | d>e d2 c>B | (3(ABA) G2 z2 :: d>e ef fd | dg (3g^fg =fe | 
 d=e ef fd | dg (3g^fg =fe | d>e d2 B2 | (3(BAB) (3(cBc) (3(dcd) | d>e d2 c>B | (3(ABA) G2 z2 :|  