Sophie

Sophie

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

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>fluidSetInterpMethod</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="fluidProgramSelect.html" title="fluidProgramSelect" />
    <link rel="next" href="FLvalue.html" title="FLvalue" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">fluidSetInterpMethod</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="fluidProgramSelect.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="FLvalue.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="fluidSetInterpMethod">
      <a id="fluidSetInterpMethod"></a>
      <div class="titlepage"></div>
      <a id="IndexFluidSetInterpMethod" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">fluidSetInterpMethod</span>
        </h2>
        <p>fluidSetInterpMethod — 
      Set interpolation method for channel in Fluid Engine
           </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp23247632"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>fluidSetInterpMethod</strong></span> ienginenum, ichannelnum, iInterpMethod</pre>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp23287936"></a>
        <h2>Description</h2>
        <p>Set interpolation method for channel in Fluid Engine.  Lower 
    order interpolation methods will render faster at lower fidelity while 
    higher order interpolation methods will render slower at higher fidelity.
    Default interpolation for a channel is 4th order interpolation. 
    </p>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp23288808"></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>iInterpMethod</em></span>
    	-- interpolation method, can be any of the following

    	</p>
        <div class="itemizedlist">
          <ul class="itemizedlist" type="disc">
            <li class="listitem">
              <p>
    				<span class="emphasis"><em>0</em></span>
    				-- No Interpolation
    			</p>
            </li>
            <li class="listitem">
              <p>
    				<span class="emphasis"><em>1</em></span>
    				-- Linear Interpolation
    			</p>
            </li>
            <li class="listitem">
              <p>
    				<span class="emphasis"><em>4</em></span>
    				-- 4th Order Interpolation (Default)
    			</p>
            </li>
            <li class="listitem">
              <p>
                    <span class="emphasis"><em>7</em></span>
                    -- 7th Order Interpolation (Highest)
                </p>
            </li>
          </ul>
        </div>
        <p>

    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp23293240"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the fluidSetInterpMethod opcode. It uses the file <a class="ulink" href="examples/fluidSetInterpMethod.csd" target="_top"><em class="citetitle">fluidSetInterpMethod.csd</em></a> and <a class="ulink" href="examples/07AcousticGuitar.sf2" target="_top"><em class="citetitle">07AcousticGuitar.sf2</em></a>.
      </p>
        <div class="example">
          <a id="idp23294720"></a>
          <p class="title">
            <strong>Example 268. Example of the fluidSetInterpMethod opcode.</strong>
          </p>
          <div class="example-contents">
            <p>See the sections <a class="link" href="UsingRealTime.html" title="Real-Time Audio"><em class="citetitle">Real-time Audio</em></a> and <a class="link" href="CommandFlags.html" title="Csound command line"><em class="citetitle">Command Line Flags</em></a> for more information on using command line flags.</p>
            <pre class="programlisting">
<span class="csdtag">&lt;CsoundSynthesizer&gt;</span>
<span class="csdtag">&lt;CsOptions&gt;</span>
<span class="comment">; Select audio/midi flags here according to platform</span>
-odac     <span class="comment">;;;realtime audio out and realtime midi in</span>
<span class="comment">;-iadc    ;;;uncomment -iadc if realtime audio input is needed too</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">;-o fluidSetInterpMethod.wav -W ;;; for file output any platform</span>
<span class="csdtag">&lt;/CsOptions&gt;</span>
<span class="csdtag">&lt;CsInstruments&gt;</span>

<span class="ohdr">sr</span> <span class="op">=</span> 44100
<span class="ohdr">ksmps</span> <span class="op">=</span> 32
<span class="ohdr">nchnls</span> <span class="op">=</span> 2
<span class="ohdr">0dbfs</span> <span class="op">=</span> 1

giengine <span class="opc">fluidEngine</span>
<span class="comment">; soundfont path to manual/examples</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
iInterpMethod <span class="op">=</span> p6
<span class="opc">fluidSetInterpMethod</span> giengine, 1, iInterpMethod
	<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> 7
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>
<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>
<span class="comment">;hear the difference</span>
<span class="stamnt">i</span> 1 0 2 60 120 0 <span class="comment">;no interpolation</span>
<span class="stamnt">i</span> 1 3 2 72 120 0
<span class="stamnt">i</span> 1 6 2 60 120 7 <span class="comment">;7th order interpolation</span>
<span class="stamnt">i</span> 1 9 2 72 120 7

<span class="stamnt">i</span> 99 0 12    

<span class="stamnt">e</span>
<span class="csdtag">&lt;/CsScore&gt;</span>
<span class="csdtag">&lt;/CsoundSynthesizer&gt;</span>
</pre>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
      </div>
      <div class="refsect1" title="See Also">
        <a id="idp23297016"></a>
        <h2>See Also</h2>
        <p>
          <a class="link" href="fluidEngine.html" title="fluidEngine">
            <em class="citetitle">fluidEngine</em>
          </a>
        </p>
        <p> More information on soundfonts in the Floss Manuals: <a class="ulink" href="http://en.flossmanuals.net/csound/ch048_d-reading-midi-files" target="_top"><em class="citetitle">http://en.flossmanuals.net/csound/ch048_d-reading-midi-files</em></a></p>
        <p> Other information on soundfonts on Wikipedia: <a class="ulink" href="http://en.wikipedia.org/wiki/Soundfont" target="_top"><em class="citetitle">http://en.wikipedia.org/wiki/Soundfont</em></a></p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp23299272"></a>
        <h2>Credits</h2>
        <p>Author: Steven Yi</p>
        <p>New in 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="fluidProgramSelect.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="FLvalue.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">fluidProgramSelect </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> FLvalue</td>
        </tr>
      </table>
    </div>
  </body>
</html>