Construct melodious patterns according to the given chord templates.
'A', 'D', 'A', 'D', 'E', 'A', 'D', 'A', 'D', 'E', 'A', 'D', 'A', 'D', 'E', 'A', 'D', 'A', 'D', 'E', 'A', 'A', 'D', 'E', 'A', 'D', 'E', 'A', 'A', 'D', 'E', 'A', 'D', 'A', 'D', 'E'  
X:1
L:1/8
M:4/4
K:A
 E |"A" A>B A<E"D" F<A"A"E>c |"D" d>B d/c/B/A/"E" G<B B>c |"A" A>B A<E"D" F<A"A" E>c | 
"D" (3(def)"^(A)" (3(efg)"E" (3(afe) (3(dcB) |"A" A>B A<E"D" F<A"A"E>c | 
"D" d>B d/c/B/A/"E" G<B B>c |"A" A>B A<E"D" F<A"A" E>c |"D" (3(def)"E" (3(efg)"A" a<A A>g |] 
"A" a>A g>A f>A e>A |"D" d>B c>A"E" G<B B>g |"A" a>A g>A f>A e>A |"D" d>f"E" (3(efg)"A" a<A A>g | 
"A" a>A g>A f>A e>A |"D" d>B d/c/B/A/"E" G<B B>E |"A" A>B A<E"D" F<A"A"E>c | 
"D" (3(def)"^(A)" (3(efg)"E" (3(afe) (3(dcB) |]  