Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/8
M:9/8
K:Dmix
['d2 d A2 d', 'fga efg fed'  
X:1
L:1/8
M:9/8
K:Dmix
 d2 d A2 d fed | ded Ad cde | d2 d A2 d f2 d | gec c2 a gec :: fga efg fed | afd d2 f afd | 
 fga efg fed | fed c2 a gec :|  