Skip to content

spechist

Accumulates the values of successive spectral frames.

⚠ Deprecated

This opcode belongs to the deprecated constant-Q spectral family that uses w signals. Csound keeps it for compatibility and does not name a direct replacement.

Syntax

wsig = spechist(wsigin)
wsig spechist wsigin

Performance

wsigin -- the input spectra.

Accumulates the values of successive spectral frames. At each new frame of wsigin, the accumulations-to-date in each magnitude track are written to the output spectrum. This unit thus provides a running histogram of spectral distribution.

Examples

  wsig2    specdiff    wsig1         ; sense onsets
  wsig3    specfilt    wsig2, 2      ; absorb slowly
           specdisp    wsig2, 0.1    ; & display both spectra
           specdisp    wsig3, 0.1

See also

specaddm, specdiff, specfilt, specscal