Debian Codegraph @

opcodes/foutk.xml

raw symbols SCIP
1
2 <refentry id="foutk">
3 <indexterm id="IndexFoutk"><primary>foutk</primary></indexterm>
4 <refentryinfo><title>Signal I/O:File I/O</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>foutk</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>foutk</refname>
13 <refpurpose>
14 Outputs k-rate signals of an arbitrary number of channels to a specified file, in raw (headerless) format.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 <emphasis>foutk</emphasis> outputs <emphasis>N</emphasis> k-rate signals to a specified file of <emphasis>N</emphasis> channels.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>foutk</command> ifilename, iformat, kout1 [, kout2, kout3,....,koutN]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>ifilename</emphasis> -- the output file's name (in double-quotes).
34 </para>
35
36 <para>
37 <emphasis>iformat</emphasis> -- a flag to choose output file format (note: Csound versions older than 5.0 may only support formats 0 and 1):
38 <itemizedlist>
39 <listitem>
40 <para>0 - 32-bit floating point samples without header (binary PCM multichannel file)</para>
41 </listitem>
42
43 <listitem>
44 <para>1 - 16-bit integers without header (binary PCM multichannel file)</para>
45 </listitem>
46
47 <listitem>
48 <para>2 - 16-bit integers without header (binary PCM multichannel file)</para>
49 </listitem>
50
51 <listitem>
52 <para>3 - u-law samples without header</para>
53 </listitem>
54
55 <listitem>
56 <para>4 - 16-bit integers without header</para>
57 </listitem>
58
59 <listitem>
60 <para>5 - 32-bit integers without header</para>
61 </listitem>
62
63 <listitem>
64 <para>6 - 32-bit floats without header</para>
65 </listitem>
66
67 <listitem>
68 <para>7 - 8-bit unsigned integers without header</para>
69 </listitem>
70
71 <listitem>
72 <para>8 - 24-bit integers without header</para>
73 </listitem>
74
75 <listitem>
76 <para>9 - 64-bit floats without header</para>
77 </listitem>
78
79 </itemizedlist>
80 </para>
81 </refsect1>
82
83 <refsect1>
84 <title>Performance</title>
85 <para>
86 <emphasis>kout1,...koutN</emphasis> -- control-rate signals to be written to the file. The expected range of the signals is determined by the selected sample format.
87 </para>
88
89 <para>
90 <emphasis>foutk</emphasis> operates in the same way as <link linkend="fout"><citetitle>fout</citetitle></link>, but with k-rate signals. <emphasis>iformat</emphasis> can be set only in the range 0 to 9, or 0 to 1 with an old version of Csound.
91 </para>
92
93 <para>
94 Notice that <link linkend="fout"><citetitle>fout</citetitle></link> and <emphasis>foutk</emphasis> can use either a string containing a file pathname, or a handle-number generated by <link linkend="fiopen"><citetitle>fiopen</citetitle></link>. Whereas, with <link linkend="fouti"><citetitle>fouti</citetitle></link> and <link linkend="foutir"><citetitle>foutir</citetitle></link>, the target file can be only specified by means of a handle-number.
95 </para>
96 </refsect1>
97
98 <refsect1>
99 <title>Examples</title>
100 <para>
101 Here is an example of the foutk opcode. It uses the file <ulink url="examples/foutk.csd"><citetitle>foutk.csd</citetitle></ulink>.
102 <example>
103 <title>Example of the foutk opcode.</title>
104 <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>
105 <xi:include href="examples-xml/foutk.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
106 </example>
107 </para>
108
109 <para>
110 To avoid zipper noise, by discontinuities produced from complex envelope tracking, a lowpass filter could be used, to smooth the estimated envelope.
111 </para>
112 </refsect1>
113
114 <refsect1>
115 <title>See also</title>
116 <para><link linkend="SigioFileIO"><citetitle>File Input and Output</citetitle></link></para>
117 </refsect1>
118
119 <refsect1>
120 <title>Credits</title>
121 <para>
122 <simplelist>
123 <member>Author: &namegabriel;</member>
124 <member>Italy</member>
125 <member>1999</member>
126 </simplelist>
127 </para>
128
129 <para>New in Csound version 3.56</para>
130 </refsect1>
131 </refentry>