Debian Codegraph @

scoregens/v.xml

raw symbols SCIP
1
2 <refentry id="v">
3 <indexterm id="IndexVStatement"><primary>v statement</primary></indexterm>
4 <refmeta>
5 <refentrytitle>v Statement</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>v</refname>
10 <refpurpose>
11 Provides for locally variable time warping of score events.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 The <emphasis>v statement</emphasis> provides for locally variable time warping of score events.
19 </para>
20 </refsect1>
21
22 <refsect1>
23 <title>Syntax</title>
24 <synopsis><command>v</command> p1</synopsis>
25 </refsect1>
26
27 <refsect1>
28 <title>Initialization</title>
29 <para>
30 <command>p1</command> -- Time warp factor (must be positive).
31 </para>
32 </refsect1>
33
34 <refsect1>
35 <title>Performance</title>
36 <para>
37 The <emphasis>v statement</emphasis> takes effect with the following <link linkend="i"><citetitle>i statement</citetitle></link>, and remains in effect until the next <link linkend="v"><citetitle>v statement</citetitle></link>, <link linkend="s"><citetitle>s statement</citetitle></link>, or <link linkend="e"><citetitle>e statement</citetitle></link>.
38 </para>
39 </refsect1>
40
41 <refsect1>
42 <title>Examples</title>
43 <para>
44 The value of p1 is used as a multiplier for the start times (p2) of subsequent <link linkend="i"><citetitle>i statements</citetitle></link>.
45 </para>
46
47 <para>
48 <informalexample>
49 <programlisting>
50 <emphasis role="stamnt">i</emphasis>1 0 1 <emphasis role="comment">; note1</emphasis>
51 <emphasis role="stamnt">v</emphasis>2
52 <emphasis role="stamnt">i</emphasis>1 1 1 <emphasis role="comment">; note2</emphasis></programlisting>
53 </informalexample>
54
55 In this example, the second note occurs two beats after the first note, and is twice as long.
56 </para>
57
58 <para>
59 Although the <emphasis>v statement</emphasis> is similar to the <link linkend="t"><citetitle>t statement</citetitle></link>, the <emphasis>v statement</emphasis> is local in operation. That is, <emphasis>v</emphasis> affects only the following notes, and its effect may be cancelled or changed by another <emphasis>v statement</emphasis>.
60 </para>
61
62 <para>
63 Carried values are unaffected by the <emphasis>v statement</emphasis> (see <link linkend="ScoreCarry"><citetitle>Carry</citetitle></link>).
64 </para>
65
66 <para>
67 <informalexample>
68 <programlisting>
69 <emphasis role="stamnt">i</emphasis>1 0 1
70 <emphasis role="stamnt">v</emphasis>2
71 <emphasis role="stamnt">i</emphasis>. + .
72 <emphasis role="stamnt">i</emphasis>. . .</programlisting>
73 </informalexample>
74
75 In this example, the <emphasis>v statement</emphasis> has no effect.
76 </para>
77 </refsect1>
78
79 <refsect1>
80 <title>Examples</title>
81 <para>
82 Here is an example of the v statement. It uses the file <ulink url="examples/v.csd"><citetitle>v.csd</citetitle></ulink>.
83 <example>
84 <title>Example of the v statement.</title>
85 <xi:include href="examples-xml/v.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
86 </example>
87 In this example, note3 and note5 occur simultaneously, while note4 actually occurs before note3, that is, at its original place. Durations are unaffected.
88 </para>
89 </refsect1>
90
91 <refsect1>
92 <title>See Also</title>
93 <para>
94 <link linkend="ScoreStatements"><citetitle>Score Statements</citetitle></link>
95 </para>
96 </refsect1>
97
98 </refentry>