Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:D
['A2 AB d2 df'  
X:1
L:1/8
M:4/4
K:D
 DB |"D" A2 AB d2 df |"A7" edef efBd |"D" A2 AB d2 df |"A7" edef"D" d2 :| ef |"G" g2 bg"D" f2 af | 
"A7" edef edBd |"G" g2 bg"D" f2 af |"A7" edef"D" d2 |] ef |"G" g2 bg"D" f2 af |"A7" edef edBd | 
"D" A2 AB d2 df |"A7" edef"D" d2 |]  