Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
Q:1/4=140
M:2/2
K:F
['c fgag f2 c2 defd cAGF fgag']  
X:1
L:1/8
Q:1/4=140
M:2/2
K:F
 c | fgag f2 c2 | defd cAGF | fgag afed | cdc=B c3 |:  