| 1 | |
| 2 | <refentry id="limit1"> |
| 3 | <indexterm id="IndexLimit1"><primary>limit1</primary></indexterm> |
| 4 | <refentryinfo><title>Mathematical Operations:Arrays</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>limit1</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>limit1</refname> |
| 11 | <refpurpose> |
| 12 | Limiting function |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Limits the value of an argument to the range [0,1]. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>ires[] <command>limit1</command> iarg</synopsis> |
| 26 | <synopsis>kres[] <command>limit1</command> karg</synopsis> |
| 27 | </refsect1> |
| 28 | |
| 29 | <refsect1> |
| 30 | <title>Initialization</title> |
| 31 | <para> |
| 32 | <emphasis>iarg[] </emphasis> -- the argument. |
| 33 | </para> |
| 34 | </refsect1> |
| 35 | |
| 36 | <refsect1> |
| 37 | <title>Performance</title> |
| 38 | <para> |
| 39 | <emphasis>karg[] </emphasis> -- the argument. |
| 40 | </para> |
| 41 | </refsect1> |
| 42 | |
| 43 | <refsect1> |
| 44 | <title>Examples</title> |
| 45 | <para> |
| 46 | Here is an example of the limit1 opcode. It uses the file <ulink url="examples/limit1.csd"><citetitle>limit1.csd</citetitle></ulink>. |
| 47 | <example> |
| 48 | <title>Example of the limit1 opcode.</title> |
| 49 | <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> |
| 50 | <xi:include href="examples-xml/limit1.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 51 | </example> |
| 52 | </para> |
| 53 | </refsect1> |
| 54 | |
| 55 | <refsect1> |
| 56 | <title>See also</title> |
| 57 | <para><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para> |
| 58 | </refsect1> |
| 59 | |
| 60 | <refsect1> |
| 61 | <title>Credits</title> |
| 62 | <para> |
| 63 | <simplelist> |
| 64 | <member>Author: Victor Lazzarini</member> |
| 65 | <member> 2017 </member> |
| 66 | </simplelist> |
| 67 | </para> |
| 68 | </refsect1> |
| 69 | </refentry> |