Debian Codegraph @

opcodes/pindex.xml

raw symbols SCIP
1
2 <refentry id="pindex">
3 <indexterm id="IndexPindex"><primary>pindex</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>pindex</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>pindex</refname>
13 <refpurpose>
14 Returns the value of a specified pfield.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 <emphasis>pindex</emphasis> returns the value of a specified pfield.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>ivalue <command>pindex</command> ipfieldIndex</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>ipfieldIndex</emphasis> - pfield number to query.
34 </para>
35 <para>
36 <emphasis>ivalue</emphasis> - value of the pfield.
37 </para>
38 </refsect1>
39
40 <!-- <refsect1>
41 <title>Performance</title>
42
43 </refsect1>-->
44 <refsect1>
45 <title>Examples</title>
46 <para>
47 Here is an example of the pindex opcode. It uses the file <ulink url="examples/pindex.csd"><citetitle>pindex.csd</citetitle></ulink>.
48
49 <example>
50 <title>Example of the pindex opcode.</title>
51 <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>
52 <xi:include href="examples-xml/pindex.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
53 </example>
54 </para>
55 <para>
56 The example will produce the following output:
57 <screen>
58 new alloc for instr 1:
59 WARNING: instr 1 uses 3 p-fields but is given 5
60 p1 = 1.000000
61 p2 = 0.000000
62 p3 = 3.000000
63 p4 = 40.000000
64 p5 = 50.000000
65 instr 1: inum = 5.000
66 B 0.000 .. 1.000 T 1.000 TT 1.000 M: 0.0
67 new alloc for instr 1:
68 WARNING: instr 1 uses 3 p-fields but is given 5
69 p1 = 1.000000
70 p2 = 1.000000
71 p3 = 2.000000
72 p4 = 80.000000
73 p5 = 50.000000
74 instr 1: inum = 5.000
75 B 1.000 .. 2.000 T 2.000 TT 2.000 M: 0.0
76 new alloc for instr 1:
77 WARNING: instr 1 uses 3 p-fields but is given 7
78 p1 = 1.000000
79 p2 = 2.000000
80 p3 = 1.000000
81 p4 = 40.000000
82 p5 = 50.000000
83 p6 = 60.000000
84 p7 = 70.000000
85 instr 1: inum = 7.000
86 </screen>
87 The warnings can be ignored, because the pfields are used indirectly through pindex instead of explicitly through p4, p5, etc.
88 </para>
89 <para>
90 Here is another example of the pindex opcode. It uses the file <ulink url="examples/pindex-2.csd"><citetitle>pindex-2.csd</citetitle></ulink>.
91
92 <example>
93 <title>Second example of the pindex opcode.</title>
94 <xi:include href="examples-xml/pindex-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
95 </example>
96 </para>
97 <para>
98 The example will produce the following output:
99 <screen>
100 WARNING: instr 1 uses 3 p-fields but is given 8
101 B 0.000 .. 2.000 T 2.000 TT 2.000 M: 0.49966 0.49966
102 WARNING: instr 1 uses 3 p-fields but is given 10
103 B 2.000 .. 4.000 T 4.000 TT 4.000 M: 0.50000 0.50000
104 WARNING: instr 1 uses 3 p-fields but is given 10
105 B 4.000 .. 6.000 T 6.000 TT 6.000 M: 0.49943 0.49943
106 WARNING: instr 1 uses 3 p-fields but is given 6
107 B 6.000 .. 8.000 T 8.000 TT 8.000 M: 0.00000 0.00000
108 WARNING: instr 1 uses 3 p-fields but is given 20
109 B 8.000 .. 18.000 T 18.000 TT 18.000 M: 0.49994 0.49994
110 </screen>
111 </para>
112 </refsect1>
113
114 <refsect1>
115 <title>See also</title>
116 <para><link linkend="ControlSensing"><citetitle>Sensing and Control: Score control</citetitle></link></para>
117 </refsect1>
118
119 <refsect1>
120 <title>Credits</title>
121 <para>Example by: Anthony Kozar</para>
122 <para>Dec. 2006</para>
123 </refsect1>
124 </refentry>