Debian Codegraph @

scoregens/t.xml

raw symbols SCIP
1
2 <refentry id="t">
3 <indexterm id="IndexTStatement"><primary>t statement</primary></indexterm>
4 <indexterm id="IndexTempoStatement"><primary>tempo statement</primary></indexterm>
5 <refmeta>
6 <refentrytitle>t Statement (Tempo Statement)</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>t</refname>
11 <refpurpose>
12 Sets the tempo.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 This statement sets the tempo and specifies the accelerations and decelerations for the current section. This is done by converting beats into seconds.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>t</command> p1 p2 p3 p4 ... (unlimited)</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>p1</emphasis> -- Must be zero.
32 </para>
33
34 <para>
35 <emphasis>p2</emphasis> -- Initial tempo on beats per minute.
36 </para>
37
38 <para>
39 <emphasis>p3, p5, p7,...</emphasis> -- Times in beats (in non-decreasing order).
40 </para>
41
42 <para>
43 <emphasis>p4, p6, p8,...</emphasis> -- Tempi for the referenced beat times.
44 </para>
45 </refsect1>
46
47 <refsect1>
48 <title>Performance</title>
49 <para>
50 Time and Tempo-for-that-time are given as ordered couples that define points on a &quot;tempo vs. time&quot; graph. (The time-axis here is in beats so is not necessarily linear.) The beat-rate of a Section can be thought of as a movement from point to point on that graph: motion between two points of equal height signifies constant tempo, while motion between two points of unequal height will cause an accelarando or ritardando accordingly. The graph can contain discontinuities: two points given equal times but different tempi will cause an immediate tempo change.
51 </para>
52
53 <para>
54 Motion between different tempos over non-zero time is inverse linear. That is, an accelerando between two tempos M1 and M2 proceeds by linear interpolation of the single-beat durations from 60/M1 to 60/M2.
55 </para>
56
57 <para>
58 The first tempo given must be for beat 0.
59 </para>
60
61 <para>
62 A tempo, once assigned, will remain in effect from that time-point unless influenced by a succeeding tempo, i.e. the last specified tempo will be held to the end of the section.
63 </para>
64
65 <para>
66 A <emphasis>t statement</emphasis> applies only to the score section in which it appears. Only one <emphasis>t statement</emphasis> is meaningful in a section; it can be placed anywhere within that section. If a score section contains no <emphasis>t statement</emphasis>, then beats are interpreted as seconds (i.e. with an implicit <emphasis>t 0 60</emphasis> statement).
67 </para>
68
69 <para>
70 N.B. If the CSound command includes a <link linkend="FlagsMinusLowerT"><citetitle>-t flag</citetitle></link>, the interpreted tempo of all score <emphasis>t statements</emphasis> will be overridden by the command-line tempo.
71 </para>
72 </refsect1>
73
74 <refsect1>
75 <title>Examples</title>
76 <para>
77 Here is an example of the t statement. It uses the file <ulink url="examples/t.csd"><citetitle>t.csd</citetitle></ulink>.
78 <example>
79 <title>Example of the t statement.</title>
80 <xi:include href="examples-xml/t.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
81 </example>
82 </para>
83 </refsect1>
84
85 <refsect1>
86 <title>See Also</title>
87 <para>
88 <link linkend="ScoreStatements"><citetitle>Score Statements</citetitle></link>
89 </para>
90 </refsect1>
91
92 </refentry>
93