Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
Q:1/4=104
M:3/4
K:D
['d2{ed} cdBG']  
X:1
L:1/8
Q:1/4=104
M:3/4
K:D
 afd | d2{ed} cdBG |{G} F>G .A.B.c.d | ef{a} g2 f2 | fe z afd | d2{ed} cdBG | FGAdfa | 
 g>f{a} g3 e | fd z d/e/ fe/d/ | e>c Afec | A3 BAF | D>EFAdf | fe z aga |{a} g2 f2 ef/d/ | 
 d2{ed} cdBG | FA g3 a | fd z |]  