Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:Dmix
['AFFF EFDE FFAF EFDG', 'AFFF dFFF FAdF Adcd'  
X:1
L:1/8
M:4/4
K:Dmix
|: AFFF EFDE | FFAF EFDG | BGFG DGFG | BGcA BG(3EFG | AFFF EFDE | FFAF EFDG | BGGG B d2 d- | 
 dBAF EF D2 :: AFFF dFFF | FAdF Adcd | BGGG dGGG | GBdG Bdcd | AFFF dFFF | FAdF Adcd | GBdG FAdB | 
 AFEF D4 :|  