Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
Q:1/8=80
M:4/4
K:none
['e2{gcd} c{e}A |{gBd} B2{G}'  
X:1
L:1/8
Q:1/8=80
M:4/4
K:none
{gfg} fA{gfg}f | c{gfg}fG{gfg}fd{gfg}fe{gfg}fa{fg}f | e{gcd}ce{gcd}c | 
 A{gcd}cf{gcd}cd{gcd}cB{gcd}cG{gcd}c | e{gBd}Be{gBd}B | 
 A{gBd}Bf{gBd}Bd{gBd}Bc{gBd}BG{gBd}Be{gcd}c{e}Af{gcd}B{e}G | e{gcd}c{e}A{gcd}ce{gfg}fd{gBd}B{e}G | 
 eA>B{g} c2{gcd} c{e}A{g}c>d{g} e2{A} e2 | e{Gdc} d2{gcd} c{e}A{ag} a2{fg} f2 | 
 e{gBd}B{G}A{gBd}B{Gdc}d{gfg}fd{gBd}B{e}G | e{gfg}f/>e/{g}f/a/{fg}f/>e/{gcd}c/e/ | 
 a{fg}fA{gBd}Bd{gfg}fe{gcd}ce | e{gBd}B{e}A{gcd}ce{gcd}c{e}G{gBd}Bd |[M:4/4]{g} A>B{gcd} c2{G} c2 | 
{g} e2{gcd} c{e}B{G} A2 |{g} A>B{gcd} c2{g} e2 |{ag} a2{fg} f4 |{g} e>d{gcd} c2{g} e2 | 
{gcd} c{e}A{gBd} B2{gcd} c2 |{ag} af{g} e2{gcd} c{e}A |{gBd} B2{G} A4 ::{g} c>d{g} e2{A} e2 | 
{ag} a2{fg} f2{g} e2 |{g} c>d{g} e2{gfg} f2 | a2{g} a4 | A>B{gcd} c2{e} B2 | 
{G} A2{gBd} B2{gcd} c2 |{ag} a>f{g} e2{gcd} c{e}A |{gBd} B2{G} A4 :|  