Generate music with the following musical form in terms and the given motif.
X:1
L:1/8
M:3/4
K:G
['B2 (BG).B.c d2 (de).B.e', 'g4 (fe) (ed) (d2 z', 'g4 (fe) (ed) (d2 z e) (dc)'  
X:1
L:1/8
M:3/4
K:G
 (DGA) | B2 (BG).B.c | d2 (de).B.e | (dc)(cA).A.e | (dB)(GD).G.A | B2 (BG).B.c | d2 (de).B.e | 
 (dc)(AD).F.A | G2 z :: G2 | g4 (fe) | (ed) (d2 z e) | (dc) (c2 z .d) | (cB) (B2 z G) | g4 (fe) | 
 (ed) (d2 z .e) | (d^c) c z BA | d2 (dA)fA | e2 (eA)^cA | d2 (dA)fA | e2 (eA)^cA | de^cede | 
 =cdBdAd | G2 z (DGA) | B2 (BG).B.c | d2 (de).B.e | (dc)(AF).A.e | (dB)(GD).G.A | B2 (BG).B.c | 
 d2 (de).B.e | (dc)(AD).F.A | G2 z :: (GAB) | B2 (BF).c.F | B2 (B=c).B.A | G2 (GD).B.D | 
 G2 z (FGA) | B2 (BF).d.F | B2 (Bc).B.A | G2 (GD).d.D | G2 z2 G2 | g4 (fe) | (ed) (d2 z e) | 
 (dc) (c2 z .d) | (cB) (B2 z .G) | g4 (fe) | (ed) (d2 z e) | (dc) (c2 z .d) | g2 z2 :|  