| 1 | |
| 2 | <refentry id="pvsinfo"> |
| 3 | <indexterm id="IndexPvsinfo"><primary>pvsinfo</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>pvsinfo</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>pvsinfo</refname> |
| 13 | <refpurpose> |
| 14 | Get information from a PVOC-EX formatted source. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | Get format information about fsrc, whether created by an opcode such as pvsanal, or obtained from a PVOCEX file by pvsfread. This information is available at init time, and can be used to set parameters for other pvs opcodes, and in particular for creating function tables (e.g. for pvsftw), or setting the number of oscillators for pvsadsyn. |
| 22 | </para> |
| 23 | </refsect1> |
| 24 | |
| 25 | <refsect1> |
| 26 | <title>Syntax</title> |
| 27 | <synopsis>ioverlap, inumbins, iwinsize, iformat <command>pvsinfo</command> fsrc</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Initialization</title> |
| 32 | <para> |
| 33 | <emphasis>ioverlap</emphasis> -- The stream overlap size. |
| 34 | </para> |
| 35 | |
| 36 | <para> |
| 37 | <emphasis>inumbins</emphasis> -- The number of analysis bins (amplitude+frequency) in fsrc. The underlying FFT size is calculated as (inumbins -1) * 2. |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>iwinsize</emphasis> -- The analysis window size. May be larger than the FFT size. |
| 42 | </para> |
| 43 | |
| 44 | <para> |
| 45 | <emphasis>iformat</emphasis> -- The analysis frame format. If fsrc is created by an opcode, iformat will always be 0, signifying amplitude+frequency. If fsrc is defined from a PVOC-EX file, iformat may also have the value 1 or 2 (amplitude+phase, complex). |
| 46 | </para> |
| 47 | </refsect1> |
| 48 | |
| 49 | <refsect1> |
| 50 | <title>Examples</title> |
| 51 | <para> |
| 52 | Here is an example of the pvsinfo opcode. It uses the file <ulink url="examples/pvsinfo.csd"><citetitle>pvsinfo.csd</citetitle></ulink>. |
| 53 | <example> |
| 54 | <title>Example of the pvsinfo opcode.</title> |
| 55 | <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> |
| 56 | <xi:include href="examples-xml/pvsinfo.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 57 | </example> |
| 58 | </para> |
| 59 | <para> |
| 60 | The example will produce the following output: |
| 61 | <screen> |
| 62 | instr 1: iovl = 256.000 inb = 513.000 iws = 2048.000 ifmt = 0.000 |
| 63 | </screen> |
| 64 | </para> |
| 65 | </refsect1> |
| 66 | |
| 67 | <refsect1> |
| 68 | <title>See also</title> |
| 69 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>Credits</title> |
| 74 | <para> |
| 75 | <simplelist> |
| 76 | <member>Author: &namerichard;</member> |
| 77 | <member>August 2001 </member> |
| 78 | </simplelist> |
| 79 | </para> |
| 80 | |
| 81 | <para>New in version 4.13</para> |
| 82 | </refsect1> |
| 83 | </refentry> |