Generate music with the following musical form in terms and the given motif.
X:1
L:1/8
M:2/2
K:Gmin
['g^f g4 GABc dcde d2 ba (ga', 'B2 f=e f4 FGAB cBcd c2 f=e', 'ga b2 B2 b2 ag ab ab', 'd=e f2 F2 f2 f=e fg fa'  
X:1
L:1/8
M:2/2
K:Gmin
 g^f | g4 GABc | dcde d2 ba | (ga b2) (fd)(cB) | B4- B2 :: f=e | f4 FGAB | cBcd c2 f=e | 
 d=e f2 b2 (bg) | (=ef) g2 (^fa)(dc) | (Bd)(gB) A2 ^f2 | g4- g2 :|[M:3/4] ga | b2 B2 b2 | 
 ag ab ab | g2 G2 g2 | f^e fg fd | e2 e2 fe | d2 ed cd | B2 G2 ^c2 | d2- d2 :: d=e | f2 F2 f2 | 
 f=e fg fa | g2 G2 g2 | gf ga ga | b2 B2 b2 | a2 A2 g^f | =e^f (f>ef/) | g2- g2 :|  