Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/16
Q:1/4=100
M:2/4
K:D
['(de) f4 (gfed) g4 (agfe) f2ef (gfed)', 'a2A2a2A2 f2a2z2(fg a2)A2 A2B=c dcBA G2g2 fga2'  
X:1
L:1/16
Q:1/4=100
M:2/4
K:D
 (de) | f4 (gfed) | g4 (agfe) | f2ef (gfed) | f2a2z2de | f4{g} f2ed | g4{a} g2fe | f2ga e2d2 | 
 B2 d4 | fg | a2A2 A2B=c | B2AB | G2fg | a2A2a2A2 || f2a2z2(fg | a2)A2 A2B=c | dcBA G2g2 | 
"^*" fga2 e2d2 | B2 d4 |]  