Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 5fcfcb7517038d1f44ab4e478e6e61fa > files > 1937

csound-doc-6.10.0-1.mga7.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>fouti</title>
    <link rel="stylesheet" type="text/css" href="csound.css" />
    <link rel="stylesheet" type="text/css" href="syntax-highlighting.css" />
    <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" />
    <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="fout.html" title="fout" />
    <link rel="next" href="foutir.html" title="foutir" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">fouti</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="fout.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="foutir.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry">
      <a id="fouti"></a>
      <div class="titlepage"></div>
      <a id="IndexFouti" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">fouti</span>
        </h2>
        <p>fouti — 
      Outputs i-rate signals of an arbitrary number of channels to a specified file.
          </p>
      </div>
      <div class="refsect1">
        <a id="idm281472929544824"></a>
        <h2>Description</h2>
        <p>
      <span class="emphasis"><em>fouti</em></span> output <span class="emphasis"><em>N</em></span> i-rate signals to a specified file of <span class="emphasis"><em>N</em></span> channels.
    </p>
      </div>
      <div class="refsect1">
        <a id="idm281472929499656"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>fouti</strong></span> ihandle, iformat, iflag, iout1 [, iout2, iout3,....,ioutN]</pre>
      </div>
      <div class="refsect1">
        <a id="idm281472929497640"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>ihandle</em></span> -- a number which specifies this file.
    </p>
        <p>
      <span class="emphasis"><em>iformat</em></span> -- a flag to choose output file format:
      </p>
        <div class="itemizedlist">
          <ul class="itemizedlist" style="list-style-type: disc; ">
            <li class="listitem">
              <p>0 - floating point in text format</p>
            </li>
            <li class="listitem">
              <p>1 - 32-bit floating point in binary format</p>
            </li>
          </ul>
        </div>
        <p>
    </p>
        <p>
      <span class="emphasis"><em>iflag</em></span> -- choose the mode of writing to the ASCII file (valid only in ASCII mode; in binary mode <span class="emphasis"><em>iflag</em></span> has no meaning, but it must be present anyway). <span class="emphasis"><em>iflag</em></span> can be a value chosen among the following:
      </p>
        <div class="itemizedlist">
          <ul class="itemizedlist" style="list-style-type: disc; ">
            <li class="listitem">
              <p>0 - line of text without instrument prefix</p>
            </li>
            <li class="listitem">
              <p>1 - line of text with instrument prefix (see below)</p>
            </li>
            <li class="listitem">
              <p>2 - reset the time of instrument prefixes to zero (to be used only in some particular cases. See below)</p>
            </li>
          </ul>
        </div>
        <p>
    </p>
        <p>
      <span class="emphasis"><em>iout,..., ioutN</em></span> -- values to be written to the file
    </p>
      </div>
      <div class="refsect1">
        <a id="idm281472929487416"></a>
        <h2>Performance</h2>
        <p>
      <span class="emphasis"><em>fouti</em></span> and <a class="link" href="foutir.html" title="foutir"><em class="citetitle">foutir</em></a> write i-rate values to a file. The main use of these opcodes is to generate a score file during a realtime session. For this purpose, the user should set <span class="emphasis"><em>iformat</em></span> to 0 (text file output) and <span class="emphasis"><em>iflag</em></span> to 1, which enable the output of a prefix consisting of the strings <span class="emphasis"><em>inum</em></span>, <span class="emphasis"><em>actiontime</em></span>, and <span class="emphasis"><em>duration</em></span>, before the values of <span class="emphasis"><em>iout1...ioutN</em></span> arguments. The arguments in the prefix refer to instrument number, action time and duration of current note.
    </p>
        <p>
      Notice that <a class="link" href="fout.html" title="fout"><em class="citetitle">fout</em></a> and <a class="link" href="foutk.html" title="foutk"><em class="citetitle">foutk</em></a> can use either a string containing a file pathname, or a handle-number generated by <a class="link" href="fiopen.html" title="fiopen"><em class="citetitle">fiopen</em></a>. Whereas, with <span class="emphasis"><em>fouti</em></span> and <a class="link" href="foutir.html" title="foutir"><em class="citetitle">foutir</em></a>, the target file can be only specified by means of a handle-number.
    </p>
      </div>
      <div class="refsect1">
        <a id="idm281472929477128"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the fouti opcode. It uses the file <a class="ulink" href="examples/fouti.csd" target="_top"><em class="citetitle">fouti.csd</em></a>.
            </p>
        <div class="example">
          <a id="idm281472929475272"></a>
          <p class="title">
            <strong>Example 344. Example of the fouti 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>
            <div class="refsect1">
              <a id="idm281472763248712"></a>
              <pre class="programlisting">
<span class="nt">&lt;CsoundSynthesizer&gt;</span> 
<span class="nt">&lt;CsOptions&gt;</span> 
<span class="c1">; Select audio/midi flags here according to platform</span>
-odac     <span class="c1">;;;realtime audio out</span>
<span class="c1">;-iadc    ;;;uncomment -iadc if realtime audio input is needed too</span>
<span class="c1">; For Non-realtime ouput leave only the line below:</span>
<span class="c1">; -o fouti.wav -W ;;; for file output any platform</span>
<span class="nt">&lt;/CsOptions&gt;</span> 
<span class="nt">&lt;CsInstruments&gt;</span> 

<span class="vg">sr</span> <span class="o">=</span> <span class="mi">44100</span> 
<span class="vg">ksmps</span> <span class="o">=</span> <span class="mi">32</span> 
<span class="vg">nchnls</span> <span class="o">=</span> <span class="mi">2</span> 
<span class="vg">0dbfs</span>  <span class="o">=</span> <span class="mi">1</span> 

gi<span class="n">hand</span> <span class="nb">fiopen</span> <span class="s">"test.txt"</span><span class="p">,</span> <span class="mi">0</span> 

<span class="kd">instr</span> <span class="nf">1</span>

i<span class="n">res</span>  <span class="nb">random</span>  <span class="mi">0</span><span class="p">,</span> <span class="mi">10</span> 
      <span class="nb">fouti</span> gi<span class="n">hand</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> i<span class="n">res</span> 
      <span class="nb">ficlose</span> gi<span class="n">hand</span>

<span class="kd">endin</span> 
<span class="nt">&lt;/CsInstruments&gt;</span> 
<span class="nt">&lt;CsScore&gt;</span> 

<span class="nb">i</span> <span class="mi">1</span> <span class="mi">0</span> <span class="mi">1</span> 

<span class="nb">e</span>
<span class="nt">&lt;/CsScore&gt;</span> 
<span class="nt">&lt;/CsoundSynthesizer&gt;</span> 
</pre>
            </div>
          </div>
        </div>
        <p><br class="example-break" />
    </p>
      </div>
      <div class="refsect1">
        <a id="idm281472929470984"></a>
        <h2>See Also</h2>
        <p>
      <a class="link" href="fiopen.html" title="fiopen"><em class="citetitle">fiopen</em></a>,
      <a class="link" href="fout.html" title="fout"><em class="citetitle">fout</em></a>,
      <a class="link" href="foutir.html" title="foutir"><em class="citetitle">foutir</em></a>,
      <a class="link" href="foutk.html" title="foutk"><em class="citetitle">foutk</em></a>
    </p>
      </div>
      <div class="refsect1">
        <a id="idm281472929466056"></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>1999</td>
          </tr>
        </table>
        <p>
    </p>
        <p>New in Csound version 3.56</p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="fout.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="foutir.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">fout </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> foutir</td>
        </tr>
      </table>
    </div>
  </body>
</html>