Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > b707d9a4ee443103660a75ccb6e51334 > files > 2778

csound-doc-5.19.01-10.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>turnoff2</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" />
    <link rel="home" href="index.html" title="The Canonical Csound Reference Manual" />
    <link rel="up" href="OpcodesTop.html" title="Orchestra Opcodes and Operators" />
    <link rel="prev" href="turnoff.html" title="turnoff" />
    <link rel="next" href="turnon.html" title="turnon" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">turnoff2</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="turnoff.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="turnon.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="turnoff2">
      <a id="turnoff2"></a>
      <div class="titlepage"></div>
      <a id="IndexTurnoff2" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">turnoff2</span>
        </h2>
        <p>turnoff2 — 
      Turn off instance(s) of other instruments at performance time.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp49745376"></a>
        <h2>Description</h2>
        <p>
      Turn off instance(s) of other instruments at performance time.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp49746048"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>turnoff2</strong></span> kinsno, kmode, krelease
    </pre>
      </div>
      <div class="refsect1" title="Performance">
        <a id="idp49774680"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>kinsno</em></span>
      -- instrument to be turned off (can be fractional) if zero or
      negative, no instrument is turned off
    </p>
        <p>
      <span class="emphasis"><em>kmode</em></span>
      -- sum of the following values:

      </p>
        <div class="itemizedlist">
          <ul class="itemizedlist" type="disc">
            <li class="listitem">
              <p>
            		0, 1, or 2: turn off all instances (0), oldest only
            		(1), or newest only (2)
            	</p>
            </li>
            <li class="listitem">
              <p>
            		4: only turn off notes with exactly matching
            		(fractional) instrument number, rather than ignoring
            		fractional part
            	</p>
            </li>
            <li class="listitem">
              <p>
            		8: only turn off notes with indefinite duration (p3
            		&lt; 0 or MIDI)
            	</p>
            </li>
          </ul>
        </div>
        <p>



    </p>
        <p>
      <span class="emphasis"><em>krelease</em></span>
      -- if non-zero, the turned off instances are allowed to release,
      otherwise are deactivated immediately (possibly resulting in
      clicks)
    </p>
        <div class="note" title="Note" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Note">
            <tr>
              <td rowspan="2" align="center" valign="top" width="25">
                <img alt="[Note]" src="images/note.png" />
              </td>
              <th align="left">Note</th>
            </tr>
            <tr>
              <td align="left" valign="top">
                <p>
      As a rule of thumb, you should turn off instruments with a higher instrument number than the one where turnoff is called, as doing otherwise might cause initialization issues.
    </p>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="refsect1" title="See Also">
        <a id="idp49778856"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="turnoff.html" title="turnoff"><em class="citetitle">turnoff</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp49779912"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Istvan Varga</td>
          </tr>
          <tr>
            <td>2005</td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in Csound 5.00</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="turnoff.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="OpcodesTop.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="turnon.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">turnoff </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> turnon</td>
        </tr>
      </table>
    </div>
  </body>
</html>