Construct melodious patterns according to the given chord templates.
'D', 'A', 'D', 'A7', 'D', 'A7', 'D', 'G', 'A7', 'D', 'D', 'A7', 'D', 'G', 'D', 'Em', 'A7', 'D'  
X:1
L:1/4
Q:1/2=100
M:2/2
K:D
"D" d2"A" c3/2 B/ |"D" A3"A7" G |"D" F2"A7" E2 |"D" D3 A |"G" B3 B |"A7" c3 c |"D" d4- | d3 d | 
"D" d c B A | A3/2 G/ F d | d c B A | A3/2 G/ F F | F F F F/G/ | A3 G/F/ |"A7" E E E E/F/ | 
 G3 F/E/ |"D" D d-"G" d B |"D" A3/2 G/ F"Em" G |"A7" F2 E2 |"D" D4 |]  