Debian Codegraph @

opcodes/flgetsnap.xml

raw symbols SCIP
1
2 <refentry id="FLgetsnap">
3 <indexterm id="IndexFLgetsnap"><primary>FLgetsnap</primary></indexterm>
4 <refentryinfo><title>FLTK:Other</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>FLgetsnap</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>FLgetsnap</refname>
11 <refpurpose>
12 Retrieves a previously stored FLTK snapshot.
13 </refpurpose>
14 </refnamediv>
15
16 <refsect1>
17 <title>Description</title>
18 <para>
19 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.
20 The plugin repository can be found here: <ulink url="https://github.com/csound/plugins"><citetitle>https://github.com/csound/plugins</citetitle></ulink></para>
21 <para>
22 Retrieves a previously stored snapshot (in memory), i.e. sets all valuator to the corresponding values stored in that snaphot.
23 </para>
24 </refsect1>
25
26 <refsect1>
27 <title>Syntax</title>
28 <synopsis>inumsnap <command>FLgetsnap</command> index [, igroup]</synopsis>
29 </refsect1>
30
31 <refsect1>
32 <title>Initialization</title>
33 <para>
34 <emphasis>inumsnap</emphasis> -- current number of snapshots.
35 </para>
36
37 <para>
38 <emphasis>index</emphasis> -- a number referring unequivocally to a snapshot. Several snapshots can be stored in the same bank.
39 </para>
40
41 <para>
42 <emphasis>igroup</emphasis> -- (optional) an integer number referring to a snapshot-related group of widget. It allows to get/set, or to load/save the state of a subset of valuators. Default value is zero that refers to the first group. The group number is determined by the opcode <link linkend="FLsetSnapGroup"><citetitle>FLsetSnapGroup</citetitle></link>.
43 </para>
44 <note>
45 <para>
46 The <emphasis>igroup</emphasis> parameter has not been yet fully implemented in the current version of csound. Please do not rely on it yet.
47 </para>
48 </note>
49 </refsect1>
50
51 <refsect1>
52 <title>Performance</title>
53 <para>
54 <emphasis>FLgetsnap</emphasis> retrieves a previously stored
55 snapshot (in memory), i.e. sets all valuator to the
56 corresponding values stored in that snapshot. The
57 <emphasis>index</emphasis> argument unequivocally must refer to
58 an already existing snapshot. If the <emphasis>index</emphasis>
59 argument refers to an empty snapshot or to a snapshot that does not exist, no action is done. <emphasis>FLsetsnap</emphasis> outputs the current number of snapshots (<emphasis>inumsnap</emphasis> argument).
60 </para>
61 <para>
62 For purposes of snapshot saving, widgets can be grouped, so that snapshots affect only a defined group of widgets. The opcode <link linkend="FLsetSnapGroup"><citetitle>FLsetSnapGroup</citetitle></link> is used to specify the group for all widgets declared after it, until the next <link linkend="FLsetSnapGroup"><citetitle>FLsetSnapGroup</citetitle></link> statement.
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>See Also</title>
68 <para>
69 <link linkend="FLloadsnap"><citetitle>FLloadsnap</citetitle></link>,
70 <link linkend="FLrun"><citetitle>FLrun</citetitle></link>,
71 <link linkend="FLsavesnap"><citetitle>FLsavesnap</citetitle></link>,
72 <link linkend="FLsetsnap"><citetitle>FLsetsnap</citetitle></link>,
73 <link linkend="FLsetSnapGroup"><citetitle>FLsetSnapGroup</citetitle></link>,
74 <link linkend="FLupdate"><citetitle>FLupdate</citetitle></link>
75 </para>
76 </refsect1>
77
78 <refsect1>
79 <title>Credits</title>
80 <para>Author: &namegabriel;</para>
81 <para>New in version 4.22</para>
82 </refsect1>
83 </refentry>