Compose musical pieces based on the predetermined pattern and incorporating the given motif.
X:1
L:1/8
M:4/4
K:G
['AGAc BG (3GGG BGBd g2', 'bg (3ggg'  
X:1
L:1/8
M:4/4
K:G
|: AGAc BG (3GGG | BGBd g2 fg | eA (3AAA G2 Bd | e2 dc Bdgd | AGAc BG (3GGG | BGBd g2 ga | 
 bgaf ge (3def | gedc BG (3GGG :: bg (3ggg agef | gage dega | bg (3ggg aged | ea (3aaa ea a2 | 
 bg (3ggg agef | gage dega | bgaf ge (3def | gedc BG G2 :|  