Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:D
['AF F2 AF BFAF E2 BE dEBE'  
X:1
L:1/8
M:4/4
K:D
|: B |"D" AF F/F/F"Em" EF"D"DE |"D" F2 AF BFAF |"Em" E2 BE dEBE |"D" ABde"Bm"{g} fedB | 
"D" AF F/F/F"Em" EF"D"DE |"D" F2 AF BFAF |"Em" E2 BE dEBE |"D" ABde d2 d :: g |"D" fd{e}dc d2 dg | 
"D" fd{e}dc dfaf |"A" eA A/A/A eAfA |"A" eA A/A/A"Em" edeg |"D" fd{e}dc d2 dg |"D" fd{e}dc dfaf | 
"G" g2 gf gbag |"D" fd"A"ec"D" d2 d :|  