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/4=120
M:4/4
K:D
['f>ed>c d>AF>A', 'd2 c>d e>dc>d e2 a2 f>ed>e f2']  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
"^Hornpipe." ud>ue | f>ed>c d>AF>A | f>ed>c d>AF>A | B>dg>f e>dc>d | (3efd (3cdB A>cd>e | 
 f>ed>c d>AF>A | f>ed>c B>dg>b | b>a^g>a =g>ea>g | f2 d2 d2 :: c>d | e>dc>d e2 a2 | f>ed>e f2 a2 | 
 g>fg>a b>ag>f | (3efe (3dcB (3ABA (3GFE | D>FA>d f>af>d | g>fg>a b2 a>g | (3fag (3fed | 
 (3cba (3gfe | f2 d2 d2 :|  