Construct melodic chord frameworks to improve the given piece of music.
|: D2 A>F A3 A | B<d d>c B>A F<A | B2 d>E F2 E<D | B,<D (3DEF E4 | 
 D2 A>F A3 A | B<d d>c B>A F<A | B2 d>E F2 E<D |1 B,<D D>E D4 :|2 
 B,<D D>E D2 F>A |: B2 d>c B4 | A>B A<E F2 F>A | B2 d>c B3 A | 
 d2 d>e (3fed (3dBA | B2 d>c B4 | A>B A<E F2 F>A | B2 d>E F2 E<D | 
 B,<D D>E D4 :|  
X:1
L:1/8
M:4/4
K:D
|:"D" D2 A>F"F#m" A3 A |"G" B<d d>c"Bm" B>A F<A |"G" B2 d>E"D" F2 E<D |"Em" B,<D (3DEF"A" E4 | 
"D" D2 A>F"F#m" A3 A |"G" B<d d>c"Bm" B>A F<A |"G" B2 d>E"D" F2 E<D |1"A" B,<D D>E"D" D4 :|2 
"A" B,<D D>E"D" D2 F>A |:"G" B2 d>c"Em" B4 |"A" A>B A<E"D" F2 F>A |"G" B2 d>c"Bm" B3 A | 
"Em" d2 d>e"F#m" (3fed (3dBA |"G" B2 d>c"Em" B4 |"F#m" A>B A<E"D" F2 F>A |"G" B2 d>E"Bm" F2 E<D | 
"A" B,<D D>E"D" D4 :|  