<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="turnoff">
  <refmeta>
    <refentrytitle>turnoff</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>turnoff</refname>

    <refpurpose>
      Enables an instrument to turn itself off. 
      <indexterm id="IndexTurnoff"><primary>turnoff</primary></indexterm>
    </refpurpose>
  </refnamediv>

  <refsect1>
    <title>Description</title>
    <para>
      Enables an instrument to turn itself off. 
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis><command>turnoff</command></synopsis>
  </refsect1>

  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>turnoff</emphasis> -- this p-time statement enables an instrument to turn itself off. Whether of finite duration or <quote>held</quote>, the note currently being performed by this instrument is immediately removed from the active note list. No other notes are affected.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Examples</title>
    <para>
      The following example uses the turnoff opcode. It will cause a note to terminate when a control signal passes a certain threshold (here the Nyquist frequency). It uses the files <ulink url="examples/turnoff.orc"><citetitle>turnoff.orc</citetitle></ulink> and <ulink url="examples/turnoff.sco"><citetitle>turnoff.sco</citetitle></ulink>.

      <example>
        <title>Example of the turnoff opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/turnoff.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/turnoff.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>
    </para>
  </refsect1>

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