| 1 | |
| 2 | <refentry id="b"> |
| 3 | <indexterm id="IndexbStatement"><primary>b statement</primary></indexterm> |
| 4 | <refmeta> |
| 5 | <refentrytitle>b Statement</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>b Statement</refname> |
| 10 | <refpurpose> |
| 11 | This statement resets the clock. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para> |
| 18 | This statement resets the clock. |
| 19 | </para> |
| 20 | </refsect1> |
| 21 | |
| 22 | <refsect1> |
| 23 | <title>Syntax</title> |
| 24 | <synopsis><command>b</command> p1</synopsis> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Performance</title> |
| 29 | <para> |
| 30 | <emphasis>p1</emphasis> -- Specifies how the clock is to be set. |
| 31 | </para> |
| 32 | |
| 33 | <refsect2> |
| 34 | <title>Special Considerations</title> |
| 35 | <para> |
| 36 | p1 is the number of beats by which p2 values of subsequent <emphasis>i statements</emphasis> are modified. If p1 is positive, the clock is reset forward, and subsequent notes appear later, the number of beats specified by p1 being added to the note's p2. If p1 is negative, the clock is reset backward, and subsequent notes appear earlier, the number of beats specified by p1 being subtracted from the note's p2. There is no cumulative affect. The clock is reset with each <emphasis>b statement</emphasis>. If p1 = 0, the clock is returned to its original position, and subsequent notes appear at their specified p2. |
| 37 | </para> |
| 38 | </refsect2> |
| 39 | </refsect1> |
| 40 | |
| 41 | <refsect1> |
| 42 | <title>Examples</title> |
| 43 | <para> |
| 44 | <informalexample> |
| 45 | <programlisting> |
| 46 | <emphasis role="stamnt">i</emphasis>1 0 2 |
| 47 | <emphasis role="stamnt">i</emphasis>1 10 888 |
| 48 | |
| 49 | <emphasis role="stamnt">b</emphasis> 5 <emphasis role="comment">; set the clock "forward"</emphasis> |
| 50 | <emphasis role="stamnt">i</emphasis>2 1 1 440 <emphasis role="comment">; start time = 6</emphasis> |
| 51 | <emphasis role="stamnt">i</emphasis>2 2 1 480 <emphasis role="comment">; start time = 7</emphasis> |
| 52 | |
| 53 | <emphasis role="stamnt">b</emphasis> -1 <emphasis role="comment">; set the clock back</emphasis> |
| 54 | <emphasis role="stamnt">i</emphasis>3 3 2 3.1415 <emphasis role="comment">; start time = 2</emphasis> |
| 55 | <emphasis role="stamnt">i</emphasis>3 5.5 1 1.1111 <emphasis role="comment">; start time = 4.5</emphasis> |
| 56 | |
| 57 | <emphasis role="stamnt">b</emphasis> 0 <emphasis role="comment">; reset clock to normal</emphasis> |
| 58 | <emphasis role="stamnt">i</emphasis>4 10 200 7 <emphasis role="comment">; start time = 10</emphasis></programlisting> |
| 59 | </informalexample> |
| 60 | </para> |
| 61 | </refsect1> |
| 62 | |
| 63 | <refsect1> |
| 64 | <title>See Also</title> |
| 65 | <para> |
| 66 | <link linkend="ScoreStatements"><citetitle>Score Statements</citetitle></link> |
| 67 | </para> |
| 68 | </refsect1> |
| 69 | |
| 70 | <refsect1> |
| 71 | <title>Credits</title> |
| 72 | <para> |
| 73 | Explanation suggested and example provided by Paul Winkler. (Csound Version 4.07) |
| 74 | </para> |
| 75 | </refsect1> |
| 76 | </refentry> |