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
['D2 DG FAAB defd g2 fe dcBA', 'abaf defd (3(fga)']  
X:1
L:1/8
M:4/4
K:D
 D2 DG FAAB | defd g2 fe | dcBA BcdA | (3(Bcd) AF EDEF | D2 DG FAAB | defd g2 fe | dcBA BcdA | 
 (3(Bcd) AF D2 :| f | abaf defd | (3(fga) da f2 ef | abaf defd | (3(fga) df e2 ef | abaf defd | 
 (3(fga) da g fe | dcBA BcdA | (3(Bcd) AF D2 :|  