Compose melodies based on the specified pattern and provided motif.
X:1
L:1/4
Q:1/4=200
M:4/4
K:D
['e f g f', 'A2 e d c2 A B G'  
X:1
L:1/4
Q:1/4=200
M:4/4
K:D
"A" e f g f | e d c2 | e f g f |"E" e2 e z |"A" e f g f | e d c2 | A c"G" B G |"A" A2 A z :: 
"A" A3/2 A/ A2 | e d c2 | A3/2 A/ A A |"G" G2 z2 |"A" A3/2 A/ A2 | e d c2 | A c"G" B G | 
"A" A2 A z :|  