Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
Q:1/4=120
M:3/4
K:D
['A2 (a>g) f>e d2 A2- A(F/G/ AB/c/)', 'A2 (f>e) d>c B2 (g>f) e>d c2', 'd4 A>A B>B A>A f2 f4 fe/f/'  
X:1
L:1/8
Q:1/4=120
M:3/4
K:D
 A2 (a>g) f>e | d2 A2- A(F/G/ | AB/c/) (d>c) B>A | G2 E4 | A2 (g>f) e>d | c2 A4 | A2 B>(B A>)G | 
 F2 D4 | A2 (a>g) f>e | d2 A2- A(F/G/ | AB/c/) (d>c) B>A | G2 E4 | A2 (g>f) e>d | c2 A4 | 
 A>A B>B c>c | d2 d4 :: A2 (f>e) d>c | B2 (g>f) e>d | c2 (c>A) B>c | d2 (A/B/)A/G/ F2 | 
 A2 (f>e) d>c | B2 (g>f) e>d | c2 (c>A) B>c | d2 d4 :: A>A B>B A>A | f2 f4 | fe/f/ (g>f) e>d | 
 c2 c4 | A>(A B>)(B A>)A | g2 g4 | gf/g/ (a>g) f>e | d2 d4 :|  