Assemble a piece of music by merging the alphabetic representation of the predetermined musical pattern and the provided melodic theme.
X:1
L:1/4
M:4/4
K:G
['E G']  
X:1
L:1/4
M:4/4
K:G
 G | G D D D | D D D2 | D E G A | B2 A | z | G E E G | E/ D3/2 E G | D E G A | B2 A | z | 
 (G A) (B G) | (A B) (c A) | G A (B G) | A2 G | E | G A B3/2 G/ | A B c3/2 A/ | B d E c | B2 A ||  