Compose a tune that integrates the letter-based representation of the determined musical pattern and the given melodic idea.
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
['EG ABAG E2 D2 EGAB c2 |1', 'Bd e2 ce', 'BA GABc A2 GE']  
X:1
L:1/8
Q:1/4=120
M:4/4
K:G
"^Moderate.""^A" | EG | ABAG E2 D2 | EGAB c2 |1 BA | GABG A2 GE | D4- .D2 :|2 Bc | dedA B2 A2 | 
"^fine" G6 |]"^B" |] BA | GABc d2 Bd | e2 ce d2 BA | GABc A2 GE | D4-"^-<A2" D2 |]  