Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
Q:1/8=150
M:9/8
K:D
['dDD FDF', 'd2 g'  
X:1
L:1/8
Q:1/8=150
M:9/8
K:D
 dDD FDF AFA | dDD FDf gfe | dDD FDF AGF | G/A/BG ECE GFE :| d2 f fdf ecA | d2 g f/g/af gfe | 
 d2 g fdf ece | =cBc E2 F GFE :|  