specdiffSpectral Processing:Non-Standardspecdiffspecdiff
Finds the positive difference values between consecutive spectral frames.
Description
Finds the positive difference values between consecutive spectral frames.
Syntaxwsig specdiff wsiginPerformancewsig -- 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.
Examples
wsig2 specdiff wsig1 ; sense onsets
wsig3 specfilt wsig2, 2 ; absorb slowlyspecdisp wsig2, 0.1 ; & display both spectraspecdisp wsig3, 0.1See Alsospecaddm,
specfilt,
spechist,
specscal