Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/16
M:2/4
K:none
['Aaf2 Afd2 c4 E4 Ged2', 'g2g2 f2>e2', 'ddd2 c2c2 |1 f2>e2 edBG D4 :|2'  
X:1
L:1/16
M:2/4
K:none
[K:D]"^A" Aaf2 Afd2 | c4 E4 | Ged2 Gfe2 | Aafd A4 | Aaf2 Afd2 | c4 E4 | Ged2 B2>c2 | d2d2 d2 z2 :: 
[K:A]"^B" !>!e4 fecA |{/B}"_#" g2g2 f2>e2 |{/e}"_#" g2g2 f2>e2 |{/e} b2b2 a4 | e2^de fecA | 
{/B}"_#" g2g2 f2>e2 |{/e}"_#" g2g2 f2>e2 | a2a2 a2"_>Teil a" z2 ::[K:G]"^C" ddd2 ggg2 | gff2 f2f2 | 
"_c" ccc2 fff2 | fee2 e2e2 | BBB2 ddd2 | dc"_c"c2 c2c2 |1 DFA"_c"c f2>e2 | edBG D4 :|2 
 DFA"_c"c ed"_c"cF | G2g2 g2 z2 |]  