| 1 | |
| 2 | <refentry id="pvsfread"> |
| 3 | <indexterm id="IndexPvsfread"><primary>pvsfread</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>pvsfread</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>pvsfread</refname> |
| 13 | <refpurpose> |
| 14 | Read a selected channel from a PVOC-EX analysis file. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Create an fsig stream by reading a selected channel from a PVOC-EX analysis file loaded into memory, with frame interpolation. Only format 0 files (amplitude+frequency) are currently supported. The operation of this opcode mirrors that of pvoc, but outputs an fsig instead of a resynthesized signal. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>fsig <command>pvsfread</command> ktimpt, ifn [, ichan]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>ifn</emphasis> -- Name of the analysis file. This must have the .pvx file extension. |
| 34 | </para> |
| 35 | |
| 36 | <para> |
| 37 | A multi-channel PVOC-EX file can be generated using the extended <link linkend="pvanal"><citetitle>pvanal utility</citetitle></link>. |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>ichan</emphasis> -- (optional) The channel to read (counting from 0). Default is 0. |
| 42 | </para> |
| 43 | </refsect1> |
| 44 | |
| 45 | <refsect1> |
| 46 | <title>Performance</title> |
| 47 | <para> |
| 48 | <emphasis>ktimpt</emphasis> -- Time pointer into analysis file, in seconds. See the description of the same parameter of <link linkend="pvoc"><citetitle>pvoc</citetitle></link> for usage. |
| 49 | </para> |
| 50 | |
| 51 | <para> |
| 52 | Note that analysis files can be very large, especially if multi-channel. Reading such files into memory will very likely incur breaks in the audio during real-time performance. As the file is read only once, and is then available to all other interested opcodes, it can be expedient to arrange for a dedicated instrument to preload all such analysis files at startup. |
| 53 | </para> |
| 54 | </refsect1> |
| 55 | |
| 56 | <refsect1> |
| 57 | <title>Examples</title> |
| 58 | <para> |
| 59 | Here is an example of the pvsfread opcode. It uses the file <ulink url="examples/pvsfread.csd"><citetitle>pvsfread.csd</citetitle></ulink>. |
| 60 | <example> |
| 61 | <title>Example of the pvsfread opcode.</title> |
| 62 | <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> |
| 63 | <xi:include href="examples-xml/pvsfread.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 64 | </example> |
| 65 | </para> |
| 66 | </refsect1> |
| 67 | |
| 68 | <refsect1> |
| 69 | <para> |
| 70 | Here is another example of the pvsfread opcode. It uses the file <ulink url="examples/pvsfread-2.csd"><citetitle>pvsfread-2.csd</citetitle></ulink>. |
| 71 | <example> |
| 72 | <title>Another example of the pvsfread opcode.</title> |
| 73 | <xi:include href="examples-xml/pvsfread-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 74 | </example> |
| 75 | </para> |
| 76 | </refsect1> |
| 77 | |
| 78 | <refsect1> |
| 79 | <title>See also</title> |
| 80 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 81 | </refsect1> |
| 82 | |
| 83 | <refsect1> |
| 84 | <title>Credits</title> |
| 85 | <para> |
| 86 | <simplelist> |
| 87 | <member>Author: &namerichard;</member> |
| 88 | <member>August 2001 </member> |
| 89 | </simplelist> |
| 90 | </para> |
| 91 | |
| 92 | <para>New in version 4.13</para> |
| 93 | </refsect1> |
| 94 | </refentry> |