Generate music by following the outlined musical form presented using letters and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:G
['B3 A', 'AGEG DG G2 DGBG DGBG AGEG DGGF', 'a2 ba']  
X:1
L:1/8
M:4/4
K:G
 B3 A BAGA | B2 GB AGED | B3 A BAGB | AcBG AGED | B3 A BAGA | B2 GB AGED | Bded BcdB | AcBG AGEG |] 
 DG G2 DGBG | DGBG AGEG | DGGF GABc |1 dBAc BGGE :|2 dBAc BGGB |] d2 Bd efge | dGBG AGEG | 
 d2 Bd ef g2 |1 a2 ba ageg :|2 a2 ba aged |]  