| 1 | |
| 2 | <refentry id="specfilt"> |
| 3 | <indexterm id="IndexSpecfilt"><primary>specfilt</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Non-Standard</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>specfilt</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | <refnamediv> |
| 11 | <refname>specfilt</refname> |
| 12 | <refpurpose> |
| 13 | Filters each channel of an input spectrum. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | Filters each channel of an input spectrum. |
| 21 | </para> |
| 22 | </refsect1> |
| 23 | |
| 24 | <refsect1> |
| 25 | <title>Syntax</title> |
| 26 | <synopsis>wsig <command>specfilt</command> wsigin, ifhtim</synopsis> |
| 27 | </refsect1> |
| 28 | |
| 29 | <refsect1> |
| 30 | <title>Initialization</title> |
| 31 | <para> |
| 32 | <emphasis>ifhtim</emphasis> -- half-time constant. |
| 33 | </para> |
| 34 | </refsect1> |
| 35 | |
| 36 | <refsect1> |
| 37 | <title>Performance</title> |
| 38 | <para> |
| 39 | <emphasis>wsigin</emphasis> -- the input spectrum. |
| 40 | </para> |
| 41 | |
| 42 | <para> |
| 43 | Filters each channel of an input spectrum. At each new frame of <emphasis>wsigin</emphasis>, each magnitude value is injected into a 1st-order lowpass recursive filter, whose half-time constant has been initially set by sampling the ftable <emphasis>ifhtim</emphasis> across the (logarithmic) frequency space of the input spectrum. This unit effectively applies a <emphasis>persistence</emphasis> factor to the data occurring in each spectral channel, and is useful for simulating the <emphasis>energy integration</emphasis> that occurs during auditory perception. It may also be used as a time-attenuated running <emphasis>histogram</emphasis> of the spectral distribution. |
| 44 | </para> |
| 45 | </refsect1> |
| 46 | |
| 47 | <refsect1> |
| 48 | <title>Examples</title> |
| 49 | <para> |
| 50 | <informalexample> |
| 51 | <programlisting> |
| 52 | wsig2 <emphasis role="opc">specdiff</emphasis> wsig1 <emphasis role="comment">; sense onsets</emphasis> |
| 53 | wsig3 <emphasis role="opc">specfilt</emphasis> wsig2, 2 <emphasis role="comment">; absorb slowly</emphasis> |
| 54 | <emphasis role="opc">specdisp</emphasis> wsig2, 0.1 <emphasis role="comment">; & display both spectra</emphasis> |
| 55 | <emphasis role="opc">specdisp</emphasis> wsig3, 0.1</programlisting> |
| 56 | </informalexample> |
| 57 | </para> |
| 58 | </refsect1> |
| 59 | |
| 60 | <refsect1> |
| 61 | <title>See Also</title> |
| 62 | <para> |
| 63 | <link linkend="specaddm"><citetitle>specaddm</citetitle></link>, |
| 64 | <link linkend="specdiff"><citetitle>specdiff</citetitle></link>, |
| 65 | <link linkend="spechist"><citetitle>spechist</citetitle></link>, |
| 66 | <link linkend="specscal"><citetitle>specscal</citetitle></link> |
| 67 | </para> |
| 68 | </refsect1> |
| 69 | </refentry> |