| 1 | |
| 2 | <refentry id="pvsftr"> |
| 3 | <indexterm id="IndexPvsftr"><primary>pvsftr</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>pvsftr</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>pvsftr</refname> |
| 13 | <refpurpose> |
| 14 | Reads amplitude and/or frequency data from function tables. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Reads amplitude and/or frequency data from function tables. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis><command>pvsftr</command> fsrc, ifna [, ifnf]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>ifna</emphasis> -- A table, at least inbins in size, that stores amplitude data. Ignored if ifna = 0 |
| 34 | </para> |
| 35 | |
| 36 | <para> |
| 37 | <emphasis>ifnf</emphasis> (optional) -- A table, at least inbins in size, that stores frequency data. Ignored if ifnf = 0 |
| 38 | </para> |
| 39 | </refsect1> |
| 40 | |
| 41 | <refsect1> |
| 42 | <title>Performance</title> |
| 43 | <para> |
| 44 | <emphasis>fsrc</emphasis> -- a PVOC-EX formatted source. |
| 45 | </para> |
| 46 | |
| 47 | <para> |
| 48 | Enables the contents of <emphasis>fsrc</emphasis> to be exchanged with function tables for custom processing. Except when the frame overlap equals <emphasis>ksmps</emphasis> (which will generally not be the case), the frame data is not updated each control period. The data in <emphasis>ifna</emphasis>, <emphasis>ifnf</emphasis> should only be processed when <emphasis>kflag</emphasis> is set to 1. To process only frequency data, set <emphasis>ifna</emphasis> to zero. |
| 49 | </para> |
| 50 | |
| 51 | <para> |
| 52 | As the function tables are required only to store data from <emphasis>fsrc</emphasis>, there is no advantage in defining then in the score, and they should generally be created in the instrument, using <link linkend="ftgen"><citetitle>ftgen</citetitle></link>. |
| 53 | </para> |
| 54 | |
| 55 | <para> |
| 56 | By exporting amplitude data, say, from one fsig and importing it into another, basic cross-synthesis (as in <link linkend="pvscross"><citetitle>pvscross</citetitle></link>) can be performed, with the option to modify the data beforehand using the table manipulation opodes. |
| 57 | </para> |
| 58 | |
| 59 | <para> |
| 60 | Note that the format data in the source fsig is not written to the tables. This therefore offers a means of transferring amplitude and frequency data between non-identical fsigs. Used this way, these opcodes become potentially pathological, and can be relied upon to produce unexpected results. In such cases, resynthesis using <link linkend="pvsadsyn"><citetitle>pvsadsyn</citetitle></link> would almost certainly be required. |
| 61 | </para> |
| 62 | |
| 63 | <para> |
| 64 | To perform a straight copy from one fsig to another one of identical format, the conventional assignment syntax can be used: |
| 65 | |
| 66 | <literallayout> |
| 67 | fsig1 = fsig2 |
| 68 | </literallayout> |
| 69 | |
| 70 | It is not necessary to use function tables in this case. |
| 71 | </para> |
| 72 | </refsect1> |
| 73 | |
| 74 | <refsect1> |
| 75 | <title>Examples</title> |
| 76 | <para> |
| 77 | Here is an example of the pvsftr opcode. It uses the file <ulink url="examples/pvsftr.csd"><citetitle>pvsftr.csd</citetitle></ulink>. |
| 78 | <example> |
| 79 | <title>Example of the pvsftr opcode.</title> |
| 80 | <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> |
| 81 | <xi:include href="examples-xml/pvsftr.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 82 | </example> |
| 83 | </para> |
| 84 | </refsect1> |
| 85 | |
| 86 | <refsect1> |
| 87 | <title>See also</title> |
| 88 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 89 | </refsect1> |
| 90 | |
| 91 | <refsect1> |
| 92 | <title>Credits</title> |
| 93 | <para> |
| 94 | <simplelist> |
| 95 | <member>Author: &namerichard;</member> |
| 96 | <member>August 2001 </member> |
| 97 | </simplelist> |
| 98 | </para> |
| 99 | |
| 100 | <para>New in version 4.13</para> |
| 101 | </refsect1> |
| 102 | </refentry> |