Construct a musical work using the letter-based representation of the specified pattern and the given melodic subject.
X:1
L:1/8
M:4/4
K:G
['gBdg cege']  
X:1
L:1/8
M:4/4
K:G
 BA | BDGB DGBE | GcFG cF^Gc | BAGF GBdB | cBAG (3FGA D2 | BDGB DGBE | GcFG cF^Gc | BAGF GBdB |1 
 cA (3FGA G2 BA :|2 cA (3FGA G2 (3def | gBdg cege | defg fAdf | gBdg cege | dAfd ec (3ABc | 
 gBdg cege | defg fdAd | gdBd gecA ||1 cAFA d2 (3def :|  