Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
Q:1/2=104
M:4/4
K:D
['B AFdF TA2 FA BGAF GEEG FADF', 'fdad Tf2 df gfed ceeg'  
X:1
L:1/8
Q:1/2=104
M:4/4
K:D
 B | AFdF TA2 FA | BGAF GEEG | FADF GBEd | ceAc dDD :| g | fdad Tf2 df | gfed ceeg | fdad fadf | 
 gbag fdda | fdad Tf2 df | gfed ceeg | B2 GB ceAc | dfeg fdd |]  