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/2=100
M:3/2
K:D
['D2 F2 A2 d2 fg a2 g2']  
X:1
L:1/8
Q:1/2=100
M:3/2
K:D
 D2 F2 A2 d2 fg a2 | g2 e4 B2 dcBA | dABG AFGE FDEF | A,2 D4 GF E2 D2 |:  