Construct a musical work using the letter-based representation of the specified pattern and the given melodic subject.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['(3B^cd GA BGdB', 'G2 Bd', 'B2 Gd']  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
 (3B^cd GA BGdB | ADFG ABcA | (3B^cd GA BGdB | cAFG AG G2 | (3B^cd GA BGdB | AD D2 ABcA | 
 G2 Bd g2 de | fdcA AG G2 || G2 Bd g3 e | f2 f2 ABcA | G2 Bd g2 de | fdcA BGcA | G2 Bd g3 e | 
 f2 fd ABcA | g3 a bgag | fdcA AG G2 || B2 Gd B2 Gd | A2 Fd A2 Fd | B2 Gd B2 Gd | cADF AGGd | 
 B2 GA BGdB | AD D2 ABcA | G2 Bd gfde | fdcA AG G2 ||  