Debian Codegraph @

scoregens/r.xml

raw symbols SCIP
1
2 <refentry id="r">
3 <indexterm id="IndexRStatement"><primary>r statement</primary></indexterm>
4 <indexterm id="IndexRepeatStatement"><primary>repeat statement</primary></indexterm>
5 <refmeta>
6 <refentrytitle>r Statement (Repeat Statement)</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>r</refname>
11 <refpurpose>
12 Starts a repeated section.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Starts a repeated section, which lasts until the next <emphasis>s</emphasis>, <emphasis>r</emphasis> or <emphasis>e statement</emphasis>.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>r</command> p1 p2</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>p1</emphasis> -- Number of times to repeat the section.
32 </para>
33
34 <para>
35 <emphasis>p2</emphasis> -- Macro(name) to advance with each repetition (optional).
36 </para>
37 </refsect1>
38
39 <refsect1>
40 <title>Performance</title>
41 <para>
42 In order that the sections may be more flexible than simple editing, the macro named p2 is given the value of 1 for the first time through the section, 2 for the second, and 3 for the third. This can be used to change p-field parameters, or ignored.
43 </para>
44
45 <warning>
46 <title>Warning</title>
47 <para>
48 Because of serious problems of interaction with macro expansion, sections must start and end in the same file, and not in a macro.
49 </para>
50 </warning>
51 </refsect1>
52
53 <refsect1>
54 <title>Examples</title>
55 <para>
56 Here is an example of the r statement. It uses the file <ulink url="examples/r.csd"><citetitle>r.csd</citetitle></ulink>.
57
58 <example>
59 <title>Example of the r statement.</title>
60
61 <xi:include href="examples-xml/r.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>See Also</title>
68 <para>
69 <link linkend="ScoreStatements"><citetitle>Score Statements</citetitle></link>
70 </para>
71 </refsect1>
72
73 <refsect1>
74 <title>Credits</title>
75 <para>
76 <simplelist>
77 <member>Author: &namejohn;</member>
78 <member>University of Bath/Codemist Ltd.</member>
79 <member>Bath, UK</member>
80 <member>April, 1998</member>
81 </simplelist>
82 </para>
83
84 <para>New in Csound version 3.48</para>
85 <para>Example written by &namekevin;</para>
86 </refsect1>
87 </refentry>