Create melodies using the given musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:C
['[M:2/2][K:C] .abc (BG) A2 AB AGED EGAB{d}', '(cd) ecgc eccg'  
X:1
L:1/8
M:4/4
K:C
[M:2/2][K:C] .abc (BG) | A2 AB AGED | EGAB{d} c2 (BG) | AcBG AGEa | gedB{d} c2 :| (cd) | 
 ecgc eccg | ecge d2 (cd) | ecgc eccg | a^fge d2 (cd) | ecgc eccg | ecge d2 (cd) | e^f g2 ea a2 | 
 gedB{d} c2 |]  