Construct a musical work using the letter-based representation of the specified pattern and the given melodic subject.
X:1
L:1/16
M:2/2
K:D
['A2 d4 f2ed cdef g2g2 f4 gfed', 'd6 fg a2d2c2d2 e6 fg a4 gfed']  
X:1
L:1/16
M:2/2
K:D
 A2 | d4 f2ed cdef g2g2 | f4 gfed c2>d2 efge | f2a2 fed cdef g2ag | f4 e2>d2 d6 :: fg | 
 a2d2c2d2 e6 fg | a4 gfed cdef gedc | d2>e2 f2g2 agfe f2ed | g2>a2 b2a2 gagf e2fg | 
 f4 gefd cdef g2ag | f4 e2>d2 d6 :|  