| 1 | |
| 2 | <refentry id="getftargs"> |
| 3 | <indexterm id="Indexgetftargs"><primary>getftargs</primary></indexterm> |
| 4 | <refentryinfo><title>Table Control</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>getftargs</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>getftargs</refname> |
| 11 | <refpurpose> |
| 12 | Fill a string variable with the arguments used to create a function table at k-rate. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para>Plugin opcode in getftargs.</para> |
| 19 | <para> |
| 20 | <emphasis>getftargs</emphasis> writes the arguments used to create a function table to a string variable. <emphasis>getftargs</emphasis> runs both at initialization and performance time. |
| 21 | </para> |
| 22 | </refsect1> |
| 23 | |
| 24 | <refsect1> |
| 25 | <title>Syntax</title> |
| 26 | <synopsis>Sdst <command>getftargs</command> iftno, ktrig</synopsis> |
| 27 | </refsect1> |
| 28 | |
| 29 | <refsect1> |
| 30 | <title>Initialization</title> |
| 31 | <para> |
| 32 | <emphasis>ifno</emphasis> -- Number of the table whose arguments we want to request. |
| 33 | </para> |
| 34 | |
| 35 | </refsect1> |
| 36 | |
| 37 | <refsect1> |
| 38 | <title>Performance</title> |
| 39 | <para> |
| 40 | <emphasis>Sdst</emphasis> -- output string variable. |
| 41 | </para> |
| 42 | <para> |
| 43 | <emphasis>ktrig</emphasis> -- trigger signal, should be valid at i-time. The output string variable is filled at initialization time if ktrig is positive, and at performance time whenever ktrig is both positive and different from the previous value. Use a constant value of 1 to print once at note initialization. |
| 44 | </para> |
| 45 | </refsect1> |
| 46 | |
| 47 | <refsect1> |
| 48 | <title>Examples</title> |
| 49 | <para> |
| 50 | Here is an example of the getftargs opcode. It uses the file <ulink url="examples/getftargs.csd"><citetitle>getftargs.csd</citetitle></ulink>. |
| 51 | <example> |
| 52 | <title>Example of the getftargs 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/getftargs.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 55 | </example> |
| 56 | Its output should include this line: |
| 57 | <screen> 0 0 0.5 200 0.8 450 0.33 600 0.1 800 0.4 1024 0 |
| 58 | </screen> |
| 59 | </para> |
| 60 | </refsect1> |
| 61 | |
| 62 | <refsect1> |
| 63 | <title>See also</title> |
| 64 | <para><link linkend="TableQueries"><citetitle>Table Control:Table Queries</citetitle></link></para> |
| 65 | </refsect1> |
| 66 | |
| 67 | <refsect1> |
| 68 | <title>Credits</title> |
| 69 | <para>Written by Guillermo Senna</para> |
| 70 | <para>2016</para> |
| 71 | </refsect1> |
| 72 | </refentry> |