Debian Codegraph @

opcodes/pcount.xml

raw symbols SCIP
1
2 <refentry id="pcount">
3 <indexterm id="IndexPcount"><primary>pcount</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>pcount</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>pcount</refname>
13 <refpurpose>
14 Returns the number of pfields belonging to a note event.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 <emphasis>pcount</emphasis> returns the number of pfields belonging to a note event.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>icount <command>pcount</command></synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>icount</emphasis> - stores the number of pfields for the current note event.
34 </para>
35 <note>
36 <para>
37 Note that the reported number of pfields is not necessarily
38 what is explicitly written in the score, but the pfields available to the instrument through mechanisms like <link linkend="ScoreCarry"><citetitle>pfield carry</citetitle></link>.
39 </para>
40 </note>
41 </refsect1>
42
43 <!-- <refsect1>
44 <title>Performance</title>
45
46 </refsect1>-->
47 <refsect1>
48 <title>Examples</title>
49 <para>
50 Here is an example of the pcount opcode. It uses the file <ulink url="examples/pcount.csd"><citetitle>pcount.csd</citetitle></ulink>.
51
52 <example>
53 <title>Example of the pcount opcode.</title>
54 <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>
55 <xi:include href="examples-xml/pcount.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
56 </example>
57 </para>
58 <para>
59 The example will produce the following output:
60 <screen>
61 WARNING: instr 1 uses 3 p-fields but is given 8
62 B 0.000 .. 2.000 T 2.000 TT 2.000 M: 0.49966 0.49966
63 WARNING: instr 1 uses 3 p-fields but is given 10
64 B 2.000 .. 4.000 T 4.000 TT 4.000 M: 0.50000 0.50000
65 WARNING: instr 1 uses 3 p-fields but is given 10
66 B 4.000 .. 6.000 T 6.000 TT 6.000 M: 0.49943 0.49943
67 WARNING: instr 1 uses 3 p-fields but is given 6
68 B 6.000 .. 8.000 T 8.000 TT 8.000 M: 0.00000 0.00000
69 WARNING: instr 1 uses 3 p-fields but is given 20
70 B 8.000 .. 18.000 T 18.000 TT 18.000 M: 0.49994 0.49994
71 </screen>
72 The warnings occur because pfields are not used explicitly by the instrument.
73 </para>
74 </refsect1>
75
76 <refsect1>
77 <title>See also</title>
78 <para><link linkend="ControlSensing"><citetitle>Sensing and Control: Score control</citetitle></link></para>
79 </refsect1>
80
81 <refsect1>
82 <title>Credits</title>
83 <para>Example by: Anthony Kozar</para>
84 <para>Dec. 2006</para>
85 </refsect1>
86 </refentry>