| 1 | |
| 2 | <refentry id="ihold"> |
| 3 | <indexterm id="IndexIhold"><primary>ihold</primary></indexterm> |
| 4 | <refentryinfo><title>Instrument Control:Duration Control</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>ihold</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>ihold</refname> |
| 13 | |
| 14 | <refpurpose> |
| 15 | Creates a held note. |
| 16 | </refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | <refsect1> |
| 20 | <title>Description</title> |
| 21 | <para> |
| 22 | Causes a finite-duration note to become a <quote>held</quote> note |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis><command>ihold</command></synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Performance</title> |
| 33 | <para> |
| 34 | <emphasis>ihold</emphasis> -- this i-time statement causes a finite-duration note to become a <quote>held</quote> note. It thus has the same effect as a negative p3 ( see score <link linkend="i"><citetitle>i Statement</citetitle></link>), except that p3 here remains positive and the instrument reclassifies itself to being held indefinitely. The note can be turned off explicitly with <emphasis>turnoff</emphasis>, or its space taken over by another note of the same instrument number (i.e. it is tied into that note). Effective at i-time only; no-op during a <emphasis>reinit</emphasis> pass. |
| 35 | </para> |
| 36 | </refsect1> |
| 37 | |
| 38 | <refsect1> |
| 39 | <title>Examples</title> |
| 40 | <para> |
| 41 | Here is an example of the ihold opcode. It uses the file <ulink url="examples/ihold.csd"><citetitle>ihold.csd</citetitle></ulink>. |
| 42 | |
| 43 | <example> |
| 44 | <title>Example of the ihold opcode.</title> |
| 45 | |
| 46 | |
| 47 | |
| 48 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 49 | <xi:include href="examples-xml/ihold.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 50 | </example> |
| 51 | </para> |
| 52 | </refsect1> |
| 53 | |
| 54 | <refsect1> |
| 55 | <title>See also</title> |
| 56 | <para><link linkend="ControlDurctl"><citetitle>Duration Control Statements</citetitle></link></para> |
| 57 | </refsect1> |
| 58 | |
| 59 | <refsect1> |
| 60 | <title>Credits</title> |
| 61 | <para>Example written by &namekevin;.</para> |
| 62 | </refsect1> |
| 63 | </refentry> |