Create a musical composition based on the alphabetic representation of the predetermined pattern and the given melodic theme.
X:1
L:1/16
M:2/4
K:G
['B2 A']  
X:1
L:1/16
M:2/4
K:G
 d2 d2 e2 d g | g e d e d4 | B2 A E G2 A B | G A E2 D4 | B2 A B d4 | B2 A E G2 A B | 
 G2 A E D B, D E | G8 |]  