Debian Codegraph @

opcodes/insremot.xml

raw symbols SCIP
1 <refentry id="insremot">
2 <indexterm id="Indexinsremot"><primary>insremot</primary></indexterm>
3 <refentryinfo><title>Remote Opcodes</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>insremot</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>insremot</refname>
10 <refpurpose>
11 An opcode which can be used to implement a remote
12 orchestra. This opcode will send note events from a source
13 machine to one destination.
14 </refpurpose>
15 </refnamediv>
16
17 <refsect1>
18 <title>Description</title>
19 <para>
20 With the <emphasis>insremot</emphasis> and <link
21 linkend="insglobal"><citetitle>insglobal</citetitle></link>
22 opcodes you are able to perform instruments on remote machines
23 and control them from a master machine. The remote opcodes are
24 implemented using the master/client model. All the machines
25 involved contain the same orchestra but only the master machine
26 contains the information of the score. During the performance
27 the master machine sends the note events to the clients. The
28 <emphasis>insremot</emphasis> opcode will send events from a
29 source machine to one destination if you want to send events to
30 many destinations (broadcast) use the <link
31 linkend="insglobal"><citetitle>insglobal</citetitle></link>
32 opcode instead. These two opcodes can be used in combination.
33 </para>
34 </refsect1>
35
36 <refsect1>
37 <title>Syntax</title>
38 <synopsis><command>insremot</command> idestination, isource, instrnum [,instrnum...] </synopsis>
39 </refsect1>
40
41 <refsect1>
42 <title>Initialization</title>
43 <para>
44 <emphasis>idestination</emphasis>
45 -- a string that is the intended client computer (e.g. 192.168.0.100). This is the destination host which receives the events from the given instrument.
46 </para>
47
48 <para>
49 <emphasis>isource</emphasis>
50 -- a string that is the intended server 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.
51 </para>
52
53 <para>
54 <emphasis>instrnum</emphasis>
55 -- a list of instrument numbers which will be played on the destination machine
56 </para>
57
58 </refsect1>
59
60 <refsect1>
61 <title>Performance</title>
62 <note>
63 If is essential the computers using this opcode have the same
64 byte-order, data size (double or float) and pointer size. One
65 cannot use it with mixed 32 and 64 computers for instance.
66 </note>
67 <note>
68 Internally this opcode may make use of the gethostname and
69 gethostbyname functions to determine the client's and server's
70 IP address for checking which messages are for which machine, or
71 on non-windows system other techniques.
72 If a computer has more than one IP address there is no way to
73 control which IP address is found (but see below). On
74 non-windows systems the default network is eth0 or en0, and if
75 that fails wlan0. (Since version 6.05) the network to be used
76 can be set with an environment variable CS_ETHER.
77 </note>
78 <note>
79 The remote operation does not allow the sending of strings at
80 all.
81 </note>
82 </refsect1>
83 <refsect1>
84 <title>Examples</title>
85 <para>
86 Here is an example of the insremot opcode. It uses the files <ulink url="examples/insremot.csd"><citetitle>insremot.csd</citetitle></ulink> and <ulink url="examples/insremotM.csd"><citetitle>insremotM.csd</citetitle></ulink>.
87
88 <example>
89 <title>Example of the insremot opcode.</title>
90 <para>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).</para>
91 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
92
93 <xi:include href="examples-xml/insremot.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
94 <xi:include href="examples-xml/insremotM.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
95 </example>
96 </para>
97 </refsect1>
98
99 <refsect1>
100 <title>See also</title>
101 <para><link linkend="Remote"><citetitle>Remote Opcodes</citetitle></link></para>
102 </refsect1>
103
104 <refsect1>
105 <title>Credits</title>
106 <para>
107 <simplelist>
108 <member>Author: Simon Schampijer</member>
109 <member>2006</member>
110 </simplelist>
111 </para>
112 <para>
113 New in version 5.03
114 </para>
115 </refsect1>
116 </refentry>