Write musical works that keep the predetermined structure and weave in the given motif
X:1
L:1/8
M:2/2
K:G
['G2 (GB)', 'A2 (ga) b2 (gb) a2 (fa) g2'  
X:1
L:1/8
M:2/2
K:G
 D2"^segno" | G2 (G>B) dBGB | dBeB dBAB | G2 (GB) d2 (Bd) | (3(efg) (dB) AcBA | G2 (GB) dBGB | 
 dBeB dBAB | G2 (GB) dBGB | (3(efg) dB A2 || (ga) | b2 (gb) a2 (fa) | g2 (eg) (fd) B2 | 
 b2 gb a2 ga | gfef d2 (ga) | bagb agfa | gfeg dega | bgaf gfed | (3(efg) dB AcBA"^segno" |]  