| 1 | |
| 2 | <refentry id="OSCbundle"> |
| 3 | <indexterm id="IndexOSCbundle"><primary>OSCbundle</primary></indexterm> |
| 4 | <refentryinfo><title>OSC</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>OSCbundle</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>OSCbundle</refname> |
| 11 | <refpurpose> |
| 12 | Sends data to other processes using the OSC protocol by packing |
| 13 | messages in a bundle. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | Uses the OSC protocol to send one or more messages to other OSC listening |
| 21 | processes in a single bundle. Unlike OSCsend, it can be used to |
| 22 | send multiple messages at the same time, but only standard OSC numeric types |
| 23 | are allowed. |
| 24 | </para> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Syntax</title> |
| 29 | <synopsis><command>OSCbundle</command> kwhen, ihost, iport, |
| 30 | Sdest[], Stype[],kArgs[][][,isize]</synopsis> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Initialization</title> |
| 35 | <para> |
| 36 | <emphasis>ihost</emphasis> |
| 37 | -- a string that is the intended host computer domain name. An |
| 38 | empty string is interpreted as the current computer. |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | <emphasis>iport</emphasis> |
| 43 | -- the number of the port that is used for the communication. |
| 44 | </para> |
| 45 | |
| 46 | <para> |
| 47 | <emphasis>isize</emphasis> |
| 48 | -- maximum packet size in bytes, defaults to 65536. |
| 49 | </para> |
| 50 | </refsect1> |
| 51 | |
| 52 | <refsect1> |
| 53 | <title>Performance</title> |
| 54 | <para> |
| 55 | <emphasis>kwhen</emphasis> -- a bundle of messages is sent whenever this |
| 56 | value changes. A message will always be sent on the first call. |
| 57 | </para> |
| 58 | |
| 59 | <para> |
| 60 | <emphasis> Sdest[]</emphasis> |
| 61 | -- an array of strings containing the destination address for |
| 62 | each message. Length must agree with Stype[]. |
| 63 | </para> |
| 64 | |
| 65 | <para> |
| 66 | <emphasis>Stype[]</emphasis> |
| 67 | -- an array of strings containing the types for each |
| 68 | message. Only numeric types ('i' for integers and 'f' for |
| 69 | floats) are supported. Length must agree with Sdest[]. |
| 70 | </para> |
| 71 | |
| 72 | <para> |
| 73 | <emphasis>kArg[][]</emphasis> -- a two-dimensional array |
| 74 | containing the arguments for each message. Its dimension 1 |
| 75 | (number of rows) must agree with Sdest[] and Stype[]. Its |
| 76 | dimension 2 (number of columns) must be large enough to |
| 77 | accommodate the message with the largest number of |
| 78 | arguments. Each row should contain the arguments for the types |
| 79 | of each message. If a row contains fewer arguments, any |
| 80 | remaining data items are filled with zeros. Arguments in excess |
| 81 | of what each type string requires are ignored. |
| 82 | </para> |
| 83 | |
| 84 | </refsect1> |
| 85 | |
| 86 | <refsect1> |
| 87 | <title>Example</title> |
| 88 | <para> |
| 89 | Here is an example of the OSCBundle opcode. It uses the file <ulink url="examples/oscbundle.csd"><citetitle>oscbundle.csd</citetitle></ulink>. |
| 90 | <example> |
| 91 | <title>Example of the OSCbundle opcode.</title> |
| 92 | <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> |
| 93 | <xi:include href="examples-xml/oscbundle.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 94 | </example> |
| 95 | </para> |
| 96 | </refsect1> |
| 97 | |
| 98 | <refsect1> |
| 99 | <title>See also</title> |
| 100 | <para><link linkend="OSC"><citetitle>OSC (Open Sound Control)</citetitle></link></para> |
| 101 | <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> |
| 102 | </refsect1> |
| 103 | |
| 104 | <refsect1> |
| 105 | <title>Credits</title> |
| 106 | <para> |
| 107 | <simplelist> |
| 108 | <member>Author: &namevictor;</member> |
| 109 | <member>2018</member> |
| 110 | </simplelist> |
| 111 | </para> |
| 112 | </refsect1> |
| 113 | </refentry> |