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:C
['AB c2 (BA) e3 a gede c2', 'A4 AB c2 (cd) e2 (dc) efgf']  
X:1
L:1/8
M:4/4
K:C
 AB | c2 (BA) e3 a | gede c2 (ef) | gega gedc | B2 d4 AB | cBcd efge | gfda ^g3 e | fedc dBGe | 
 c2 A4 :: AB | c2 (cd) e2 (dc) | efgf e3 c | (dB)(dB) (dB)(ge) | dcBA B2 (AG) | AGAB cAdB | 
 ecge a3 e | fedc dBae | c2 (BA) A2 :|  