Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:2/2
K:G
['(Bc d2) d2 (d3 c B2 G4)']  
X:1
L:1/8
M:2/2
K:G
|: (Bc | d2) d2 (d3 c | B2 G4) (cd | e2) (e2 B3 c | d6) (AB | c2) (c2 B2 A2 | B4 A2) (G2 | 
 A2 B2 A3 G) | G6 :|  