<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="specdisp">
  <refmeta>
    <refentrytitle>specdisp</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>specdisp</refname>
    <refpurpose>
      Displays the magnitude values of the spectrum.
      <indexterm id="IndexSpecdisp"><primary>specdisp</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Displays the magnitude values of the spectrum.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>specdisp</command> wsig, iprd [, iwtflg]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>iprd</emphasis> -- the period, in seconds, of each new display.
    </para>

    <para>
      <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).
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>wsig</emphasis> -- the input spectrum.
    </para>

    <para>
      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>).
    </para>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      <informalexample>
        <programlisting>
  ksum     <emphasis>specsum</emphasis>   wsig,  1                    ; sum the spec bins, and ksmooth
           <emphasis>if</emphasis>        ksum &lt; 2000   <emphasis>kgoto</emphasis>  zero   ; if sufficient amplitude
  koct     <emphasis>specptrk</emphasis>  wsig                        ;    pitch-track the signal
           <emphasis>kgoto</emphasis>      contin
zero:  
  koct    =     0                                ; else output zero
contin:
        </programlisting>
      </informalexample>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="specsum"><citetitle>specsum</citetitle></link>
    </para>
  </refsect1>
</refentry>
