Generate music with the following musical form in terms and the given motif.
X:1
L:1/8
M:4/4
K:Amix
['G>AB>d e>dB>A B<dd>g', 'B2 d2'  
X:1
L:1/8
M:4/4
K:Amix
 e>dB>A G>AB>d | e>dB>A B<dd>g | e>dB>A G>AB>d | g>ed>B A>a^g>a | e>AB>A G>AB>d | e>dB>A B<dd>g | 
 e>AB>A G>AB>d | g>ed>B A2 AE || [EA]2 a2 a>ge>d | e>dB>A B2 d2 | e2 a2 a>ge<d | g<ed>B A2 A2 | 
 A2 a2 a>ge<d | e<dB>A B2 d2 | (3efe e>d (3Bcd e>f | g>ed<B g<e a2 ||  