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:D
['d/c/B/A/ dF TE2', 'eg-gf/e/ fdfd f a2 f cAAG']  
X:1
L:1/8
M:4/4
K:D
 D | GB-BG FA-AF | Ee-ed c2 BA | GB-BG FAAc |1 d/c/B/A/ dF TE2 D :|2 d/c/B/A/ dF TE2 D2 |: 
 fdfd fa-ag/f/ | ecec eg-gf/e/ | fdfd f a2 f | cAAG TF2"^**" D2 :|  