Construct melodies using the designated musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:G
['z2 d d2', 'B/ [B,E,]/ [BG,]2', 'B/ [B,E,]/ [BG,]2'  
X:1
L:1/8
M:4/4
K:G
 G2 A | B2 G(AB) A G2 | G z2 d d2 B (G | A)B A3 z2 d | d2 B | BA B | (cB) c A2 DB A | 
 G(DG) F G2 z G2 | A B2 G(AB) A G3 | z2 | d | d2 B(GA) B A3 | z2 d d2 B(BA) | Bc Bc(AB) cB | 
 AG(DG) F G3 | B3/2- B/ [B,E,]/ [BG,]2 E3 | F [EF,]2 D2 B, | E [GF,]2 B,A B2 | 
 dB B,2 B3/2- B/ [B,E,]/ [BG,]2 | E3 F [EF,]2 | D2 B,E [GE,]2 | B,A B2 [dF,] | 
 B B,2- B, B/ [B,E,]/ [BG,]2 | e3 e [eC,] G, [E,C,]2 | EF [GB,E,]2 | GA G2 | 
 [FD,] D3 EF [GB,E,]4 || AB [dF,] D, B,2 B | A [BG,]2 E2 [EA,]2 | [EE,]2 E,2 | 
 B3/2- B/ [B,E,]/ [BG,]2 E3 | F [EF,]2 D2 B, | E [GF,]2 B,A B2 | dB B,2 B3/2- B/ [B,E,]/ [BG,]2 | 
 E3 F [EF,]2 | D2 B,E [GE,]2 | B,A B2 [dF,] | B B,2- B, B/ [B,E,]/ [BG,]2 | e3 e [eC,] G, [E,C,]2 | 
 EF [GB,E,]2 | GA G2 | [FD,] D3 EF [GB,E,]4 || AB [dF,] D, B,2 B | A [BG,]2 E2 [EA,]2 | 
 [EE,]2 E,2 | B3/2- B/ [B,E,]/ [BG,]2 E3 | F [EF,]2 D2 B, | E [GF,]2 B,A B2 | 
 dB B,2 B3/2- B/ [B,E,]/ [BG,]2 | E3 F [EF,]2 | D2 B,E [GE,]2 | B,A B2 [dF,] | 
 B B,2- B, B/ [B,E,]/ [BG,]2 | e3 e [eC,] G, [E,C,]2 | EF [GB,E,]2 | GA G2 | 
 [FD,] D3 EF [GB,E,]4 ||  