Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:6/8
K:Gmin
['G3 d2 ^F G2 A B2', 'f=ed cd=e fed', 'AG^F G2 z A2 z B2 z'  
X:1
L:1/8
M:6/8
K:Gmin
 G3 d2 ^F | G2 A B2 c | ded cBA | dcB AG^F | G3 d2 ^F | G2 A B2 d | cAc f=ed |1 cAF F=EF :|2 
 cAF G3 |: gag gf=e | fgf f=ed | cd=e fed | cAF G2 d | gag gf=e | fgf f=ed | cd=e fed |1 cAF F3 :|2 
 cAF F=EF |: G2 z A2 z | B2 z c2 z | ded cBA | dcB AG^F | G2 z A2 z | B2 z d2 z | cAc f=ed |1 
 cAF F=EF :|2 cAF G3 |]  