Compose melodies by merging the prescribed musical pattern and the supplied theme.
X:1
L:1/8
M:9/8
K:D
['A2 g f2 e2 c A2', 'ddd A2 g f2 e2 c A2'  
X:1
L:1/8
M:9/8
K:D
"D" ABA A2 G F2 G | ABA AGF"C" GGG |"D" ABA A2 G F2 G | A2 d"A" d2 c"D" ddd :: 
"D" A2 g f2 d"A" e2 c |"C" A2 B =c2 d ccc |"D" A2 g f2 d"A" e2 c |"D" A2 d"A" d2 c"D" ddd | 
"D" A2 g f2 d"A" e2 c |"C" A2 B =c2 d ccc |"D" d2 A A2 G"A" F2 G |"D" A2 d"A" d2 c"D" ddd :|  