<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="tonex">
  <refmeta>
    <refentrytitle>tonex</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>tonex</refname>
    <refpurpose>
      Emulates a stack of filters using the tone opcode.
      <indexterm id="IndexTonex"><primary>tonex</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      <emphasis>tonex</emphasis> is equivalent to a filter consisting of more layers of <link linkend="tone"><citetitle>tone</citetitle></link> with the same arguments, serially connected. Using a stack of a larger number of filters allows a sharper cutoff. They are faster than using a larger number instances in a Csound orchestra of the old opcodes, because only one initialization and k- cycle are needed at time and the audio loop falls entirely inside the cache memory of processor.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>tonex</command>  asig, khp [, inumlayer] [, iskip]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>inumlayer</emphasis> (optional) -- number of elements in the filter stack. Default value is 4.
    </para>

    <para>
      <emphasis>iskip</emphasis> (optional, default=0) -- initial disposition of internal data space. Since filtering incorporates a feedback loop of previous output, the initial status of the storage space used is significant. A zero value will clear the space; a non-zero value will allow previous information to remain. The default value is 0.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>asig</emphasis> -- input signal
    </para>

    <para>
      <emphasis>khp</emphasis> -- the response curve's half-power point. Half power is defined as peak power / root 2.
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="atonex"><citetitle>atonex</citetitle></link>,
      <link linkend="resonx"><citetitle>resonx</citetitle></link>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &namegabriel; (adapted by &namejohn;)</member>
        <member>Italy</member>
      </simplelist>
    </para>

    <para>New in Csound version 3.49</para>
  </refsect1>
</refentry>
