Debian Codegraph @

opcodes/print.xml

raw symbols SCIP
1
2 <refentry id="print">
3 <indexterm id="IndexPrint"><primary>print</primary></indexterm>
4 <refentryinfo><title>Signal I/O:Printing and Display</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>print</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>print</refname>
11 <refpurpose>
12 Displays the values init (i-rate) variables.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 These units will print orchestra init-values.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis><command>print</command> iarg [, iarg1] [, iarg2] [...]</synopsis>
26 </refsect1>
27
28 <refsect1>
29 <title>Initialization</title>
30 <para>
31 <emphasis>iarg, iarg2, ... </emphasis> -- i-rate arguments.
32 </para>
33 </refsect1>
34
35 <refsect1>
36 <title>Performance</title>
37 <para>
38 <emphasis>print</emphasis> -- print the current value of the i-time arguments (or expressions) <emphasis>iarg</emphasis> at every i-pass through the instrument.
39 </para>
40 <note>
41 <para>
42 The <emphasis>print</emphasis> opcode will truncate decimal places and may not show the complete value. Csound's precision depends on whether it is the floats (32-bit) or double (64-bit) <!--<link linkend="MiscCsound64"><citetitle>-->version<!--</citetitle></link>-->, since most internal calculations use one of these formats. If you need more resolution in the console output, you can try <link linkend="printf"><citetitle>printf</citetitle></link>.
43 </para>
44 </note>
45 </refsect1>
46
47 <refsect1>
48 <title>Examples</title>
49 <para>
50 Here is an example of the print opcode. It uses the file <ulink url="examples/print.csd"><citetitle>print.csd</citetitle></ulink>.
51 <example>
52 <title>Example of the print opcode.</title>
53 <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>
54 <xi:include href="examples-xml/print.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
55 </example>
56 Its output should include lines like these:
57 <screen>
58 instr 1: irand = 2.930
59 instr 1: irand = 0.420
60 instr 1: irand = 2.316
61 </screen>
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <title>See also</title>
67 <para><link linkend="SigioPdisplay"><citetitle>Printing and Display</citetitle></link></para>
68 </refsect1>
69
70 </refentry>