Write musical works that keep the predetermined structure and weave in the given motif
X:1
L:1/8
M:6/8
K:G
['D (d2 c) BAG', 'D(AG) F(cB) A(ed) BGA Bcd', 'f2 B agf g2 e bag'  
X:1
L:1/8
M:6/8
K:G
 D | (d2 c) BAG | (e2 d) cBA | G(cB) [BG](ed) | dcB A2 D | (d2 c) BAG | e2 d cBA | G(cB) [BG](ed) | 
 cBA G2 |] !fermata!D(FE) D(AG) | F(cB) A(ed) | BGA Bcd | ecA F2 z | D(FE) D(AG) | F(cB) A(ed) | 
 BGA Bcd | ecA G2"^D.C." z |] d | e2 B (gfe) | f2 B agf | g2 e bag | f2 e ^d^cB | e2 B gfe | 
 f2 B agf | g2 e bag | e3"^D.C." z2 |]  