Construct a musical composition following the designated musical form and incorporating the given motif.
X:1
L:1/8
M:4/4
K:D
['G>BA>F (B<E)E>G F>Ad>A', '(d/e/f/g/) a>f'  
X:1
L:1/8
M:4/4
K:D
"^4" uA | (F>.A)(d>.A) (B>.d)(A>.F) |"^SEGUE" G>BA>F (B<E)E>G | F>Ad>A B>dA>F | G>BA>G (F<D)D>G | 
 F>Ad>A B>dA>F | G>BA>F (B<E)E>G | F>Ad>A (B/c/d) A>G | F>A"^4" D>g (f>d)d |] uf | 
 (vd/e/f/g/) (a>.f) (b>.g)(a>.f) | (d/e/f/g/) (a>.f) (g<e)(e>.f) |"^SEGUE" (d/e/f/g/) a>f b>ga>f | 
 A>aa>g (f<d)d>f | (d/e/f/g/) a>f b>ga>f | (d/e/f/g/) a>f (g<e)e>g | f>de>f d>BA>F | 
 A>Bd>e (f<d)d |]  