Generate melodic masterpieces that abide by the suggested chord alterations.
'D', 'G', 'D', 'A7', 'D', 'G', 'D', 'A7', 'G', 'A7', 'G', 'A'  
X:1
L:1/8
M:2/2
K:D
|:"D" d2 fd"G" g2 fe |"D" d2 fd"A7" e2 cA |"D" d2 fd"G" g2 fe |"D" f{g}a gf"A7" e2 cA :: 
"G" g2 dB B2 dB | g2 dB"A7" e2 cA |"G" g2 dB B2 dB |"A" A2 af e2 cA :|  