Write musical works that keep the predetermined structure and weave in the given motif
X:1
L:1/8
M:4/4
K:C
['AFDE FEFG A^GAB cBcA', 'defg abaf'  
X:1
L:1/8
M:4/4
K:C
[M:2/2][K:G] cdeg D da[Q:1/8=180]"^D modal" .dB | AFDE FEFG | A^GAB cBcA | defd cAGF | DGGF GABG | 
 AFDE FEFG | A^GAB cBcA | defg abag | fdec d2 || A2 | defg abaf | defg abaf | d g2 f gagf | 
 dggf g2 fg | agfe defd | cAGF GABc | defd cAGF | Addc d4 |]  