Debian Codegraph @

opcodes/ftsr.xml

raw symbols SCIP
1
2 <refentry id="ftsr">
3 <indexterm id="IndexFtsr"><primary>ftsr</primary></indexterm>
4 <refentryinfo><title>Table Control:Table Queries</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>ftsr</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>ftsr</refname>
13 <refpurpose>
14 Returns the sampling-rate of a stored function table.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Returns the sampling-rate of a stored function table.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>ftsr</command>(x) (init-rate args only)</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Performance</title>
32 <para>
33 Returns the sampling-rate of a <link linkend="GEN01"><citetitle>GEN01</citetitle></link> generated table. The sampling-rate is 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>ftsr</emphasis> returns 0. New in Csound version 3.49.
34 </para>
35 </refsect1>
36
37 <refsect1>
38 <title>Examples</title>
39 <para>
40 Here is an example of the ftsr opcode. It uses the file <ulink url="examples/ftsr.csd"><citetitle>ftsr.csd</citetitle></ulink>.
41 <example>
42 <title>Example of the ftsr opcode.</title>
43 <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>
44 <xi:include href="examples-xml/ftsr.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
45 </example>
46 its output should lines like these:
47 <screen>
48 sampling-rate of table number 1 = 44100
49 sampling-rate of table number 2 = 22050
50 sampling-rate of table number 3 = 44100
51 sampling-rate of table number 4 = 44100
52 </screen>
53 </para>
54 </refsect1>
55
56 <refsect1>
57 <title>See also</title>
58 <para><link linkend="TableQueries"><citetitle>Table Control:Table Queries</citetitle></link></para>
59 </refsect1>
60
61 <refsect1>
62 <title>Credits</title>
63 <para>
64 <simplelist>
65 <member>Author: &namegabriel;</member>
66 <member>Italy</member>
67 <member>October 1998</member>
68 </simplelist>
69 </para>
70 </refsect1>
71 </refentry>