Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:2/2
K:D
['f2 af gfed']  
X:1
L:1/8
M:2/2
K:D
 e2 |"D" f2 af gfed |"D" f2 af gfed |"A7" e2 ef gfed |"A7" edef gfed |"D" f2 af gfed | 
"D" f2 af gfed |"A7" cdef gece |"D" df"A"ec"D" d2 | ef |"G" gB B2 gBaB |"G" gB B2 gfed | 
"A" (3cBA eA fAeA |"A7" (3cBA ef gfef |"G" gB B2 gBaB |"G" gB B2 gfed |"A7" cdef gece | 
"D" df"A"ec"D" d2 |]  