Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:2/2
K:A
['e>A c/B/A', 'a>ba>e f>ef>g'  
X:1
L:1/8
M:2/2
K:A
 f | e>A c/B/A e>Aa>f | e>A c/B/A B>FF>f | e>A c/B/A e>ca>e |{g} f>dB>e cAA :: g | a>ba>e f>ef>g | 
 a>fe>c B>FF>g | a>ba>e f>ef>g | a>fe>B cAA :|  