Debian Codegraph @

opcodes/tempoval.xml

raw symbols SCIP
1
2 <refentry id="tempoval">
3 <indexterm id="IndexTempoval"><primary>tempoval</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>tempoval</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>tempoval</refname>
13 <refpurpose>
14 Reads the current value of the tempo.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Reads the current value of the tempo.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>kres <command>tempoval</command></synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Performance</title>
32 <para>
33 <emphasis>kres</emphasis> -- the value of the tempo. If you use
34 a positive value with the <link
35 linkend="FlagsMinusLowerT"><citetitle>-t command-line
36 flag</citetitle></link>, <emphasis>tempoval</emphasis> returns
37 the percentage increase/decrease from the original tempo of 60
38 beats per minute. If you do not, its value will be 60 (for 60 beats per minute).
39 </para>
40 </refsect1>
41
42 <refsect1>
43 <title>Examples</title>
44 <para>
45 Here is an example of the tempoval opcode. Remember, it only works if you use the <link linkend="FlagsMinusLowerT"><citetitle>-t</citetitle></link> flag with Csound. It uses the file <ulink url="examples/tempoval.csd"><citetitle>tempoval.csd</citetitle></ulink>.
46
47 <example>
48 <title>Example of the tempoval opcode.</title>
49
50
51
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/tempoval.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
54 </example>
55
56 Since 120 beats per minute is a 50&percnt; increase over the original 60 beats per minute, its output should include lines like:
57 <screen>
58 kval = 0.500000
59 </screen>
60 </para>
61 </refsect1>
62
63 <refsect1>
64 <title>See also</title>
65 <para><link linkend="ControlSensing"><citetitle>Sensing and Control: Tempo and Sequencing</citetitle></link></para>
66 </refsect1>
67
68 <refsect1>
69 <title>Credits</title>
70 <para>Example written by &namekevin;.</para>
71 <para>New in version 4.15</para>
72 <para>December 2002. Thanks to Drake Wilson for pointing out unclear documentation.</para>
73 </refsect1>
74 </refentry>