Generate music with the following musical form represented in alphabets and the given motif.
X:1
L:1/8
M:4/4
K:G
['g2 (gd)', '(e/d/c/B/) (AB) GABd']  
X:1
L:1/8
M:4/4
K:G
 GABd g2 (gd) | g2 (gd) agab | GABd gaba | gedB A2 e2 :| GABg dGBg | dGBd (e/d/c/B/) (AB) | 
 GABd gabagedB A2 e2 | GABg dgBg | dBgd (e/d/c/B/) (AB) | GABd gaba | gedB A2 e2 ||  