Debian Codegraph @

opcodes/OSCinit.xml

raw symbols SCIP
1
2 <refentry id="OSCinit">
3 <indexterm id="IndexOSCinit"><primary>OSCinit</primary></indexterm>
4 <refentryinfo><title>OSC</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>OSCinit</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>OSCinit</refname>
13 <refpurpose>
14 Start a listening process for OSC messages to a particular port.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>Plugin opcode in osc.</para>
21 <para>
22 Starts a listening process, which can be used by OSClisten.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>ihandle <command>OSCinit</command> iport</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>ihandle</emphasis>
35 -- handle returned that can be passed to any number of OSClisten
36 opcodes to receive messages on this port.
37 </para>
38 <para>
39 <emphasis>iport</emphasis>
40 -- the port on which to listen.
41 </para>
42
43 </refsect1>
44
45 <refsect1>
46 <title>Performance</title>
47
48 <para>
49 The listener runs in the background. See OSClisten for details.
50 </para>
51
52 </refsect1>
53
54 <refsect1>
55 <title>Example</title>
56 <para>
57 The example shows a pair of floating point numbers being received
58 on port 7770.
59 </para>
60
61 <informalexample>
62 <programlisting>
63 <emphasis role="ohdr">sr</emphasis> <emphasis role="op">=</emphasis> 44100
64 <emphasis role="ohdr">ksmps</emphasis> <emphasis role="op">=</emphasis> 100
65 <emphasis role="ohdr">nchnls</emphasis> <emphasis role="op">=</emphasis> 2
66
67 gihandle <emphasis role="opc">OSCinit</emphasis> 7770
68
69 <emphasis role="oblock">instr</emphasis> 1
70 kf1 <emphasis role="opc">init</emphasis> 0
71 kf2 <emphasis role="opc">init</emphasis> 0
72 <emphasis role="olabel">nxtmsg</emphasis>:
73 kk <emphasis role="opc">OSClisten</emphasis> gihandle, &quot;/foo/bar&quot;, &quot;ff&quot;, kf1, kf2
74 <emphasis role="octrl">if</emphasis> (kk <emphasis role="op">==</emphasis> 0) <emphasis role="octrl">goto</emphasis> <emphasis role="olabel">ex</emphasis>
75 <emphasis role="opc">printk</emphasis> 0,kf1
76 <emphasis role="opc">printk</emphasis> 0,kf2
77 <emphasis role="opc">kgoto</emphasis> <emphasis role="olabel">nxtmsg</emphasis>
78 <emphasis role="olabel">ex</emphasis>:
79 <emphasis role="oblock">endin</emphasis>
80 </programlisting>
81 </informalexample>
82 </refsect1>
83
84 <refsect1>
85 <title>See also</title>
86 <para><link linkend="OSC"><citetitle>OSC (Open Sound Control)</citetitle></link></para>
87 <para> More information on this opcode: <ulink url="http://www.youtube.com/watch?v=JX1C3TqP_9Y"><citetitle>http://www.youtube.com/watch?v=JX1C3TqP_9Y</citetitle></ulink> , made by Andrés Cabrera </para>
88 </refsect1>
89
90 <refsect1>
91 <title>Credits</title>
92 <para>
93 <simplelist>
94 <member>Author: &namejohn;</member>
95 <member>2005</member>
96 </simplelist>
97 </para>
98 </refsect1>
99 </refentry>