Compose a musical piece that incorporates the given motif and adheres to the specified form.
X:1
L:1/8
M:4/4
K:D
['F>G^G>A B>AG>A', 'd2 A2 f>ed>c', 'A2 G>FG>A A2- A>G F>EF>G A2 F2'  
X:1
L:1/8
M:4/4
K:D
|: A(3c/B/A/ | F>G^G>A B>AG>A | f2 d2 f2 d2 | F>G^G>A B>AG>A | E4- E2 D2 | E>FG>A B>A^G>A | 
 e2 c2 e2 c2 |1 A>dc>B A>GE>=F | F4- F2 :|2 A>Bc>B A>GE>F | D4- D2 |: A2 | F4- F>F (3G^GA | 
 f3 f f2 e>c | d>A (3FGA d>ce>d | c2 B>^A B4 |1 E4- E>E F/G/^G/A/ | c4- c2 B>^G | A>dc>B A>GE>=F | 
 F>GA>G F2 :|2 g>eB>e g2 a>g | f>dA>d f2 Ad | (3Bcd e>f g>ec>A | d2 f2 d2 |: A2 | f>ed>c d2 A2 | 
 f>ed>c d>AF>A | B>^AB>c d>ed>B |1 A4 F2 A2 | G>FG>A A2- A>G | F>EF>G A2 F2 | ^G4- G>EF>G | 
 A2 B2 c2 :|2 A6 A2 | B>^AB>d g2 d2 | A>^GA>d f2 d2 | A>^GA>c f2 e2 | d4- d2 ||  