Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:D
['a>g f>^ef>d =e>gc>e d>cd>e', 'F>Ad>A f>dc>d'  
X:1
L:1/8
M:4/4
K:D
 a>g | f>^ef>d =e>gc>e | d>cd>e d>fe>d | c>dB>c A>BG>B | (3ABA (3GFE D2 a>g | f>^ef>d =e>gc>e | 
 d>cd>e d2 A>G | F>Ad>f A>ce>g | b>a^g>a d2 || AG | F>Ad>A f>dc>d | G>Be>B g>ec>e | F>Ad>A f>dc>d | 
 (3efe (3dcB A2 A>G | F>Ad>A f>dc>d | G>Be>B g>ec>e | b>a^g>a b>a=g>e | d2 D2 D2 ||  