Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:3/4
K:Dmin
['(f>g) (e>f) d>e P^c2 A2 .A,2 f>e', 'aa b2'  
X:1
L:1/8
M:3/4
K:Dmin
{f} (f>g) (e>f) d>e | P^c2 A2 .A,2 | f>e df ed | ^ca ^ga A2 | f>g e>f d>e | ^c2 A2 A,2 | 
 f>e (de/f/) ed | (^ce) d4 ::{a} a2 (f/e/)f/g/ aa | b2 (g/e/)g/a/ b2 | g2 (e/=c/)e/f/ gg | 
 a2 (f/e/)f/g/ a2 | a2 f/e/f/g/ aa | b2 g/e/g/a/ b2 | g2 e/c/e/f/ gg | a2 f/e/f/g/ a>(g | 
 f>)e d>f e>d | (^ce) d4 :|  