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:D
['d>AF>A D2 F>A d>fe>c', 'd>g (3gfg b>g (3gfg d>gb>g']  
X:1
L:1/8
M:2/2
K:D
 g>f | d>AF>A D2 F>A | d>fe>c d>cB>c | A2 c>e A2 c>e | (3fga e>f d>cB>A | d>AF>A D2 F>A | 
 d>fe>c d>c B/c/B/A/ | gfg>b a>fd>f | e>AB>c d2 :: Bc | d>g (3gfg b>g (3gfg | d>gb>g a>gf>g | 
 A2 c>e A2 c>e | (3fga e>f d>cB>A | d>g (3gfg b>g (3gfg | d>gb>g a>gf>a | g>fg>b a>fd>f | 
 e>AB>c d2 :|  