Develop a melody based on the provided set of chords.
'D', 'A', 'D', 'A', 'D', 'G', 'D', 'A', 'D', 'Bm', 'D', 'G', 'D', 'A', 'D', 'G', 'D', 'A', 'D', 'G', 'D', 'A'  
X:1
L:1/8
Q:1/8=402
M:4/4
K:C
 z6 (3AB^c |:"D" d2 dB A2 BA | ^F2 A2"A" [AE]2 (3AB^c |"D" d2 dA BA ^FA | 
"A" [AE]2 [AE][AE] [AE]2 (3AB^c |"D" d2 dB A2 BA | ^F2 A2"G" [BD]2 de |"D" ^fa fd"A" ed ^ce |1 
 d2 [d^F][dF] [dF]2 (3AB^c :|2 d2 [d^F][dF] [dF]2 de |:"D" ^fa fd ed BA | Bd [dD][dD] [dD]2 de | 
 ^fa fd ed BA |"Bm" [B^F]2 [BF][BF] [BF]2 de |"D" ^fa fd ed BA |"G" BA B^c d2 e2 | 
"D" ^fe df"A" ed BA |1 Bd [d^F][dF] [dF]2 de :|2 d2 [d^F][dF] [dF]2 [DC][DB,] |: 
"D" [DA,]2 [DA,][DA,] [DB,]2 D2 | [AE]D [AE]^F"G" [BG]2 [BG]2 |"D" [A^F][dF] [dF][dF] [dF]B AF | 
 [d^F]B AF"A" [AE]2 [AE][AE] |"D" D^C DE ^FD EF |"G" G2 [BG]2"D" [A^F]2 DE | ^FA FD"A" ED ^CE ||1 
 D2 C<D D2 [DC][DB,] :|  