Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
M:2/4
K:D
['g(f/e/){g} f(e/d/)', 'Bd |{d} c2 Bd'  
X:1
L:1/8
M:2/4
K:D
 A | d>efe | dA{c}BA | d>efe | d2 ef |{a} g(f/e/){g} f(e/d/) |{d} c(B/A/) ef | 
{a} g(f/e/){g} f(e/d/) | (d2 e)A | d>efe | dA{c}BA | d>efe | d2 ef |{a} g(f/e/){g} f(e/d/) | 
{d} c(B/A/) df | Bg/e/ dTc | !fermata!d2 || Bc | dd{e} d(c/B/) | A2 Bc | dd{e} d(c/B/) | 
 A2{c} B{d}c |{e} d{e}d{d} d(c/B/) | AA{c} B{d}c |{e} d{e}d{e} d(c/B/) | A2 e>d |{d} c(B/A/) GG | 
{A} (TGF) f>e |{e} d(c/B/) AA |{B} A^G Bd |{d} c2 Bd |{d} c2 Bd | (c/A/)(d/B/) cTB | A2 z!D.C.! ||  