Sophie

Sophie

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

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>sfpreset</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="sfplist.html" title="sfplist" />
    <link rel="next" href="shaker.html" title="shaker" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">sfpreset</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="sfplist.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="shaker.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="sfpreset">
      <a id="sfpreset"></a>
      <div class="titlepage"></div>
      <a id="IndexSfpreset" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">sfpreset</span>
        </h2>
        <p>sfpreset — 
      Assigns an existing preset of a SoundFont2 (SF2) sample file to an index number.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="id3194754"></a>
        <h2>Description</h2>
        <p>
      Assigns an existing preset of a previously loaded SoundFont2 (SF2) sample file to an index number. These opcodes allow management the sample-structure of SF2 files. In order to understand the usage of these opcodes, the user must have some knowledge of the SF2 format, so a brief description of this format can be found in the <a class="link" href="MiscSf2.html" title="Appendix G. SoundFont2 File Format"><em class="citetitle">SoundFont2 File Format Appendix</em></a>.
    </p>
        <p>
      <span class="emphasis"><em>sfpreset</em></span> should be placed in the header section of a Csound orchestra.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id3195497"></a>
        <h2>Syntax</h2>
        <pre class="synopsis">ir <span class="command"><strong>sfpreset</strong></span> iprog, ibank, ifilhandle, ipreindex</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id3195515"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ir</em></span> -- output to be used by other SF2 opcodes. For <span class="emphasis"><em>sfpreset</em></span>, <span class="emphasis"><em>ir</em></span> is <span class="emphasis"><em>ipreindex</em></span>.
    </p>
        <p>
      <span class="emphasis"><em>iprog</em></span> -- program number of a bank of presets in a SF2 file
    </p>
        <p>
      <span class="emphasis"><em>ibank</em></span> -- number of a specific bank of a SF2 file
    </p>
        <p>
      <span class="emphasis"><em>ifilhandle</em></span> -- unique number generated by <span class="emphasis"><em>sfload</em></span> opcode to be used as an identifier for a SF2 file. Several SF2 files can be loaded and activated at the same time.
    </p>
        <p>
      <span class="emphasis"><em>ipreindex</em></span> -- preset index
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="id3195575"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>sfpreset</em></span> assigns an existing preset of a previously loaded SF2 file to an index number, to be used later with the opcodes <span class="emphasis"><em>sfplay</em></span> and <span class="emphasis"><em>sfplaym</em></span>. The user must previously know the program and the bank numbers of the preset in order to fill the corresponding arguments. Any number of <span class="emphasis"><em>sfpreset</em></span> instances can be placed in the header section of an orchestra, each one assigning a different preset belonging to the same (or different) SF2 file to different index numbers.
    </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="id3195615"></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="sfplay.html" title="sfplay"><em class="citetitle">sfplay</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>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id3195688"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Gabriel Maldonado</td>
          </tr>
          <tr>
            <td>Italy</td>
          </tr>
          <tr>
            <td>May 2000</td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in Csound Version 4.07</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="sfplist.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="shaker.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">sfplist </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> shaker</td>
        </tr>
      </table>
    </div>
  </body>
</html>