Generate music with the following musical form in terms and the given motif.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['', 'A2 AG FGAB =cBcG', 'adfd cdef gage'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
"^D modal""^reel" dc |: A2 AG FGAB | =cBcG EFGB | A2 AD FGA=c | d2 eg fdd=c | A2 AG FGAB | 
 =cBcG E=CEG | A2 AD FGAB | d2 eg fd d2 :|[K:D]"^D major" d2 fd adfd | cdef gage | d2 fd adfd | 
 cdeg fddA | d2 fd adfd | cdef gage | abag fged | cdeg fd d2 :|  