Generate music with the following musical form represented in alphabets and the given motif.
X:1
L:1/8
Q:1/2=112
M:2/2
K:D
['dBcA BGFG', 'dBcA BGFG']  
X:1
L:1/8
Q:1/2=112
M:2/2
K:D
|:"^A" AG |"D" F2 DF ABAG | FADF A2 d2 | D3 F ABAF |"A" GFEF G2 :|[K:G]"^B" Bc |"G" dBcA BGFG | 
"D" Ad^cd A2 B=c |"G" dBcA BGFG |"D" AcBA"G" G2 Bc |"G" dBcA BGFG |"C" ABcd efge |"G" dBcA BGFG | 
"D" AcBA"G" G2 |]:[K:D]"^C" ag |"D" fddd fddd | fdfg"A" abag |"D" fddd fddd |"C" =cdef g2 :| 
[K:G]"^D" Bc |"G" dBcA BGFG |"D" Ad^cd A2 B=c |"G" dBcA BGFG |"D" AcBA"G" G2 Bc |"G" dBcA BGFG | 
"C" ABcd efge |"G" dBcA BGFG |"D" AcBA"G" G2 |]  