Generate music by following the outlined musical form presented using letters and incorporating the provided motif.
X:1
L:1/8
M:2/2
K:C
['(BG) A2 AB AGED EGAB{d} c2 (BG)', '(cd) ecgc eccg']  
X:1
L:1/8
M:2/2
K:C
 (BG) | A2 AB AGED | EGAB{d} c2 (BG) | AcBG AGEa | gedB{d} c2 :| (cd) | ecgc eccg | ecge d2 (cd) | 
 ecgc eccg | a^fge d2 (cd) | ecgc eccg | ecge d2 (cd) | e^f g2 ea a2 | gedc{d} c2 |]  