Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
Q:1/4=120
M:2/4
K:D
['(f/e/)f/g/ a/f/d/A/', 'D a af (b/g/)(b/g/) g>e (a/f/)(a/f/) .g.f', 'B2 F D2 B, DFB G2 E', 'A2 F'  
X:1
L:1/8
Q:1/4=120
M:2/4
K:D
 A | [Fd]2 [Ae]2 | (f/e/)f/g/ a/f/d/A/ | BB g>f | (f/e/)(^g/a/) A>A | [Fd][Fd] [Ae][Ae] | 
 (f/e/)f/g/ a/f/d/A/ | B>g f/e/d/c/ | d2 D :: a | af (b/g/)(b/g/) | g>e (a/f/)(a/f/) | .g.f .e.d | 
 (c/d/e/c/) A>G | F/A/G/B/ A/c/B/d/ | (g/f/)(b/a/) a>g | (g/f/e/d/) (A/d/c/e/) | d2 D :| 
[M:6/8][K:Bb][Q:3/8=100] B2 F D2 B, | DFB G2 E | e2 c d2 B | GcB A2 F | B2 F D2 B, | DFB G2 E | 
 e2 c d2 B | FBA B3 :: b2 g a2 f | geg f2 d | e2 c dcB | GcB A2 F | B2 F DB,D | EGB A2 F | 
 d2 B (c/d/e).c | AFA B3 :|  