Debian Codegraph @

opcodes/times.xml

raw symbols SCIP
1
2 <refentry id="times">
3 <indexterm id="IndexTimes"><primary>times</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Time Reading</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>times</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>times</refname>
13
14 <refpurpose>
15 Read absolute time in seconds.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Read absolute time, in seconds, since the start of the performance.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>ires <command>times</command></synopsis>
29
30 <synopsis>kres <command>times</command></synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Performance</title>
35 <para>
36 Time in seconds is available with <emphasis>times</emphasis>. This would return 0.5 after half a second.
37 </para>
38
39 <para>
40 <emphasis>times</emphasis> can both produce a k-rate variable for output. There are no input parameters.
41 </para>
42
43 <para>
44 <emphasis>times</emphasis> can also operate at the start of the instance of the instrument. It produces an i-rate variable (starting with <emphasis>i</emphasis> or <emphasis>gi</emphasis>) as its output.
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Examples</title>
50 <para>
51 Here is an example of the times opcode. It uses the file <ulink url="examples/times_complex.csd"><citetitle>times_complex.csd</citetitle></ulink>.
52
53 <example>
54 <title>Example of the times opcode.</title>
55
56
57
58 <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>
59 <xi:include href="examples-xml/times_complex.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
60 </example>
61
62 Its output should include lines like these:
63 <screen>
64 new alloc for instr again:
65 instance = 1, start = 0.000000, duration = 0.650439
66 new alloc for instr fx_processor:
67 instance = 2, start = 0.650884, duration = 0.411043
68 new alloc for instr fx_processor:
69 instance = 3, start = 1.061587, duration = 0.231085
70 new alloc for instr fx_processor:
71 instance = 4, start = 1.292336, duration = 0.543473
72 new alloc for instr fx_processor:
73 instance = 5, start = 1.835828, duration = 1.777097
74 </screen>
75 </para>
76 </refsect1>
77
78 <refsect1>
79 <title>See also</title>
80 <para><link linkend="ControlTimeread"><citetitle>Time Reading</citetitle></link></para>
81 </refsect1>
82
83 <refsect1>
84 <title>Credits</title>
85 <para>
86 <simplelist>
87 <member>Author: Robin Whittle</member>
88 <member>Australia</member>
89 <member>May 1997</member>
90 </simplelist>
91 </para>
92 </refsect1>
93 </refentry>