Debian Codegraph @

opcodes/flprintk.xml

raw symbols SCIP
1
2 <refentry id="FLprintk">
3 <indexterm id="IndexFLprintk"><primary>FLprintk</primary></indexterm>
4 <refentryinfo><title>FLTK:Other</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>FLprintk</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>FLprintk</refname>
13 <refpurpose>
14 A FLTK opcode that prints a k-rate value at specified intervals.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Plugin opcode in widgets. This opcode is part of the plugin repository and has to be installed separately. These FLTK widgets do not work on the Mac.
22 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
23 <para>
24 <emphasis>FLprintk</emphasis> is similar to <link linkend="printk"><citetitle>printk</citetitle></link> but shows values of a k-rate signal in a text field instead of on the console.
25 </para>
26 </refsect1>
27
28 <refsect1>
29 <title>Syntax</title>
30 <synopsis><command>FLprintk</command> itime, kval, idisp</synopsis>
31 </refsect1>
32
33 <refsect1>
34 <title>Initialization</title>
35 <para>
36 <emphasis>itime</emphasis> -- how much time in seconds is to elapse between updated displays.
37 </para>
38
39 <para>
40 <emphasis>idisp</emphasis> -- a handle value that was output
41 from a previous instance of the <link
42 linkend="FLvalue"><citetitle>FLvalue</citetitle></link> opcode
43 to display the current value of the current valuator in the
44 <emphasis>FLvalue</emphasis> widget itself. If the user does not want to use this feature that displays current values, it must be set to a negative number by the user.
45 </para>
46 </refsect1>
47
48 <refsect1>
49 <title>Performance</title>
50 <para>
51 <emphasis>kval</emphasis> -- k-rate signal to be displayed.
52 </para>
53
54 <para>
55 <emphasis>FLprintk</emphasis> is similar to <link linkend="printk"><citetitle>printk</citetitle></link>, but shows values of a k-rate signal in a text field instead of showing it in the console. The <emphasis>idisp</emphasis> argument must be filled with the <emphasis>ihandle</emphasis> return value of a previous <emphasis>FLvalue</emphasis> opcode. While <emphasis>FLvalue</emphasis> should be placed in the header section of an orchestra inside an <link linkend="FLpanel"><citetitle>FLpanel</citetitle></link>/<link linkend="FLpanelEnd"><citetitle>FLpanelEnd</citetitle></link> block, <emphasis>FLprintk</emphasis> must be placed inside an instrument to operate correctly. For this reason, it slows down performance and should be used for debugging purposes only.
56 </para>
57 </refsect1>
58
59 <refsect1>
60 <title>See Also</title>
61 <para>
62 <link linkend="FLbox"><citetitle>FLbox</citetitle></link>,
63 <link linkend="FLbutBank"><citetitle>FLbutBank</citetitle></link>,
64 <link linkend="FLbutton"><citetitle>FLbutton</citetitle></link>,
65 <link linkend="FLprintk2"><citetitle>FLprintk2</citetitle></link>,
66 <link linkend="FLvalue"><citetitle>FLvalue</citetitle></link>
67 </para>
68 </refsect1>
69
70 <refsect1>
71 <title>Credits</title>
72 <para>Author: &namegabriel;</para>
73 <para>New in version 4.22</para>
74 </refsect1>
75 </refentry>