Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:Emin
['A2 BG AGFD EFGA', '(3Bcd ef'  
X:1
L:1/8
M:4/4
K:Emin
 EFGA B E3 | B2 Ac BAGE | DEFG A D3 | A2 BG AGFD | EFGA Beed | edBA BBGA | B2 GB AGFA | 
 (3GFE FD EFGF | EFGA B2 BA | (3Bcd Ac BAGE | DEFG AE E2 | A2 BG AGFD | EFGA B2 ed | edBA B2 GA | 
 B2 GB AGFA | (3GFE FD E4 || edBA (3Bcd ef | e2 ef edBA | (3Bcd ef g3 a | gfed e3 f | g2 fg edBA | 
 B2 GB ABcA | B2 GB AGFA | (3GFE FD E4 | edBA (3Bcd ef | e2 ef ed B2 | (3Bcd ef gabg | agfa geef | 
 g2 fg edBA | BBGB ABcA | B2 BG AGFA | (3GFE FD D E3 ||  