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
['G>d B>G F>A D2 E>G c>e d>B', 'f>a d2 (3efg c>e d>B G>B (3cde']  
X:1
L:1/8
M:4/4
K:G
 D2 | G>d B>G F>A D2 | E>G c>e d>B G>B | (3cde (3ABc (3Bcd G>B | A>B A>G F>A d>D | G>d B>G F>A D2 | 
 E>G c>e d>B G>B | (3cde (3ABc (3Bcd G>d | e>c A>F G2 |: (3def | g>d B>d f>a d2 | 
 (3efg c>e d>B G>B | (3cde (3ABc (3Bcd G>B | A>^c e>g f>d e>f | g>d B>g f>a d2 | 
 (3efg c>e d>B G>B | (3cde (3ABc (3Bcd G>d | e>c A>F G2 :|  