Generate musical ideas by integrating the given musical pattern and motif.
X:1
L:1/8
M:4/4
K:G
['GB B2 dB B2 GABG ABGE DEGA', 'g3 a gfed Bd d2'  
X:1
L:1/8
M:4/4
K:G
|: GB B2 dB B2 | GABG ABGE | DEGA Bd d2 | ea a2 gedB | GB B2 dB B2 | GABG ABGE | DEGA Bgfg | 
 ecAF G4 :: g3 a gfed | Bd d2 ed (3Bcd | g2 af gedg | eaag agef | g3 a gfed | Bd d2 edBA | 
 B2 dB cBAG | FDEF G4 :|  