Develop a melodic piece that matches the specified chord pattern.
'G', 'D7', 'G', 'D7', 'C', 'G', 'D7', 'G', 'D7', 'C', 'G', 'D7', 'G', 'D7', 'C', 'G', 'Am', 'G', 'Em', 'Am', 'D7', 'G', 'C', 'G', 'C', 'D7', 'G', 'D7', 'G', 'C', 'D7'  
X:1
L:1/8
M:4/4
K:G
"G" d2 BG dGBG | dGBG"D7" AGAB |"G" dGBG dGBG |"D7" AcBG"C" AGEG |"G" DGBG dGBG | dGBG"D7" AGEG | 
"G" DGBG dGBG |"D7" dcBG"C" AGEG |]:"G" D3 B BAGE | DBBG"D7" AGEG |"G" D3 B BAGE | 
"D7" cABG"C" AGEG ::"G" gedB G2 Bd | gedB"Am" eA A2 |"G" gedB"Em" GABG |"Am" ABcd"D7" eA A2 :: 
"G" dggf g2 ge | dggd"C" egdg |"G" dggf g2 gd |"C" egdB"D7" AGAB ::"G" G2 (3(BAG) dGBG | 
 GBBG"D7" AGAB |"G" G2 (3(BAG) dGBd |"C" egdB"D7" AGAB :|  