Debian Codegraph @

opcodes/tempo.xml

raw symbols SCIP
1
2 <refentry id="tempo">
3 <indexterm id="IndexTempo"><primary>tempo</primary></indexterm>
4 <refentryinfo><title>Instrument Control:Sensing and Control</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>tempo</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>tempo</refname>
13
14 <refpurpose>
15 Apply tempo control to an uninterpreted score.
16 </refpurpose>
17 </refnamediv>
18
19 <refsect1>
20 <title>Description</title>
21 <para>
22 Apply tempo control to an uninterpreted score.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis><command>tempo</command> ktempo, istartempo</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>istartempo</emphasis> -- initial tempo (in beats per minute). Typically 60.
35 </para>
36 </refsect1>
37
38 <refsect1>
39 <title>Performance</title>
40 <para>
41 <emphasis>ktempo</emphasis> -- The tempo to which the score will be adjusted.
42 </para>
43
44 <para>
45 <emphasis>tempo</emphasis> allows the performance speed of Csound scored events to be controlled from within an orchestra. It operates only in the presence of the Csound <link linkend="FlagsMinusLowerT"><citetitle>-t</citetitle></link> flag. When that flag is set, scored events will be performed from their uninterpreted p2 and p3 (beat) parameters, initially at the given command-line tempo. When a <emphasis>tempo</emphasis> statement is activated in any instrument (<emphasis>ktempo</emphasis> 0.), the operating tempo will be adjusted to <emphasis>ktempo</emphasis> beats per minute. There may be any number of <emphasis>tempo</emphasis> statements in an orchestra, but coincident activation is best avoided.
46 </para>
47 </refsect1>
48
49 <refsect1>
50 <title>Examples</title>
51 <para>
52 Here is an example of the tempo opcode. Remember, it only works if you use the <link linkend="FlagsMinusLowerT"><citetitle>-t</citetitle></link> flag with Csound. The example uses the file <ulink url="examples/tempo.csd"><citetitle>tempo.csd</citetitle></ulink>.
53
54 <example>
55 <title>Example of the tempo opcode.</title>
56
57
58
59 <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>
60 <xi:include href="examples-xml/tempo.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
61 </example>
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <title>See also</title>
67 <para><link linkend="ControlSensing"><citetitle>Sensing and Control: Tempo and Sequencing</citetitle></link></para>
68 </refsect1>
69
70 <refsect1>
71 <title>Credits</title>
72 <para>Example written by &namekevin;.</para>
73 </refsect1>
74 </refentry>