Write musical works that keep the predetermined structure and weave in the given motif
X:1
L:1/8
M:4/4
K:C
['EAA A2 d cAG E2 D', 'A2 G'  
X:1
L:1/8
M:4/4
K:C
[M:6/8][K:Dmix] .abc A/G/ | EAA A2 d | cAG E2 D | DGG DEE | DGG GED | EAA A2 d | cAG E2 D | 
 EFG A2 G | EDD D2 :: d/e/ | fdd Add | fdd d2 e | fef ged | ^cAA A2 z |1 fdd Add | fed A2 G | 
 EFG A2 G | EDD D2 :|2 (3fga f gfe | fed A2 G | EDD D2 |]  