Sophie

Sophie

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

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>outipb</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="outipat.html" title="outipat" />
    <link rel="next" href="outipc.html" title="outipc" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">outipb</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="outipat.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="outipc.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="outipb">
      <a id="outipb"></a>
      <div class="titlepage"></div>
      <a id="IndexOutipb" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">outipb</span>
        </h2>
        <p>outipb — 
      Sends MIDI pitch-bend messages at i-rate.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp34313416"></a>
        <h2>Description</h2>
        <p>
      Sends MIDI pitch-bend messages at i-rate.
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp34314072"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>outipb</strong></span> ichn, ivalue, imin, imax</pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp34324416"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ichn</em></span> -- MIDI channel number (1-16)
    </p>
        <p>
      <span class="emphasis"><em>ivalue</em></span> -- floating point value
    </p>
        <p>
      <span class="emphasis"><em>imin</em></span> -- minimum floating point value (converted in MIDI integer value 0)
    </p>
        <p>
      <span class="emphasis"><em>imax</em></span> -- maximum floating point value (converted in MIDI integer value 127 (7 bit))
    </p>
      </div>
      <div class="refsect1" title="Performance">
        <a id="idp34326632"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>outipb</em></span> (i-rate pitch bend output) sends pitch bend messages. It works only with MIDI instruments which recognize them. It can drive a different value of a parameter for each note currently active.

    </p>
        <p>
      It can scale an i-value floating-point argument according to the <span class="emphasis"><em>imin</em></span> and <span class="emphasis"><em>imax</em></span> values. For example, set <span class="emphasis"><em>imin</em></span> = 1.0 and <span class="emphasis"><em>imax</em></span> = 2.0. When the <span class="emphasis"><em>ivalue</em></span> argument receives a 2.0 value, the opcode will send a 127 value to the MIDI OUT device. When the <span class="emphasis"><em>ivalue</em></span> argument receives a 1.0 value, it will send a 0 value. i-rate opcodes send their message once during instrument initialization.
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp34367688"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the outipb opcode. It uses the file <a class="ulink" href="examples/outipb.csd" target="_top"><em class="citetitle">outipb.csd</em></a>.
      </p>
        <div class="example">
          <a id="idp34368656"></a>
          <p class="title">
            <strong>Example 542. Example of the outipb 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 -Q1 -M0  <span class="comment">;;;realtime audio out and midi in and out</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 outipb.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> 10
<span class="ohdr">nchnls</span> <span class="op">=</span> 2

<span class="oblock">instr</span> 1

ikey <span class="opc">notnum</span> 
ivel  <span class="opc">veloc</span>

ipb <span class="op">=</span> 10		<span class="comment">;a little out of tune</span>
<span class="opc">outipb</span> 1, ipb, 0, 127	<span class="comment">;(= pitchbend)</span>
<span class="opc">midion</span> 1, ikey, ivel	<span class="comment">;of external synth</span>

<span class="oblock">endin</span>
<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>
<span class="stamnt">f</span>0 30

<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="idp34370928"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="outiat.html" title="outiat"><em class="citetitle">outiat</em></a>,
      <a class="link" href="outic14.html" title="outic14"><em class="citetitle">outic14</em></a>,
      <a class="link" href="outic.html" title="outic"><em class="citetitle">outic</em></a>,
      <a class="link" href="outipat.html" title="outipat"><em class="citetitle">outipat</em></a>,
      <a class="link" href="outipc.html" title="outipc"><em class="citetitle">outipc</em></a>,
      <a class="link" href="outkat.html" title="outkat"><em class="citetitle">outkat</em></a>,
      <a class="link" href="outkc14.html" title="outkc14"><em class="citetitle">outkc14</em></a>,
      <a class="link" href="outkc.html" title="outkc"><em class="citetitle">outkc</em></a>,
      <a class="link" href="outkpat.html" title="outkpat"><em class="citetitle">outkpat</em></a>,
      <a class="link" href="outkpb.html" title="outkpb"><em class="citetitle">outkpb</em></a>,
      <a class="link" href="outkpc.html" title="outkpc"><em class="citetitle">outkpc</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp34376744"></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>
        </table>
        <p>
    </p>
        <p>New in Csound version 3.47</p>
        <p>Thanks goes to Rasmus Ekman for pointing out the correct MIDI channel and controller number ranges.</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="outipat.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="outipc.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">outipat </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> outipc</td>
        </tr>
      </table>
    </div>
  </body>
</html>