Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:A
['A,2 D2 FA E2 A2'  
X:1
L:1/8
M:4/4
K:A
 E2 |"A" A,2 CE"D" D2 FA |"E7" E2 GB"A" A2 cA |"E7" BEcE dEcE |"E7" BEcB AFEC | 
"A" A,2 CE"D" D2 FA |"E7" E2 GB"A" A2 ce |"D" fefg"A" agaf |"E7" ecBc"A" A2 :: (3efg | 
"A" a2 ga fece |"E"{g} b2 bg agfe | gebe gbeg |"B7" fe^df"E" e2 (3efg |"A" a2 ga fece | 
"D" fgag"A" fece |"D" fdge"A" afec |"E" BABc"A" A2 :|  