Compose music with the following musical form, using the given motif as a basis.
X:1
L:1/8
M:4/4
K:Amix
['', 'e2 dB', 'fa^ga baga'  
X:1
L:1/8
M:4/4
K:Amix
 gf |: .e.A.A.A BA.B.d | .e.gfd e2 dB | .e.A.A.A BABd | d2 ed Bdd>d | .e.A.A.A BABd | 
 (3efg fd e2 dB | .g.gge .f.ffe | d2 ed Bd.d.d :: fa^ga baga | .g2 fd .e2 dB | fa^ga baga | 
 .d2 ed Bd .d2 | fa^ga baga | g2 fd e2 dB | g>g (3gfe f>f (3fed |1 d2 ed Bd.d.d :|2 d2 ed Bd d2 ||  