Create a musical composition based on the alphabetic representation of the predetermined pattern and the given melodic theme.
X:1
L:1/4
M:4/4
K:G
['d d']  
X:1
L:1/4
M:4/4
K:G
 D | G d d d/B/ | A B/A/ G3/2 A/ | B3/2 c/ d d | e d/c/ B d/B/ | A d B d | c/d/ e d d | 
 e d/c/ B d | B B/A/ G |]  