Debian Codegraph @

opcodes/ftchnls.xml

raw symbols SCIP
1
2 <refentry id="ftchnls">
3 <indexterm id="IndexFtchnls"><primary>ftchnls</primary></indexterm>
4 <refentryinfo><title>Table Control:Table Queries</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>ftchnls</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>ftchnls</refname>
11 <refpurpose>
12 Returns the number of channels in a stored function table.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 Returns the number of channels in a stored function table.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>ftchnls</command>(x) (init-rate args only)</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Performance</title>
30 <para>
31 Returns the number of channels of a <link linkend="GEN01"><citetitle>GEN01</citetitle></link> table, determined from the header of the original file. If the original file has no header or the table was not created by these GEN01, <emphasis>ftchnls</emphasis> returns -1.
32 </para>
33 </refsect1>
34
35 <refsect1>
36 <title>Examples</title>
37 <para>
38 Here is an example of the ftchnls opcode. It uses the files <ulink url="examples/ftchnls.csd"><citetitle>ftchnls.csd</citetitle></ulink>, <ulink url="examples/drumsMlp.wav"><citetitle>drumsMlp.wav</citetitle></ulink>, and <ulink url="examples/drumsSlp.wav"><citetitle>drumsSlp.wav</citetitle></ulink>.
39
40 <example>
41 <title>Example of the ftchnls opcode.</title>
42 <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>
43 <xi:include href="examples-xml/ftchnls.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
44 </example>
45
46 The audio file <quote>drumsMlp.wav</quote> is monophonic, the audio file <quote>drumsSlp.wav</quote> is stereophonic, so its output should include lines like these:
47 <screen>
48 number of channels = 1
49 number of channels = 2
50 </screen>
51 </para>
52 </refsect1>
53
54 <refsect1>
55 <title>See also</title>
56 <para><link linkend="TableQueries"><citetitle>Table Control:Table Queries</citetitle></link></para>
57 </refsect1>
58
59 <refsect1>
60 <title>Credits</title>
61 <para>
62 <simplelist>
63 <member>Author: Chris McCormick</member>
64 <member>Perth, Australia</member>
65 <member>December 2001</member>
66 </simplelist>
67 </para>
68 </refsect1>
69 </refentry>