Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
['(3ABc dAFA GBAG FAFA GBAG', 'd2 (cd) ecAc ecge fdAd fdfd ecAc'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
 (3ABc | dAFA GBAG | FAFA GBAG | FDFD GEGE | FDFD E2 (3ABc | dAFA GBAG | FAFA GBAG | FAdf fdec | 
 d2 d2 d2 :: (cd) | ecAc ecge | fdAd fdfd | ecAc ecgf | edcB A2 A2 | BGDG BGdB | AFDF AFdA | 
 BdcB AGFE | d2 d2 d2 :|  