ExtensionComputes residual = original - deterministic_resynthesis, a port of compute-residual from residual.lisp.
Cubic phase interpolation (McAulay/Quatieri, after Smith/Serra PARSHL) makes the synthesised partials match the original's phase, so the subtraction is clean. What remains is the stochastic part — a cello's bow noise, for instance. Residual energy is reported in 25 Bark bands.