Construct melodious patterns according to the given chord templates.
'D', 'A', 'D', 'A', 'D', 'A', 'D', 'A', 'D', 'D', 'D', 'A', 'D', 'A', 'D', 'D', 'A', 'D', 'A', 'D', 'A', 'D'  
X:1
L:1/8
M:6/8
K:D
|: (c |"D" d2) D D>ED | dcB AFA |"A" BcB"D" AFD |"A" E2 E E2 c |"D" d2 D DED | dcB AFA | 
"A" BcB"D" AFD |"A" E>GE"D" D2 :: E |"D" D>FA B2 c |"D" d3"A" e2 c |"D" d3"A" e3 |"D" fdd d2 e | 
"D" fdf"A" e>ce |"D" d>cB AFA |"A" BcB"D" AFD |"A" E>GE"D" D2 :|  