| 1 | |
| 2 | <refentry id="inch"> |
| 3 | <indexterm id="IndexInch"><primary>inch</primary></indexterm> |
| 4 | <refentryinfo><title>Signal I/O:Signal Input</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>inch</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>inch</refname> |
| 11 | <refpurpose> |
| 12 | Reads from numbered channels in an external audio signal or stream. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Reads from numbered channels in an external audio signal or stream. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>ain1[, ...] <command>inch</command> kchan1[,...]</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Performance</title> |
| 30 | <para> |
| 31 | <emphasis>ain1, ...</emphasis> - input audio signals |
| 32 | </para> |
| 33 | <para> |
| 34 | <emphasis>kchan1,...</emphasis> - channel numbers |
| 35 | </para> |
| 36 | <para> |
| 37 | <emphasis>inch</emphasis> reads from numbered channels |
| 38 | determined by the corresponding <emphasis>kchan</emphasis> into |
| 39 | the associated <emphasis>ain</emphasis>. If the command-line <link linkend="FlagsMinusLowerI"><citetitle>-i</citetitle></link> flag is set, sound is read continuously from the audio input stream (e.g. <emphasis>stdin</emphasis> or a soundfile). <emphasis>inch</emphasis> can also be used to receive audio in realtime from the audio interface using <emphasis>-iadc</emphasis>. |
| 40 | </para> |
| 41 | <note> |
| 42 | <para> |
| 43 | The highest number for <emphasis>kchan</emphasis> available for use with <emphasis>inch</emphasis> depends on <link linkend="nchnls_i"><citetitle>nchnls_i</citetitle></link>. If <emphasis>kchan</emphasis> is greater than <emphasis>nchnls_i</emphasis>, <emphasis>ain</emphasis> will be silent. Note that <emphasis>inch</emphasis> will give a warning but not an error in this case. |
| 44 | </para> |
| 45 | </note> |
| 46 | </refsect1> |
| 47 | |
| 48 | <refsect1> |
| 49 | <title>Examples</title> |
| 50 | <para> |
| 51 | Here is an example of the inch opcode. It uses the file <ulink url="examples/inch.csd"><citetitle>inch.csd</citetitle></ulink>. |
| 52 | <example> |
| 53 | <title>Example of the inch opcode.</title> |
| 54 | <xi:include href="examples-xml/inch.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 55 | </example> |
| 56 | </para> |
| 57 | </refsect1> |
| 58 | |
| 59 | <refsect1> |
| 60 | <title>See also</title> |
| 61 | <para><link linkend="SigioInput"><citetitle>Signal Input</citetitle></link></para> |
| 62 | </refsect1> |
| 63 | |
| 64 | <refsect1> |
| 65 | <title>Credits</title> |
| 66 | <para> |
| 67 | <simplelist> |
| 68 | <member>Author: &namejohn;</member> |
| 69 | <member>University of Bath/Codemist Ltd.</member> |
| 70 | <member>Bath, UK</member> |
| 71 | <member>May 2000</member> |
| 72 | </simplelist> |
| 73 | </para> |
| 74 | |
| 75 | <para>New in Csound Version 4.07</para> |
| 76 | <para>Multiple arguments from version 5.13</para> |
| 77 | </refsect1> |
| 78 | </refentry> |