Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:D
['d2 fe dcBc', 'd2- dA BAFA defd Be e2 d2'  
X:1
L:1/8
M:4/4
K:D
 d2 fe dcBc | A2 FB ADFA | d2 fe dcBc | AFDE FE E2 | d2 fe dcBc | A2 FB ADFA | d2 fe dcBc | 
 BGAG FD D2 :| d2- dA BAFA | defd Be e2 | d2 dA BcdB | AFGE FDFA | d2- dA BAFA | defd Be e2 | 
 d2 dB Agfe | dBAG FD D2 :|  