Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:4/4
K:Amix
['a2 e2 c2 de fedc B3 c']  
X:1
L:1/8
M:4/4
K:Amix
 e | a2 e2 c2 de | fedc B3 c | dedc B2 cd | edcB A2 e2 | a2 e2 c2 de | fedc B3 c | dcde fecA | 
 edBG A4 |[M:4/4] Bc | dcdB cABc | dcdB cABc | ecdB cABc | dGBd cAce | g4 gfge | agfe dcde | 
 Addc dcde | agfe dcde | c2 cB cBce | agfe dcde |]  