Create melodies using the given musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:C
['AGAB cABc dcdf ed (3efg aecA', 'A2 A2'  
X:1
L:1/8
M:4/4
K:C
[M:2/2][K:A] .abc E2 | AGAB cABc | dcdf ed (3efg | aecA dfed | cABG EFGE | AGAB cABc | 
 dcdf ed (3efg | aecA dBGB | A2 A2 A2 :: A2 | Aceg aece | gefd efge | aecA dfed | cABG EFGB | 
 Aceg aecA | gfdf e2 (3efg | aecA dBGB | A2 A2 A2 :|  