Debian Codegraph @

opcodes/ftsamplebank.xml

raw symbols SCIP
1 <refentry id="ftsamplebank">
2 <indexterm id="Indexftsamplebank"><primary>ftsamplebank</primary></indexterm>
3 <refentryinfo><title>Table Control:Read/Write Operations</title></refentryinfo>
4 <refmeta>
5 <refentrytitle>ftsamplebank</refentrytitle>
6 </refmeta>
7
8 <refnamediv>
9 <refname>ftsamplebank</refname>
10 <refpurpose>
11 Reads a directory for sound files.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>Plugin opcode in ftsamplebank.</para>
18 <para>
19 Reads a directory for sound files and loads them to a series of
20 GEN01 function tables.
21 </para>
22 </refsect1>
23
24 <refsect1>
25 <title>Syntax</title>
26 <synopsis>iNumberOfFile <command>ftsamplebank</command> SDirectory, iFirstTableNumber, iSkipTime, iFormat, iChannel,</synopsis>
27 <synopsis>kNumberOfFile <command>ftsamplebank</command> SDirectory, kFirstTableNumber, kTrigger, kSkipTime, kFormat, kChannel,</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>SDirectory</emphasis> -- a string that identifies the directory to browse for files
34 </para>
35 <para>
36 <emphasis>FirstTableNumber</emphasis> -- this sets the number of the first table into which a soundfile will be loaded
37 </para>
38 <para>
39 <emphasis>Trigger</emphasis> -- updates the tables when kTrigger is 1, only applicable to k-rate version.
40 </para>
41 <para>
42 <emphasis>SkipTime</emphasis> -- begin reading at <emphasis>skiptime</emphasis> seconds into the file.
43 </para>
44 <para>
45 <emphasis>Format</emphasis> -- specifies the audio data-file format:
46 <literallayout>
47 1 - 8-bit signed character 4 - 16-bit short integers
48 2 - 8-bit A-law bytes 5 - 32-bit long integers
49 3 - 8-bit U-law bytes 6 - 32-bit floats
50 </literallayout>
51 </para>
52 <para>
53 <emphasis>Channel</emphasis> -- channel number to read in. 0 denotes read all channels.
54 </para>
55 <para>
56 If <emphasis>format</emphasis> = 0 the sample format is taken from the soundfile header, or by default from the CSound <link linkend="FlagsMinusLowerO"><citetitle>-o</citetitle></link> command-line flag.
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>Performance</title>
62 <para>
63 <emphasis>iNumberOfFile</emphasis> -- the number of tables that have been created
64 </para>
65 <para>
66 <emphasis>kNumberOfFile</emphasis> -- the number of tables that have been created
67 </para>
68 </refsect1>
69
70 <note>
71 <title>Note</title>
72 <para>
73 Loading a lot of sound files into function tables at k-rate may cause some audio dropouts.
74 </para>
75 </note>
76
77 <refsect1>
78 <title>Example</title>
79 <para>
80 This example shows ftsamplebank browsing for samples in a fixed location. It loads all samples it finds into GEN01 function tables and then playsa them back in a sequence, one every second. It uses the file <ulink url="examples/ftsamplebank.csd"><citetitle>ftsamplebank.csd</citetitle></ulink>.
81 <example>
82 <title>Example of the ftsamplebank opcode.</title>
83 <xi:include href="examples-xml/ftsamplebank.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
84 </example>
85 </para>
86 </refsect1>
87
88 <refsect1>
89 <title>See also</title>
90 <para><link linkend="TableReadwrit"><citetitle>Read/Write Operations</citetitle></link></para>
91 </refsect1>
92
93 <refsect1>
94 <title>Credits</title>
95 <para>
96 <simplelist>
97 <member>Author: Rory Walsh</member>
98 <member>2015</member>
99 </simplelist>
100 </para>
101 </refsect1>
102 </refentry>