| 1 | |
| 2 | <refentry id="n"> |
| 3 | <indexterm id="IndexNStatement"><primary>n statement</primary></indexterm> |
| 4 | <refmeta> |
| 5 | <refentrytitle>n Statement</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>n</refname> |
| 10 | <refpurpose> |
| 11 | Repeats a section. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para> |
| 18 | Repeats a section from the referenced <link linkend="m"><citetitle>m statement</citetitle></link>. |
| 19 | </para> |
| 20 | </refsect1> |
| 21 | |
| 22 | <refsect1> |
| 23 | <title>Syntax</title> |
| 24 | <synopsis><command>n</command> p1</synopsis> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Initialization</title> |
| 29 | <para> |
| 30 | <emphasis>p1</emphasis> -- Name of mark to repeat. |
| 31 | </para> |
| 32 | </refsect1> |
| 33 | |
| 34 | <refsect1> |
| 35 | <title>Performance</title> |
| 36 | <para> |
| 37 | This can be helpful in setting a up verse and chorus structure in the score. Names may contain letters and numerals. |
| 38 | </para> |
| 39 | <para> |
| 40 | For example, the following score: |
| 41 | </para> |
| 42 | <programlisting> |
| 43 | <emphasis role="stamnt">m</emphasis> foo |
| 44 | <emphasis role="stamnt">i</emphasis>1 0 1 |
| 45 | <emphasis role="stamnt">i</emphasis>1 1 1.5 |
| 46 | <emphasis role="stamnt">i</emphasis>1 2.5 2 |
| 47 | <emphasis role="stamnt">s</emphasis> |
| 48 | <emphasis role="stamnt">i</emphasis>1 0 10 |
| 49 | <emphasis role="stamnt">s</emphasis> |
| 50 | <emphasis role="stamnt">n</emphasis> foo |
| 51 | <emphasis role="stamnt">e</emphasis> |
| 52 | </programlisting> |
| 53 | <para> |
| 54 | Will be passed from the preprocessor to Csound as: |
| 55 | </para> |
| 56 | <programlisting> |
| 57 | <emphasis role="stamnt">i</emphasis>1 0 1 |
| 58 | <emphasis role="stamnt">i</emphasis>1 1 1.5 |
| 59 | <emphasis role="stamnt">i</emphasis>1 2.5 2 |
| 60 | <emphasis role="stamnt">s</emphasis> |
| 61 | <emphasis role="stamnt">i</emphasis>1 0 10 |
| 62 | <emphasis role="stamnt">s</emphasis> |
| 63 | <emphasis role="comment">;; this is named section repeated</emphasis> |
| 64 | <emphasis role="stamnt">i</emphasis>1 0 1 |
| 65 | <emphasis role="stamnt">i</emphasis>1 1 1.5 |
| 66 | <emphasis role="stamnt">i</emphasis>1 2.5 2 |
| 67 | <emphasis role="stamnt">s</emphasis> |
| 68 | <emphasis role="comment">;; end of named section</emphasis> |
| 69 | <emphasis role="stamnt">e</emphasis> |
| 70 | </programlisting> |
| 71 | </refsect1> |
| 72 | |
| 73 | <refsect1> |
| 74 | <title>Examples</title> |
| 75 | <para> |
| 76 | See the example for the <link linkend="m"><citetitle>m statement</citetitle></link>. |
| 77 | </para> |
| 78 | </refsect1> |
| 79 | |
| 80 | <refsect1> |
| 81 | <title>See Also</title> |
| 82 | <para> |
| 83 | <link linkend="ScoreStatements"><citetitle>Score Statements</citetitle></link> |
| 84 | </para> |
| 85 | </refsect1> |
| 86 | |
| 87 | <refsect1> |
| 88 | <title>Credits</title> |
| 89 | <para> |
| 90 | <simplelist> |
| 91 | <member>Author: &namejohn;</member> |
| 92 | <member>University of Bath/Codemist Ltd.</member> |
| 93 | <member>Bath, UK</member> |
| 94 | <member>April 1998</member> |
| 95 | </simplelist> |
| 96 | </para> |
| 97 | |
| 98 | <para>New in Csound version 3.48</para> |
| 99 | </refsect1> |
| 100 | </refentry> |