Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:6/8
K:G
['TB2 G', 'TB2 G'  
X:1
L:1/8
M:6/8
K:G
 d | TB2 G TB2 G | TB2 G dcB | TA2 =F TA2 =F | TA2 =F cBA | TB2 G TB2 G | d2 B gfe | dcB cAF | 
 G3 G2 :| (d/e/4f/4) | gGg gGg | gGg{a} gfg |{^g} aAa aAa | aAa{b} aga | bag{b} agf | 
{a} gfe{g} fed | (e/f/g)e dcB | ecA ABc | TB2 G TB2 G | TB2 G dcB | TA2 =F TA2 =F | TA2 =F cBA | 
 TB2 G TB2 G | d2 B gfe | dcB cAF | G3 G2 :|  