Develop a melody based on the provided sequence of chords.
'D', 'A', 'D', 'D', 'A', 'D', 'D', 'Em', 'D', 'E', 'A', 'D', 'Em', 'D', 'A', 'D'  
X:1
L:1/8
M:2/4
K:D
 A/G/ |"D" FA DA/G/ | F/G/A Dd |"A" cd ec |"D" d/c/d/e/ fA/G/ |"D" FA DA/G/ | F/G/A Dd |"A" cd ec | 
"D" d2 d :: d/e/ |"D" fd de/f/ |"Em" ge eg |"D" fd df |"E" e/d/c/B/"A" A d/e/ |"D" fd de/f/ | 
"Em" ge eg |"D" f/e/d"A" ec |"D" d2 d :|  