Construct a musical work using the letter-based representation of the specified pattern and the given melodic subject.
X:1
L:1/8
M:2/2
K:G
['G2 DG BGBd c2 AB cdef', 'G2 (3Bcd g2 dB GBdg e2 cA']  
X:1
L:1/8
M:2/2
K:G
 BA | G2 DG BGBd | c2 AB cdef | g2 df ecAG | FGAB cAFD | G2 DG BGBd | c2 AB cdef | gdBG FAdc | 
 B2 G2 G2 :| (3Bcd | g2 dB GBdg | e2 cA FGAg | f2 ed ^cdeg | (3fgf (3efe dcBA | G2 DG BGBd | 
 c2 AB cdef | gdBG FAdc | B2 G2 G2 :|  