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
['d2 BG dG (3Bcd', 'edBd g2 bg egdg']  
X:1
L:1/8
M:4/4
K:G
 d2 BG dG (3Bcd | G2 (3Bcd efge | d2 BG dG (3Bcd | ABcd edBe | d2 BG dG (3Bcd | G2 (3Bcd efge | 
 d2 BG dG (3Bcd | ABcd edBd || g2 bg egdg | egdg edBd | g2 bg egdg | ABcd edBd | g2 bg egdg | 
 egdg edBd | gabg efge | dega bage ||  