specdiff — Finds the positive difference values between consecutive spectral frames.
wsig -- the output spectrum.
wsigin -- the input spectra.
Finds the positive difference values between consecutive spectral frames. At each new frame of wsigin, each magnitude value is compared with its predecessor, and the positive changes written to the output spectrum. This unit is useful as an energy onset detector.