| 1 | <refentry id="pvsadsyn"> |
| 2 | <indexterm id="IndexPvsadsyn"><primary>pvsadsyn</primary></indexterm> |
| 3 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 4 | <refmeta> |
| 5 | <refentrytitle>pvsadsyn</refentrytitle> |
| 6 | </refmeta> |
| 7 | |
| 8 | <refnamediv> |
| 9 | <refname>pvsadsyn</refname> |
| 10 | <refpurpose> |
| 11 | Resynthesize using a fast oscillator-bank. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para> |
| 18 | Resynthesize using a fast oscillator-bank. |
| 19 | </para> |
| 20 | </refsect1> |
| 21 | |
| 22 | <refsect1> |
| 23 | <title>Syntax</title> |
| 24 | <synopsis>ares <command>pvsadsyn</command> fsrc, inoscs, kfmod [, ibinoffset] [, ibinincr] [, iinit]</synopsis> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Initialization</title> |
| 29 | <para> |
| 30 | <emphasis>inoscs</emphasis> -- The number of analysis bins to synthesise. Cannot be larger than the size of fsrc (see <link linkend="pvsinfo"><citetitle>pvsinfo</citetitle></link>), e.g. as created by <link linkend="pvsanal"><citetitle>pvsanal</citetitle></link>. Processing time is directly proportional to inoscs. |
| 31 | </para> |
| 32 | |
| 33 | <para> |
| 34 | <emphasis>ibinoffset</emphasis> (optional, default=0) -- The first (lowest) bin to resynthesise, counting from 0 (default = 0). |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | <emphasis>ibinincr</emphasis> (optional) -- Starting from bin ibinoffset, resynthesize bins ibinincr apart. |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | <emphasis>iinit</emphasis> (optional) -- Skip reinitialization. This is not currently implemented for any of these opcodes, and it remains to be seen if it is even practical. |
| 43 | </para> |
| 44 | </refsect1> |
| 45 | |
| 46 | <refsect1> |
| 47 | <title>Performance</title> |
| 48 | <para> |
| 49 | <emphasis>kfmod</emphasis> -- Scale all frequencies by factor kfmod. 1.0 = no change, 2 = up one octave. |
| 50 | </para> |
| 51 | |
| 52 | <para> |
| 53 | <emphasis>pvsadsyn</emphasis> is experimental, and implements the oscillator bank using a fast direct calculation method, rather than a lookup table. This takes advantage of the fact, empirically arrived at, that for the analysis rates generally used, (and presuming analysis using <link linkend="pvsanal"><citetitle>pvsanal</citetitle></link>, where frequencies in a bin change only slightly between frames) it is not necessary to interpolate frequencies between frames, only amplitudes. Accurate resynthesis is often contingent on the use of pvsanal with iwinsize = ifftsize*2. |
| 54 | </para> |
| 55 | |
| 56 | <para> |
| 57 | This opcode is the most likely to change, or be much extended, according to feedback and advice from users. It is likely that a full interpolating table-based method will be added, via a further optional iarg. The parameter list to pvsadsyn mimics that for <link linkend="pvadd"><citetitle>pvadd</citetitle></link>, but excludes spectral extraction. |
| 58 | </para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>Examples</title> |
| 63 | <para> |
| 64 | Here is an example of the pvsadsyn opcode. It uses the file <ulink url="examples/pvsadsyn.csd"><citetitle>pvsadsyn.csd</citetitle></ulink>. |
| 65 | <example> |
| 66 | <title>Example of the pvsadsyn opcode.</title> |
| 67 | <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> |
| 68 | <xi:include href="examples-xml/pvsadsyn.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 69 | </example> |
| 70 | </para> |
| 71 | </refsect1> |
| 72 | |
| 73 | <refsect1> |
| 74 | <title>See also</title> |
| 75 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 76 | </refsect1> |
| 77 | |
| 78 | <refsect1> |
| 79 | <title>Credits</title> |
| 80 | <para> |
| 81 | <simplelist> |
| 82 | <member>Author: &namerichard;</member> |
| 83 | <member>August 2001 </member> |
| 84 | </simplelist> |
| 85 | </para> |
| 86 | |
| 87 | <para>New in version 4.13</para> |
| 88 | </refsect1> |
| 89 | </refentry> |