Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/4
Q:1/2=76
M:2/2
K:Gmin
['g/^f/g/a/ b a/g/ ^f a d =e/^f/', 'G2 B/A/ B/c/ d (c/B/) e c-'  
X:1
L:1/4
Q:1/2=76
M:2/2
K:Gmin
 g/^f/g/a/ b a/g/ | ^f a d =e/^f/ | g c f B | A2 G2 || B/A/ B/c/ d (c/B/) | e c- c f/e/ | 
 d g =e a | ^f d (^f3/2 =e/4^f/4) | g d c B | A2 G2 |]  