Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/8
M:12/8
K:D
['g f2', 'B2- B2 Bc'  
X:1
L:1/8
M:12/8
K:D
 f3 f- fAB/c/d eABd | g f2 f- fABc e3 d | edea f3 f e2 ed | ef B4 B4- Bbab | f3 f- fAB/c/d eABd | 
 g f2 f- fABc e3 d | edea f3 f e2 ed |1 ef B4 B4- Bbab :|2 ef B4 B2 Bc d4 |:[M:4/4] f3 g f2 e2- | 
 e2 ed e2 ef | d3 c c2 B2- | B2 Bc d4 | f3 g f2 e2- | e2 ed e2 ef | d3 c c2 B2- | B2 Bc d2 BA :|  