Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:4/4
K:G
['', '(B>G)(D>G) (B>G)(D>G)', 'G2 B2'  
X:1
L:1/8
M:4/4
K:G
 d>c |: (B>G)(D>G) (B>G)(D>G) | (3gag (f>g) e2 (d>c) | (B>G)(D>G) (B>G)(D>G) | 
 (d>c)(B>c) A2 (d>c) | (B>G)(D>G) (B>G)(D>G) | (3gag (f>g) e2 (d>c) | B>gf>g e>cA>F |1 
 G2 B2 G2 d>c :|2 G2 B2 G2 (g>a) |: (b>a)(g>f) (e>f)(g>a) | (b>a)(g>f) e2 (f>g) | a>gf>e d>ef>g | 
 a>gf>e d2 (e>f) | (g>f)(g>d) (3efg (d>B) | (c>B)(A>B) (c>d)(e>f) | g>fg>d e>cA>F |1 
 G2 B2 G2 (g>a) :|2 G2 B2 G4 ||  