##
specfilt

specfilt —
Filters each channel of an input spectrum.

## Description

Filters each channel of an input spectrum.

## Syntax

wsig **specfilt** wsigin, ifhtim

## Initialization

*ifhtim* -- half-time constant.

## Performance

*wsigin* -- the input spectrum.

Filters each channel of an input spectrum. At each new frame of *wsigin*, each magnitude value is injected into a 1st-order lowpass recursive filter, whose half-time constant has been initially set by sampling the ftable *ifhtim* across the (logarithmic) frequency space of the input spectrum. This unit effectively applies a *persistence* factor to the data occurring in each spectral channel, and is useful for simulating the *energy integration* that occurs during auditory perception. It may also be used as a time-attenuated running *histogram* of the spectral distribution.