Generate music by following the outlined musical form presented using letters and incorporating the provided motif.
X:1
L:1/8
Q:1/4=150
M:2/4
K:G
['D/E/ G>A Bd eg dB/A/ GE/D/', 'B/d/ gf ef/g/ af dB/d/', 'D/E/ G>A Bd eg dB/A/ GE/D/ GG']  
X:1
L:1/8
Q:1/4=150
M:2/4
K:G
"^with spirit" D/E/ | G>A Bd | eg dB/A/ | GE/D/ GG | G3 || B/d/ | gf ef/g/ | af dB/d/ | 
 ed/B/ d/e/f/a/ | g3 B/d/ | gf ef/g/ | af dB/d/ | e>d B/A/B/d/ | e3 ||"^repeat of A part" D/E/ | 
 G>A Bd | eg dB/A/ | GE/D/ GG | G3 |]  