Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:6/8
K:D
['B D2 B FED fed A2', 'FED AFD gfe d2 B dfg gec'  
X:1
L:1/8
M:6/8
K:D
 B |:"D" AFD"D" D2 B |"G" ABG"D" FED |"D" FAd"D" fed |"A" ceA"D" A2 A |"D" ABG"D" FED | 
"G" BdB"D" AFD |"D" dfa"G" gfe |1"A" edc"D" d2 B :|2"A" edc"D" dfg |:"D" afd"A" gec | 
"D" ded"D" AFA |"D" DFA"D" def |"G" gfg"A" efg |"D" afd"A" ecA |"D" dAG"D" FGA |"D" dfa"G" gfe |1 
"A" edc"D" dfg :|2"A" edc"D" d3 ||  