Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
Q:1/8=150
M:4/4
K:A
['a2 gf e2 cB AGAB', 'ed cEAc eaga fAde fdaf eagf']  
X:1
L:1/8
Q:1/8=150
M:4/4
K:A
 (3efg | a2 gf e2 cB | AGAB cEE^D | EA A2 cA A2 | dBBA B2 ed | a2 gf e2 cB | AGAB cE E2 | 
 EFGA Bagf | ecdB A2 :| ed | cEAc eaga | fAde fdaf | eagf ecAc | dBBA B2 ed | cEAc eaga | 
 fAde fdaf | eagf ecdB | A2 c2 A2 :|  