Debian Codegraph @

opcodes/timeinsts.xml

raw symbols SCIP
1
2 <refentry id="timeinsts">
3 <indexterm id="IndexTimeinsts"><primary>timeinsts</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Time Reading</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>timeinsts</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>timeinsts</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 an instance of an instrument.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>kres <command>timeinsts</command></synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Performance</title>
33 <para>
34 Time in seconds is available with <emphasis>timeinsts</emphasis>. This would return 0.5 after half a second.
35 </para>
36
37 <para>
38 <emphasis>timeinsts</emphasis> produces a k-rate variable for output. There are no input parameters.
39 </para>
40
41 <para>
42 <emphasis>timeinsts</emphasis> is similar to <link linkend="times"><citetitle>times</citetitle></link> except it returns the time since the start of this instance of the instrument.
43 </para>
44 </refsect1>
45
46 <refsect1>
47 <title>Examples</title>
48 <para>
49 Here is an example of the timeinsts opcode. It uses the file <ulink url="examples/timeinsts.csd"><citetitle>timeinsts.csd</citetitle></ulink>.
50 <example>
51 <title>Example of the timeinsts opcode.</title>
52 <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>
53 <xi:include href="examples-xml/timeinsts.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
54 </example>
55 </para>
56 </refsect1>
57
58 <refsect1>
59 <title>See also</title>
60 <para><link linkend="ControlTimeread"><citetitle>Time Reading</citetitle></link></para>
61 </refsect1>
62
63 <refsect1>
64 <title>Credits</title>
65 <para>
66 <simplelist>
67 <member>Author: Robin Whittle</member>
68 <member>Australia</member>
69 <member>May 1997</member>
70 </simplelist>
71 </para>
72 </refsect1>
73 </refentry>