| 1 | |
| 2 | <refentry id="FLsetSnapGroup"> |
| 3 | <indexterm id="IndexFLsetSnapGroup"><primary>FLsetSnapGroup</primary></indexterm> |
| 4 | <refentryinfo><title>FLTK:Other</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>FLsetSnapGroup</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>FLsetSnapGroup</refname> |
| 11 | <refpurpose> |
| 12 | Determines the snapshot group for FL valuators. |
| 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 | <emphasis>FLsetSnapGroup</emphasis> determines the snapshot group of valuators declared after it. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis><command>FLsetSnapGroup</command> igroup</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <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. |
| 35 | </para> |
| 36 | <note> |
| 37 | <para> |
| 38 | The <emphasis>igroup</emphasis> parameter has not been yet fully implemented in the current version of csound. Please do not rely on it yet. |
| 39 | </para> |
| 40 | </note> |
| 41 | </refsect1> |
| 42 | |
| 43 | <refsect1> |
| 44 | <title>Performance</title> |
| 45 | <para> |
| 46 | For purposes of snapshot saving, widgets can be grouped, so that snapshots affect only a defined group of widgets. The opcode <emphasis>FLsetSnapGroup</emphasis> is used to specify the group for all widgets declared after it, until the next <emphasis>FLsetSnapGroup</emphasis> statement. |
| 47 | </para> |
| 48 | <para> |
| 49 | <emphasis>FLsetSnapGroup</emphasis> determines the snapshot group of a declared valuator. To make a valuator belong to a stated group, you have to place <emphasis>FLsetSnapGroup</emphasis> just before the declaration of the widget itself. The group stated by <emphasis>FLsetSnapGroup</emphasis> lasts for all valuators declared after it, until a new <emphasis>FLsetSnapGroup</emphasis> statement with a different group is encountered. If no <emphasis>FLsetSnapGroup</emphasis> statement are present in an orchestra, the default group for all widgets will be group zero. |
| 50 | </para> |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <title>See Also</title> |
| 55 | <para> |
| 56 | <link linkend="FLgetsnap"><citetitle>FLgetsnap</citetitle></link>, |
| 57 | <link linkend="FLsetsnap"><citetitle>FLsetsnap</citetitle></link>, |
| 58 | <link linkend="FLloadsnap"><citetitle>FLloadsnap</citetitle></link>, |
| 59 | <link linkend="FLsavesnap"><citetitle>FLsavesnap</citetitle></link> |
| 60 | </para> |
| 61 | </refsect1> |
| 62 | |
| 63 | <refsect1> |
| 64 | <title>Credits</title> |
| 65 | <para>Author: &namegabriel;</para> |
| 66 | <para>New in version 4.22</para> |
| 67 | </refsect1> |
| 68 | </refentry> |