Sophie

Sophie

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

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>insremot</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="ins.html" title="ins" />
    <link rel="next" href="insglobal.html" title="insglobal" />
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">insremot</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="ins.html">Prev</a> </td>
          <th width="60%" align="center">Orchestra Opcodes and Operators</th>
          <td width="20%" align="right"> <a accesskey="n" href="insglobal.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="refentry" title="insremot">
      <a id="insremot"></a>
      <div class="titlepage"></div>
      <a id="Indexinsremot" class="indexterm"></a>
      <div class="refnamediv">
        <h2>
          <span class="refentrytitle">insremot</span>
        </h2>
        <p>insremot — 
      An opcode which can be used to implement a remote orchestra. This opcode will send note events from a source machine to one destination.
          </p>
      </div>
      <div class="refsect1" title="Description">
        <a id="idp27255096"></a>
        <h2>Description</h2>
        <p>
      With the insremot and insglobal opcodes you are able to perform instruments on remote machines and control them from a master machine. The remote opcodes are implemented using the master/client model. All the machines involved contain the same orchestra but only the master machine contains the information of the score. During the performance the master machine sends the note events to the clients. The insremot opcode will send events from a source machine to one destination if you want to send events to many destinations (broadcast) use the insglobal opcode instead. These two opcodes can be used in combination.     
    </p>
      </div>
      <div class="refsect1" title="Syntax">
        <a id="idp27263488"></a>
        <h2>Syntax</h2>
        <pre class="synopsis"><span class="command"><strong>insremot</strong></span> idestination, isource, instrnum [,instrnum...] </pre>
      </div>
      <div class="refsect1" title="Initialization">
        <a id="idp27264560"></a>
        <h2>Initialization</h2>
        <p>
      <span class="emphasis"><em>idestination</em></span>
      -- a string that is the intended host computer (e.g. 192.168.0.100). This is the destination host which receives the events from the given instrument.
    </p>
        <p>
      <span class="emphasis"><em>isource</em></span>
      -- a string that is the intended host computer (e.g. 192.168.0.100). This is the source host which generates the events of the given instrument and sends it to the address given by idestination.
    </p>
        <p>
      <span class="emphasis"><em>instrnum</em></span>
      -- a list of instrument numbers which will be played on the destination machine
    </p>
      </div>
      <div class="refsect1" title="Examples">
        <a id="idp27266880"></a>
        <h2>Examples</h2>
        <p>
      Here is an example of the insremot opcode. It uses the files <a class="ulink" href="examples/insremot.csd" target="_top"><em class="citetitle">insremot.csd</em></a> and <a class="ulink" href="examples/insremotM.csd" target="_top"><em class="citetitle">insremotM.csd</em></a>.

      </p>
        <div class="example">
          <a id="idp27268320"></a>
          <p class="title">
            <strong>Example 370. Example of the insremot opcode.</strong>
          </p>
          <div class="example-contents">
            <p>The simple example below shows the bilbar example played on a remote machine. The master machine is named "192.168.1.100" and the client "192.168.1.101". Start the client on the machine (it will wait to receive the events from the master machine) and then start the master. Here is the command on linux to start a client (csound -+rtaudio=alsa -odac -dm0 insremot.csd), and the command on the master machine will look like this (csound -+rtaudio=alsa -odac -dm0 insremotM.csd).</p>
            <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>
<span class="comment">; Audio out   Audio in</span>
-odac           -iadc     <span class="comment">;;;RT audio I/O</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o insremot.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">nchnls</span> <span class="op">=</span> 1

<span class="opc">insremot</span> "192.168.1.100", "192.168.1.101", 1

<span class="oblock">instr</span> 1
  aq <span class="opc">barmodel</span> 1, 1, p4, 0.001, 0.23, 5, p5, p6, p7
     <span class="opc">out</span>      aq
<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 360

<span class="stamnt">e</span>
<span class="csdtag">&lt;/CsScore&gt;</span>
<span class="csdtag">&lt;/CsoundSynthesizer&gt;</span>
</pre>
            <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>
<span class="comment">; Audio out   Audio in</span>
-odac           -iadc     <span class="comment">;;;RT audio I/O</span>
<span class="comment">; For Non-realtime ouput leave only the line below:</span>
<span class="comment">; -o insremotM.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">nchnls</span> <span class="op">=</span> 1

<span class="opc">insremot</span> "192.168.1.100", "192.168.1.101", 1

<span class="oblock">instr</span> 1
  aq <span class="opc">barmodel</span> 1, 1, p4, 0.001, 0.23, 5, p5, p6, p7
     <span class="opc">out</span>      aq
<span class="oblock">endin</span>

<span class="csdtag">&lt;/CsInstruments&gt;</span>
<span class="csdtag">&lt;CsScore&gt;</span>
<span class="stamnt">i</span>1 0 0.5 3 0.2 500 0.05
<span class="stamnt">i</span>1 0.5 0.5 -3 0.3 1000 0.05
<span class="stamnt">i</span>1 1.0 0.5 -3 0.4 1000 0.1
<span class="stamnt">i</span>1 1.5 4.0 -3 0.5 800 0.05
<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="idp27323816"></a>
        <h2>See also</h2>
        <p>
      <a class="link" href="insglobal.html" title="insglobal"><em class="citetitle">insglobal</em></a>, <a class="link" href="midglobal.html" title="midglobal"><em class="citetitle">midglobal</em></a>, <a class="link" href="midremot.html" title="midremot"><em class="citetitle">midremot</em></a>, <a class="link" href="remoteport.html" title="remoteport"><em class="citetitle">remoteport</em></a>
    </p>
      </div>
      <div class="refsect1" title="Credits">
        <a id="idp27326224"></a>
        <h2>Credits</h2>
        <p>
      </p>
        <table border="0" summary="Simple list" class="simplelist">
          <tr>
            <td>Author: Simon Schampijer</td>
          </tr>
          <tr>
            <td>2006</td>
          </tr>
        </table>
        <p>
    </p>
        <p>
      New in version 5.03
    </p>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="ins.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="insglobal.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">ins </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> insglobal</td>
        </tr>
      </table>
    </div>
  </body>
</html>