| 1 | |
| 2 | <refentry id="tab2pvs"> |
| 3 | <indexterm id="IndexTab2pvs"><primary>tab2pvs</primary></indexterm> |
| 4 | |
| 5 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 6 | <refmeta> |
| 7 | <refentrytitle>tab2pvs</refentrytitle> |
| 8 | </refmeta> |
| 9 | |
| 10 | <refnamediv> |
| 11 | <refname>tab2pvs</refname> |
| 12 | <refpurpose> |
| 13 | Copies spectral data from k-rate arrays (or t-variables.). Also known as pvsfromarray. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | Copies a pvs frame from a t-variable or k-rate array. Currently only AMP+FREQ is produced. This opcode requires the t-type to be defined, which means it only works in the new bison/flex-based parser. |
| 21 | </para> |
| 22 | </refsect1> |
| 23 | |
| 24 | <refsect1> |
| 25 | <title>Syntax</title> |
| 26 | <synopsis>fsig <command>tab2pvs</command> tvar|karr[][,ihopsize, iwinsize, iwintype]</synopsis> |
| 27 | <synopsis>fsig <command>tab2pvs</command> kmags[], kfreqs[][,ihopsize, iwinsize, iwintype]</synopsis> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Performance</title> |
| 32 | |
| 33 | |
| 34 | <para> |
| 35 | <emphasis>tvar</emphasis> -- k-rate array (or t-variable) containing the input. It is produced at every k-period, but may not contain a new frame, pvs frames are produced at their own frame rate that is independent of kr. The size of this vector will determine the fftsize, N = size - 2. |
| 36 | </para> |
| 37 | <para> |
| 38 | <emphasis>kmags[], kfreqs[]</emphasis> -- k-rate arrays containing the input magnitude and frequency values. The output is produced at every k-period, but may not contain a new frame, pvs frames are produced at their own frame rate that is independent of kr. These vectors must be the same size and they will determine the fftsize, N = size - 2. |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | <emphasis>fsig</emphasis> -- output fsig to be copied. |
| 43 | </para> |
| 44 | |
| 45 | <para> |
| 46 | <emphasis>iolap</emphasis> -- size of the analysis overlap, defaults to <emphasis>isize</emphasis>/4. |
| 47 | </para> |
| 48 | <para> |
| 49 | <emphasis>iwinsize</emphasis> -- size of the analysis window, defaults to <emphasis>isize</emphasis>. |
| 50 | </para> |
| 51 | <para> |
| 52 | <emphasis>iwintype</emphasis> -- type of analysis window, defaults to 1, Hanning. |
| 53 | </para> |
| 54 | |
| 55 | </refsect1> |
| 56 | |
| 57 | <refsect1> |
| 58 | <title>Examples</title> |
| 59 | <para> |
| 60 | <example> |
| 61 | <title>Example</title> |
| 62 | <programlisting> |
| 63 | karr[] init 1026 |
| 64 | ... |
| 65 | fsig1 <emphasis role="opc">tab2pvs</emphasis> karr</programlisting> |
| 66 | aout pvsynth fsig1 |
| 67 | </example> |
| 68 | </para> |
| 69 | </refsect1> |
| 70 | |
| 71 | <refsect1> |
| 72 | <title>See also</title> |
| 73 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 74 | <para><link linkend="arraysfft"><citetitle></citetitle>Array-based spectral opcodes</link></para> |
| 75 | </refsect1> |
| 76 | |
| 77 | <refsect1> |
| 78 | <title>Credits</title> |
| 79 | <para> |
| 80 | <simplelist> |
| 81 | <member>Author: &namevictor;</member> |
| 82 | <member>October 2011 </member> |
| 83 | </simplelist> |
| 84 | </para> |
| 85 | |
| 86 | <para>New plugin in version 5</para> |
| 87 | <para>October 2011.</para> |
| 88 | </refsect1> |
| 89 | </refentry> |