Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
Q:1/2=104
M:2/2
K:D
['A d2 (f/g/a) f>edf gfed cdef (B/c/d)', 'd(AA)G FGAf'  
X:1
L:1/8
Q:1/2=104
M:2/2
K:D
 A | d2 (f/g/a) f>edf | gfed cdef | (B/c/d) (f/g/a) Tfedf | gfec d2 d :| e | d(AA)G FGAf | 
 g(fed) cdec | d(AA)G FGAf | (g/f/e) (f/e/d/c/) d2 d :|  