| 1 |
|
| 2 |
<refentry id="pop_f"> |
| 3 |
<indexterm id="Indexpop_f"><primary>pop_f</primary></indexterm> |
| 4 |
<refentryinfo><title>Instrument Control:Stacks</title></refentryinfo> |
| 5 |
<refentryinfo><title>Deprecated</title></refentryinfo> |
| 6 |
<refmeta> |
| 7 |
<refentrytitle>pop_f</refentrytitle> |
| 8 |
</refmeta> |
| 9 |
|
| 10 |
<refnamediv> |
| 11 |
<refname>pop_f</refname> |
| 12 |
<refpurpose> |
| 13 |
Pops an f-sig frame from the global stack. Deprecated. |
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
<para>Plugin opcode in stackops.</para> |
| 20 |
<para> |
| 21 |
Pops an f-sig frame from the global stack. |
| 22 |
</para> |
| 23 |
</refsect1> |
| 24 |
<refsect1> |
| 25 |
<title>Syntax</title> |
| 26 |
<synopsis>fsig <command>pop_f</command></synopsis> |
| 27 |
</refsect1> |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
<refsect1> |
| 33 |
<title>Performance</title> |
| 34 |
<para> |
| 35 |
<emphasis>fsig </emphasis> - f-signal to be popped from the stack. |
| 36 |
</para> |
| 37 |
<para> |
| 38 |
The values are popped the stack. The global stack must be initialized before used, and its size must be set. The global stack works in LIFO order: after multiple <link linkend="push_f"><citetitle>push_f</citetitle></link> calls, <emphasis>pop_f</emphasis> should be used in reverse order. |
| 39 |
</para> |
| 40 |
<para> |
| 41 |
push/pop for a, k, i, and S types copy data by value. By contrast, <link linkend="push_f"><citetitle>push_f</citetitle></link> only pushes a "reference" to the f-signal, and then the corresponding <emphasis>pop_f</emphasis> will copy directly from the original variable to its output signal. For this reason, changing the source f-signal of <link linkend="push_f"><citetitle>push_f</citetitle></link> before <emphasis>pop_f</emphasis> is called is not recommended, and if the instrument instance owning the variable that was passed by <link linkend="push_f"><citetitle>push_f</citetitle></link> is deactivated before <emphasis>pop_f</emphasis> is called, undefined behavior may occur. |
| 42 |
</para> |
| 43 |
<para> |
| 44 |
<link linkend="push_f"><citetitle>push_f</citetitle></link> and <emphasis>pop_f</emphasis> can only take a single argument, and the data is passed both at init and performance time. |
| 45 |
</para> |
| 46 |
<para> |
| 47 |
Any stack errors (trying to push when there is no more space, or pop from an empty stack, inconsistent number or type of arguments, etc.) are fatal and terminate performance. |
| 48 |
</para> |
| 49 |
</refsect1> |
| 50 |
|
| 51 |
<refsect1> |
| 52 |
<title>See also</title> |
| 53 |
<para><link linkend="ControlStacks"><citetitle>Stacks</citetitle></link></para> |
| 54 |
</refsect1> |
| 55 |
|
| 56 |
<refsect1> |
| 57 |
<title>Credits</title> |
| 58 |
<para>By: &nameistvan;.</para> |
| 59 |
<para>2006</para> |
| 60 |
<para>Deprecated as of version 6.04.</para> |
| 61 |
</refsect1> |
| 62 |
</refentry> |