Sophie

Sophie

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

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>sflooper</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="sfload.html" title="sfload" />
    <link rel="next" href="sfpassign.html" title="sfpassign" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">sflooper</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="sfload.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="sfpassign.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="sflooper">
      <a id="sflooper"></a>
      <div class="titlepage"></div>
      <a id="Indexsflooper" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">sflooper</span>
        </h2>
        <p>sflooper — 
      Plays a SoundFont2 (SF2) sample preset, generating a stereo sound, with user-defined
      time-varying crossfade looping.
    </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id3189323"></a>
        <h2>Description</h2>
        <p>
      Plays a SoundFont2 (SF2) sample preset, generating a stereo sound, similarly to <span class="emphasis"><em>sfplay</em></span>. Unlike that opcode, though,
	  it ignores the looping points set in the SF2 file and substitutes them for a user-defined crossfade loop. It is
	  a cross between <a class="link" href="sfplay.html" title="sfplay"><em class="citetitle">sfplay</em></a> and
      <a class="link" href="flooper2.html" title="flooper2"><em class="citetitle">flooper2</em></a>.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id3189552"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">ar1, ar2 <span class="command"><strong>sflooper</strong></span> ivel, inotenum, kamp, kpitch, ipreindex, kloopstart, kloopend, kcrossfade, ifn \
      [, istart, imode, ifenv, iskip] </pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id3189573"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ivel</em></span> -- velocity value
    </p>
        <p>
      <span class="emphasis"><em>inotenum</em></span> -- MIDI note number value
    </p>
        <p>
      <span class="emphasis"><em>ipreindex</em></span> -- preset index
    </p>
        <p>
      <span class="emphasis"><em>istart </em></span> -- playback start pos in seconds
    </p>
        <p>
      <span class="emphasis"><em>imode </em></span> -- loop modes: 0 forward, 1 backward, 2 back-and-forth [def: 0]
    </p>
        <p>
      <span class="emphasis"><em>ifenv </em></span> -- if non-zero, crossfade envelope shape table number. The default, 0, sets
the crossfade to linear.
    </p>
        <p>
      <span class="emphasis"><em>iskip </em></span> -- if 1, the opcode initialisation is skipped, for tied notes, performance
continues from the position in the loop where the previous note stopped. The default, 0, does not skip
initialisation
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id3190283"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>kamp</em></span> -- amplitude scaling </p>
        <p>
      <span class="emphasis"><em>kpitch</em></span> -- pitch control (transposition ratio); negative values are not allowed.
    </p>
        <p>
      <span class="emphasis"><em>kloopstart</em></span> -- loop start point (secs). Note that although k-rate, loop parameters
such as this are only updated once per loop cycle. If loop start is set beyond the end of the sample, no looping
will result. 
</p>
        <p>
      <span class="emphasis"><em>kloopend</em></span> -- loop end point (secs), updated once per loop cycle.
</p>
        <p>
      <span class="emphasis"><em>kcrossfade </em></span> -- crossfade length (secs), updated once per loop cycle and limited to
loop length.</p>
      </div>
      <div class="refsect1">
        <a id="id3190332"></a>
        <p>
      <span class="emphasis"><em>sflooper</em></span> plays a preset, generating a stereo sound. 
	 </p>
        <p>
      These opcodes only support the sample structure of SF2 files. The modulator structure of the SoundFont2 format is not supported in Csound. Any modulation or processing to the sample data is left to the Csound user, bypassing all restrictions forced by the SF2 standard.
    </p>
      </div>
      <div class="refsect1" title="See Also">
        <a id="id3190351"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="sfilist.html" title="sfilist"><em class="citetitle">sfilist</em></a>,
      <a class="link" href="sfinstr.html" title="sfinstr"><em class="citetitle">sfinstr</em></a>,
      <a class="link" href="sfinstrm.html" title="sfinstrm"><em class="citetitle">sfinstrm</em></a>,
      <a class="link" href="sfload.html" title="sfload"><em class="citetitle">sfload</em></a>,
      <a class="link" href="sfpassign.html" title="sfpassign"><em class="citetitle">sfpassign</em></a>,
      <a class="link" href="sfplaym.html" title="sfplaym"><em class="citetitle">sfplaym</em></a>,
      <a class="link" href="sfplist.html" title="sfplist"><em class="citetitle">sfplist</em></a>,
      <a class="link" href="sfpreset.html" title="sfpreset"><em class="citetitle">sfpreset</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id3190424"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Victor Lazzarini</td>
          </tr>
          <tr>
            <td>August 2007</td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in Csound Version 5.07</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="sfload.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="sfpassign.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">sfload </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> sfpassign</td>
        </tr>
      </table>
    </div>
  </body>
</html>