Sophie

Sophie

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

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>fluidProgramSelect</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="fluidOut.html" title="fluidOut" />
    <link rel="next" href="fluidSetInterpMethod.html" title="fluidSetInterpMethod" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">fluidProgramSelect</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="fluidOut.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="fluidSetInterpMethod.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="fluidProgramSelect">
      <a id="fluidProgramSelect"></a>
      <div class="titlepage"></div>
      <a id="IndexFluidProgramSelect" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">fluidProgramSelect</span>
        </h2>
        <p>fluidProgramSelect — 
      Assigns a preset from a SoundFont to a channel on a fluidEngine.
           </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="id2899664"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>fluidProgramSelect</strong></span> ienginenum, ichannelnum, isfnum, ibanknum, ipresetnum</pre>
      </div>
      <div class="refsect1" title="Description">
        <a id="id2900659"></a>
        <h2>Description</h2>
        <p>Assigns a preset from a SoundFont to a channel on a fluidEngine.
    </p>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="id2900672"></a>
        <h2>Initialization</h2>
        <p><span class="emphasis"><em>ienginenum</em></span> -- engine number assigned from fluidEngine</p>
        <p><span class="emphasis"><em>ichannelnum</em></span> -- which channel number to use for the preset in the given fluidEngine</p>
        <p><span class="emphasis"><em>isfnum</em></span> -- number of the SoundFont from which the preset is assigned</p>
        <p><span class="emphasis"><em>ibanknum</em></span> -- number of the bank in the SoundFont from which the preset is assigned</p>
        <p><span class="emphasis"><em>ipresetnum</em></span> -- number of the preset to assign</p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="id2900713"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the fluidsynth opcodes. It uses the file <a class="ulink" href="examples/fluid.orc" target="_top"><em class="citetitle">fluid.orc</em></a>.
    </p>
        <pre class="programlisting">
<span class="ohdr">sr</span> <span class="op">=</span> 44100
<span class="ohdr">ksmps</span> <span class="op">=</span> 100
<span class="ohdr">nchnls</span> <span class="op">=</span> 2

giengine  <span class="opc">fluidEngine</span>
isfnum    <span class="opc">fluidLoad</span> "07AcousticGuitar.sf2", giengine, 1
          <span class="opc">fluidProgramSelect</span> giengine, 1, isfnum, 0, 0

<span class="oblock">instr</span> 1
          <span class="opc">mididefault</span>     60, p3
          <span class="opc">midinoteonkey</span>   p4, p5

  ikey    <span class="opc">init</span>            p4
  ivel    <span class="opc">init</span>            p5

          <span class="opc">fluidNote</span>       giengine, 1, ikey, ivel
<span class="oblock">endin</span>

<span class="oblock">instr</span> 99
  imvol   <span class="opc">init</span>            70000
  asigl, asigr <span class="opc">fluidOut</span>   giengine
          <span class="opc">outs</span>            asigl <span class="op">*</span> imvol, asigr <span class="op">*</span> imvol
<span class="oblock">endin</span></pre>
        <p>
      See <a class="link" href="fluidEngine.html" title="fluidEngine"><em class="citetitle">fluidEngine</em></a> for more examples.
    </p>
      </div>
      <div class="refsect1" title="See Also">
        <a id="id2900750"></a>
        <h2>See Also</h2>
        <p><a class="link" href="fluidEngine.html" title="fluidEngine"><em class="citetitle">fluidEngine</em></a>, <a class="link" href="fluidNote.html" title="fluidNote"><em class="citetitle">fluidNote</em></a>, <a class="link" href="fluidLoad.html" title="fluidLoad"><em class="citetitle">fluidLoad</em></a></p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="id2900781"></a>
        <h2>Credits</h2>
        <p>Michael Gogins (gogins at pipeline dot com), Steven Yi. 
    Thanks to Peter Hanappe for Fluidsynth.</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="fluidOut.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="fluidSetInterpMethod.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">fluidOut </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> fluidSetInterpMethod</td>
        </tr>
      </table>
    </div>
  </body>
</html>