Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 6ed14ebfd686aa32f7956e552aa2e21d > files > 2698

csound-manual-5.13.0-5.fc15.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>sndloop</title>
    <link rel="stylesheet" href="csound.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2" />
    <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="sndload.html" title="sndload" />
    <link rel="next" href="sndwarp.html" title="sndwarp" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">sndloop</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="sndload.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="sndwarp.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="sndloop">
      <a id="sndloop"></a>
      <div class="titlepage"></div>
      <a id="Indexsndloop" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">sndloop</span>
        </h2>
        <p>sndloop — 
      A sound looper with pitch control.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id3212275"></a>
        <h2>Description</h2>
        <p>
   This opcode records input audio and plays it back in a loop with user-defined
   duration and crossfade time. It also allows the pitch of the loop to be controlled,
   including reversed playback.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id3212289"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">asig, krec <span class="command"><strong>sndloop</strong></span> ain, kpitch, ktrig, idur, ifad</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id3213209"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>idur </em></span> -- loop duration in seconds
    </p>
        <p>
      <span class="emphasis"><em>ifad </em></span> -- crossfade duration in seconds
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id3213230"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>asig</em></span> -- output sig
    </p>
        <p>
      <span class="emphasis"><em>krec</em></span> -- 'rec on' signal, 1 when recording, 0 otherwise
    </p>
        <p>
      <span class="emphasis"><em>kpitch</em></span> -- pitch control (transposition ratio); negative values play the loop back in reverse
    </p>
        <p>
      <span class="emphasis"><em>ktrig</em></span> -- trigger signal: when 0, processing is bypassed. When switched on (ktrig &gt;= 1),
      the opcode starts recording until the loop memory is full. It then plays
      the looped sound until it is switched off again (ktrig = 0). Another recording
      can start again with ktrig &gt;= 1.
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="id3213272"></a>
        <h2>Examples</h2>
        <p>
      </p>
        <div class="example">
          <a id="id3213280"></a>
          <p class="title">
            <b>Example 562. Example</b>
          </p>
          <div class="example-contents">
            <pre class="programlisting">
asig      <span class="opc">in</span>                               <span class="comment">; get the signal in</span>
ktrig     <span class="opc">line</span>    0, 1, 1                  <span class="comment">; trigger signal</span>
aout,krec <span class="opc">sndloop</span> asig, 1, ktrig, 4, 0.05  <span class="comment">; rec starts at 1 sec, for 4 secs 0.05 crossfade</span>
          <span class="opc">printk</span>  1, krec                  <span class="comment">; prints the recording signal</span>
          <span class="opc">out</span>     aout</pre>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
        <p>
      The example above shows the basic operation of sndloop. Pitch can
      be controlled at the k-rate, recording is started as soon as the
      trigger value is &gt;= 1. Recording can be restarted by making the trigger 0 and
      then 1 again.
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id3213356"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Victor Lazzarini</td>
          </tr>
          <tr>
            <td>April 2005 </td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in Version 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="sndload.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="sndwarp.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">sndload </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> sndwarp</td>
        </tr>
      </table>
    </div>
  </body>
</html>