Generate musical ideas by integrating the given musical pattern and motif.
X:1
L:1/8
Q:1/8=100
M:4/4
K:G
['EG ABAG E2 D2 EGAB c2', 'BA GABc'  
X:1
L:1/8
Q:1/8=100
M:4/4
K:G
"^moderate" EG | ABAG E2 D2 | EGAB c2 BA | GABG A2 GE | D4- D2 EG | ABAG E2 D2 | EGAB c2 Bc | 
 dedA B2 A2 | G6 || BA | GABc d2 Bd | e2 ce d2 BA | GABc A2 GE | D4- D2 EG | ABAG E2 D2 | 
 EGAB c2 Bc | dedA B2 A2 | G4- G4 |]  