Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:4/4
K:G
['', 'G3 A BAGA', 'Bd ef g2'  
X:1
L:1/8
M:4/4
K:G
 BA |: G3 A BAGA | BG d2 de/d/BA | G3 A BAGA | BGdB A2 BA | G3 A BAGA | BG d2 de/d/Bd | e3 f edBG | 
 AGAB AGEG | c3 B AGEG | AGAB AGEG |1 A6 B/c/B/A/ :|2 A3 A AGAB || c3 d ef g2 | g/a/gfe d2 Bd | 
 ef g2 gagf | e6 Bd | ef g2 f2 ed | B2 Bd BAGF | GAB A2 B/A/GF |1 G3 A AGAB :|2 G6 ||  