| 1 | |
| 2 | <refentry id="q"> |
| 3 | <indexterm id="IndexQStatement"><primary>q statement</primary></indexterm> |
| 4 | <refmeta> |
| 5 | <refentrytitle>q Statement</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>q statement</refname> |
| 10 | <refpurpose> |
| 11 | This statement may be used to quiet an instrument. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para> |
| 18 | This statement may be used to quiet an instrument. |
| 19 | </para> |
| 20 | </refsect1> |
| 21 | |
| 22 | <refsect1> |
| 23 | <title>Syntax</title> |
| 24 | <synopsis><command>q</command> p1 p2 p3</synopsis> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Performance</title> |
| 29 | <para> |
| 30 | <emphasis>p1</emphasis> -- Instrument number to mute/unmute. |
| 31 | </para> |
| 32 | |
| 33 | <para> |
| 34 | <emphasis>p2</emphasis> -- Action time in beats. |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | <emphasis>p3</emphasis> -- determines whether the instrument is muted/unmuted. The value of 0 means the instrument is muted, other values mean it is unmuted. |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | Note that this does not affect instruments that are already running at time <emphasis>p2</emphasis>. It blocks any attempt to start one afterwards. |
| 43 | </para> |
| 44 | </refsect1> |
| 45 | |
| 46 | <refsect1> |
| 47 | <title>Examples</title> |
| 48 | <para> |
| 49 | Here is an example of the q statement. It uses the file <ulink url="examples/q.csd"><citetitle>q.csd</citetitle></ulink>. |
| 50 | <example> |
| 51 | <title>Example of the q statement.</title> |
| 52 | <xi:include href="examples-xml/q.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 53 | </example> |
| 54 | </para> |
| 55 | </refsect1> |
| 56 | |
| 57 | <refsect1> |
| 58 | <title>See Also</title> |
| 59 | <para> |
| 60 | <link linkend="ScoreStatements"><citetitle>Score Statements</citetitle></link> |
| 61 | </para> |
| 62 | </refsect1> |
| 63 | |
| 64 | </refentry> |