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
['=c2 AB c2 AG', 'f2 d e2']  
X:1
L:1/8
M:4/4
K:D
 AB | =c2 AB c2 AG | EGDG EGDB | =c2 AB c2 AG | Addc dfed | =c2 AB c2 AG | EGDG EGDB | 
 =c2 AB c2 AG | Addc d2 :| z e | f2 d e2 c | dfed cAAe | f2 d e2 fg | afge d2 cd | eaag efge | 
 dfed cAAG | Addc defg | afge d2 :|  