Compose a harmonious melody following the provided chord sequence.
'D', 'Cm', 'D', 'D', 'Cm', 'D', 'Gm', 'D', 'Cm', 'D', 'Cm', 'Cm', 'D', 'Cm', 'D', 'D', 'Cm', 'D'  
X:1
L:1/8
M:4/4
K:Dphr
"D" DE"Cm" CE"D" D4 |"D" DE"Cm" CE"D" D4 |"Gm" DG ^FG"D" D4 |"Cm" cB BA"D" A4 |"Cm" cB BA AG G^F | 
"Cm" AG G^F FE ED |"D" DE"Cm" CE"D" D4 |"D" DE"Cm" CE"D" D4 |]  