Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:6/8
K:D
['BEB BEB ABc dcd AFD DED', 'Bee efe ABc dcd AFD DED'  
X:1
L:1/8
M:6/8
K:D
 BEB BEB | ABc dcd | AFD DED | AFD DFA | BEB BEB | ABc dcd | AFD DED | FEE E3 :| Bee efe | 
 ABc dcd | AFD DED | AFD DFA | Bee efe | ABc dcd | AFD DED | FEE E3 :|  