Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:3/4
K:D
['fe/f/ g>e (ed) (d>F) A>d (dc) (c>E)', "d'2) f>a (3(Tgfg) (bTg) (e2 e>)(d cb)"  
X:1
L:1/8
M:3/4
K:D
 (A | f2){g} fe/f/ g>e | (ed) (d>F) A>d | (dc) (c>E) A>c | (cd) (dF) A>d | f2{g} fe/f/ g>e | 
 (ed) (d>F) A>d | (dc) (c>E) A>c | (cd) d3 :: (f | a>)(a d'2) f>a | (3(Tgfg) (bTg) (e2 | 
{f} e>)(d cb) a>g | (Tgf/g/) (a/b/)a/f/ d>f |{f} a>(a d'2) f>a | (3(Tgfg) (bTg) (e2 | 
{f} e>)(d cb) a>c | d2 d3 :|  