Develop a musical composition based on the provided pattern of letters and incorporating the given motif within it.
X:1
L:1/8
M:12/8
K:D
['e) (f2 e)', 'baf afe d3']  
X:1
L:1/8
M:12/8
K:D
|: F2 A ABA B=cB A2 (G | F2) A d2 e f3 fef | g3 fgf efe d2 (B |1 ABA) AFD EFE EFG :|2 
 ABA efe d3 d2 (e |: f2 e) (f2 e) (f2 e) fga | ABA BAF ABA ABd | efe efe efe dfa |1 
 baf afe d3 d2 e :|2 baf afe d3 d3 ||  