| 1 | |
| 2 | <refentry id="specdisp"> |
| 3 | <indexterm id="IndexSpecdisp"><primary>specdisp</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Non-Standard</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>specdisp</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>specdisp</refname> |
| 11 | <refpurpose> |
| 12 | Displays the magnitude values of the spectrum. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Displays the magnitude values of the spectrum. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis><command>specdisp</command> wsig, iprd [, iwtflg]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Initialization</title> |
| 30 | <para> |
| 31 | <emphasis>iprd</emphasis> -- the period, in seconds, of each new display. |
| 32 | </para> |
| 33 | |
| 34 | <para> |
| 35 | <emphasis>iwtflg</emphasis> (optional, default=0) -- wait flag. If non-zero, hold each display until released by the user. The default value is 0 (no wait). |
| 36 | </para> |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>Performance</title> |
| 41 | <para> |
| 42 | <emphasis>wsig</emphasis> -- the input spectrum. |
| 43 | </para> |
| 44 | |
| 45 | <para> |
| 46 | Displays the magnitude values of spectrum <emphasis>wsig</emphasis> every <emphasis>iprd</emphasis> seconds (rounded to some integral number of <emphasis>wsig</emphasis>'s originating <emphasis>iprd</emphasis>). |
| 47 | </para> |
| 48 | </refsect1> |
| 49 | |
| 50 | <refsect1> |
| 51 | <title>Examples</title> |
| 52 | <para> |
| 53 | <informalexample> |
| 54 | <programlisting> |
| 55 | ksum <emphasis role="opc">specsum</emphasis> wsig, 1 <emphasis role="comment">; sum the spec bins, and ksmooth</emphasis> |
| 56 | <emphasis role="octrl">if</emphasis> ksum <emphasis role="op"><</emphasis> 2000 <emphasis role="octrl">kgoto</emphasis> <emphasis role="olabel">zero</emphasis> <emphasis role="comment">; if sufficient amplitude</emphasis> |
| 57 | koct <emphasis role="opc">specptrk</emphasis> wsig <emphasis role="comment">; pitch-track the signal</emphasis> |
| 58 | <emphasis role="octrl">kgoto</emphasis> <emphasis role="olabel">contin</emphasis> |
| 59 | <emphasis role="olabel">zero:</emphasis> |
| 60 | koct <emphasis role="op">=</emphasis> 0 <emphasis role="comment">; else output zero</emphasis> |
| 61 | <emphasis role="olabel">contin:</emphasis></programlisting> |
| 62 | </informalexample> |
| 63 | </para> |
| 64 | </refsect1> |
| 65 | |
| 66 | <refsect1> |
| 67 | <title>See Also</title> |
| 68 | <para> |
| 69 | <link linkend="specsum"><citetitle>specsum</citetitle></link> |
| 70 | </para> |
| 71 | </refsect1> |
| 72 | </refentry> |