Debian Codegraph @

opcodes/fprints.xml

raw symbols SCIP
1
2 <refentry id="fprints">
3 <indexterm id="IndexFprints"><primary>fprints</primary></indexterm>
4 <refentryinfo><title>Signal I/O:File I/O</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>fprints</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>fprints</refname>
13 <refpurpose>
14 Similar to prints but prints to a file.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Similar to <link linkend="prints"><citetitle>prints</citetitle></link> but prints to a file.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>fprints</command> &quot;filename&quot;, &quot;string&quot; [, ival1] [, ival2] [...]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>&quot;filename&quot;</emphasis> -- name of the output file.
34 </para>
35
36 <para>
37 <emphasis>&quot;string&quot;</emphasis> -- the text string to be printed. Can be up to 8192 characters and must be in double quotes.
38 </para>
39 <para>
40 <emphasis>ival1, ival2, ...</emphasis> (optional) -- The i-rate values to be printed. These are specified in <emphasis><quote>string</quote></emphasis> with the standard C value specifier (%f, %d, etc.) in the order given.
41 </para>
42
43 </refsect1>
44
45 <refsect1>
46 <title>Performance</title>
47
48 <para>
49 <emphasis>fprints</emphasis> is similar to the <link linkend="prints"><citetitle>prints</citetitle></link> opcode except it outputs to a file. For more information about output formatting, please look at <link linkend="printks"><citetitle>printks's documentation</citetitle></link>.
50 </para>
51 </refsect1>
52
53 <refsect1>
54 <title>Examples</title>
55 <para>
56 Here is an example of the fprints opcode. It uses the file <ulink url="examples/fprints.csd"><citetitle>fprints.csd</citetitle></ulink>.
57 Note that the example must be run from a directory for which the
58 user has write access.
59
60 <example>
61 <title>Example of the fprints opcode.</title>
62
63
64
65 <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>
66 <xi:include href="examples-xml/fprints.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
67 </example>
68
69 This example will generate a file called <quote>my.sco</quote>. It should contain a line like this:
70
71 <screen>
72 ;Generated score by ma++
73 </screen>
74 </para>
75 </refsect1>
76
77 <refsect1>
78 <title>See also</title>
79 <para><link linkend="SigioFileIO"><citetitle>File Input and Output</citetitle></link></para>
80 </refsect1>
81
82 <refsect1>
83 <title>Credits</title>
84 <para>
85 <simplelist>
86 <member>Author: &namematt;</member>
87 <member>January 2003</member>
88 </simplelist>
89 </para>
90 </refsect1>
91 </refentry>