Generate melodic masterpieces that abide by the suggested chord alterations.
'D', 'A7', 'D', 'E7', 'A7', 'D', 'A7', 'D', 'A7', 'D', 'D', 'Em', 'E7', 'A', 'D', 'Em', 'D', 'A7', 'D'  
X:1
L:1/8
M:4/4
K:D
 A2 |"D" D2 FA dAFD |"A7" CDEF G2 FE |"D" D2 FA dcdf |"E7" edcB"A7" AGFE |"D" D2 FA dAFD | 
"A7" CDEF G2 FG |"D" AdcB"A7" AGFE |"D" D2 F2 D2 || | de |"D" fefg fedc |"Em" B^ABc B2 cd | 
"E7" e^def e=dcB |"A" A2 ce aABc |"D" dcde fdAF |"Em" GFGA BdcB |"D" AdcB"A7" Agec |"D" d2 f2 d2 |]  