Debian Codegraph @

opcodes/p5gconnect.xml

raw symbols SCIP
1
2 <refentry id="p5gconnect">
3 <indexterm id="Indexp5gconnect"><primary>p5gconnect</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>p5gconnect</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>p5gconnect</refname>
11 <refpurpose>
12 Reads data from a P5 Glove controller.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>Plugin opcode in p5g. This opcode is part of the plugin repository and has to be installed separately.
19 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
20 <para>
21 Opens and at control-rate polls a P5 Glove controller.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>p5gconnect</command></synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 The opcode locates a P5 Glove attached to the computer by USB,
34 and starts a listener thread to poll the device.
35 </para>
36
37 </refsect1>
38
39 <refsect1>
40 <title>Performance</title>
41 <para>
42 Every control cycle the glove is polled for its position, and
43 finger and button states. These values are read by the
44 <emphasis>p5gdata</emphasis> opcode.
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Example</title>
50 <para>
51 Here is an example of the p5g opcodes. It uses the file <ulink url="examples/p5g.csd"><citetitle>p5g.csd</citetitle></ulink>.
52
53 <example>
54 <title>Example of the p5g opcodes.</title>
55 <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>
56 <xi:include href="examples-xml/p5g.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
57 </example>
58 </para>
59 </refsect1>
60
61 <refsect1>
62 <title>See Also</title>
63 <para><link linkend="nonMIDIdevices"><citetitle>non-MIDI Devices</citetitle></link></para>
64 </refsect1>
65
66 <refsect1>
67 <title>Credits</title>
68 <para>
69 <simplelist>
70 <member>Author: &namejohn;</member>
71 <member>Codemist Ltd</member>
72 <member>2009</member>
73 </simplelist>
74 </para>
75 <para>New in version 5.12</para>
76 </refsect1>
77 </refentry>