Construct melodious patterns according to the given chord templates.
'D', 'D', 'A', 'D', 'D', 'D', 'A', 'D', 'D', 'D', 'Em', 'A', 'D', 'D', 'Em', 'A', 'D', 'D'  
X:1
L:1/8
M:3/4
K:D
"D" a2 f<d f>^g |"D" a2 f<d f>b |"A" g2 e<c e>g |"D" f>e de f^g |"D" a2 f<d f>^g |"D" a2 f<d f>b | 
"A" g2 e<c e>g |"D" f>e"D" d4 ::"D" a>g f3 f |"Em" e>f g3 f |"A" e>d cA Bc |"D" d>e f4 | 
"D" a>g f3 f |"Em" ef g3 f |"A" ed cA Bc |"D" d2"D" d4 :|  