Generate music by following the outlined musical form presented using letters and incorporating the provided motif.
X:1
L:1/8
M:3/8
K:D
['dde fdf gec']  
X:1
L:1/8
M:3/8
K:D
 dde | fdf | gec | dfa | dde | fdf | gec | d2 ::  