Develop a melody based on the provided sequence of chords.
'A', 'A7', 'Dm', 'A7', 'Dm', 'A', 'A', 'Dm', 'D7', 'Gm', 'A', 'Dm', 'B', 'C7', 'F', 'C7', 'F', 'C7', 'F', 'F', 'C7', 'F', 'A7', 'Dm', 'Gm', 'A', 'Dm', 'C', 'A7', 'D', 'Cm', 'D', 'D', 'Cm', 'D'  
X:1
L:1/8
M:4/4
K:Dmin
"A" |: A"A7"BA |"Dm" A4 z G"A7"EF |"Dm" D4 z A^cd |"A" e4"^(Gm)" z GAB |"A" A4 z ABA | 
"Dm" d4 z A"D7"BA |"Gm" G4 z EGB |"A" A3 G A/G/F F/E/D |"Dm" D4 z :|"B" |: z"C7" C2 | 
"F" CF"C7" B/A/G"F" A3 G/F/ |"C7" E/F/G G/F/E"F" F4 |"F" c3 ^c"C7" dB GB |"F" A4-"A7" A4 | 
"Dm" d3 e f/e/d"^(D7)" c/B/A |"Gm" G4 G2 cB |"A" A3 G A/G/F F/E/D |"Dm" D4 z :|[K:Dphr]"C" |: 
 z2"A7" A/G/ |"D" F/G/A A{BA}G F{GF}D AG | F/G/A A{BA}G"Cm" FE"D" D2 |"D" F/G/A A{BA}G F{GF}D AG | 
"Cm" A/G/G/F/ F/E/E/D/"D" D :|  