Compose a piece of music using the specified letter-based musical form and incorporating the assigned motif.
X:1
L:1/8
M:4/4
K:G
['B>G A2', 'd>e f>A A>a g>f e>d f2 e2']  
X:1
L:1/8
M:4/4
K:G
 a>g |"D" f>A f>e d2 A2 |"G" B>G d>B"D" A2 d>e | f>A A>a g>f e>d |"A" f2 e2 e2 a>g | 
"D" f>A f>e d2 A2 |"G" B>G d>B"D" A2 d>e | f>a ^g>a"A" =g>e c>A |"D" d4 d2 :| f>g | 
"D" a>d f>a f2 e>d |"G" B>G d>B"D" A2 f>g | a>d f>a g>f e>d |"A" f2 e2 e2 f>g |"D" a>d f>a f2 e>d | 
"G" B>G d>B"D" A2 d>e |1 f>a ^g>a"A" =g>e c>A |"D" d4 d2 :|2"D" f>A A>a"A" g>e c>A |"D" d4 d2 |] 
 (3ABc |"D" d2 e2 f2 e>d |"G" B>G d>B"D" A2 d>e | f>A A>a g>f e>d |"A" f2 e2 e2 (3ABc | 
"D" d2 e2 f2 e>d |"G" B>G d>B"D" A2 d>e | f>a ^g>a"A" =g>e c>A |"D" d4 d2 |]  