Generate music with the following musical form in terms and the given motif.
X:1
L:1/8
M:3/8
K:G
['d/e/ d2 c (c/B/) BB/c/ d>ba/g/ gf', 'fg B/c/ d(d/b/).c/.a/ B(B/d/).c/.e/ d>ba/g/ gf A/B/', 'e>dc/B/ ABc'  
X:1
L:1/8
M:3/8
K:G
 d/e/ | d2 c | (c/B/) BB/c/ | d>ba/g/ | gf c/d/ | c2 B | (c/A/) AA/B/ | c>ag/f/ | fg :: B/c/ | 
 d(d/b/).c/.a/ | B(B/d/).c/.e/ | d>ba/g/ | gf A/B/ | c(c/a/).B/.g/ | A(A/c/).B/.d/ | c3/2a/4g/f/ | 
 fg :: D | GBd | (g2 f) | f2 e | e>dc/B/ | ABc | ((e2 d)) | d2 c2 | cBA | GBd | gf=f | (_e2 =e) | 
 e>dc/B/ | ABc | edf | a3 | g2 :|  