Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:2/2
K:A
['(cd) e^def ecAc defg agaf eagf |1,3', 'defg agaf edcB'  
X:1
L:1/8
M:2/2
K:A
 (cd) | e^def ecAc | defg agaf | eagf |1,3 ecAc | BABc B2 :|2,4 edcB | A2 a2 A2 :: (AF) | 
 EAAB cAec | FBBc dBfB | defg agaf | edcB AEFG | EAAB cAec | BABc defg | agaf edcB | A2 a2 A2 :|  