| 1 | |
| 2 | <refentry id="pvscross"> |
| 3 | <indexterm id="IndexPvscross"><primary>pvscross</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>pvscross</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>pvscross</refname> |
| 11 | <refpurpose> |
| 12 | Performs cross-synthesis between two source fsigs. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Performs cross-synthesis between two source fsigs. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>fsig <command>pvscross</command> fsrc, fdest, kamp1, kamp2</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Performance</title> |
| 30 | <para> |
| 31 | The operation of this opcode is identical to that of <link linkend="pvcross"><citetitle>pvcross</citetitle></link> (q.v.), except in using <emphasis>fsig</emphasis>s rather than analysis files, and the absence of spectral envelope preservation. The amplitudes from <emphasis>fsrc</emphasis> and <emphasis>fdest</emphasis> (using scale factors <emphasis>kamp1</emphasis> for <emphasis>fsrc</emphasis> and <emphasis>kamp2</emphasis> for <emphasis>fdest</emphasis>) are applied to the frequencies of <emphasis>fsrc</emphasis>. <emphasis>kamp1</emphasis> and <emphasis>kamp2</emphasis> must not exceed the range 0 to 1. |
| 32 | </para> |
| 33 | <para> |
| 34 | With this opcode, cross-synthesis can be performed on real-time audio input, by using <link linkend="pvsanal"><citetitle>pvsanal</citetitle></link> to generate <emphasis>fsrc</emphasis> and <emphasis>fdest</emphasis>. These must have the same format. |
| 35 | </para> |
| 36 | <warning> |
| 37 | <para> |
| 38 | It is unsafe to use the same f-variable for both input and output of pvs opcodes. Using the same one might lead to undefined behavior on some opcodes. Use a different one on the left and right sides of the opcode. |
| 39 | </para> |
| 40 | </warning> |
| 41 | |
| 42 | </refsect1> |
| 43 | |
| 44 | <refsect1> |
| 45 | <title>Examples</title> |
| 46 | <para> |
| 47 | Here is an example of the use of the <emphasis>pvscross</emphasis> opcode. It uses the file <ulink url="examples/pvscross.csd"><citetitle>pvscross.csd</citetitle></ulink>. |
| 48 | <example> |
| 49 | <title>Example of the <emphasis>pvscross</emphasis> opcode.</title> |
| 50 | <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> |
| 51 | <xi:include href="examples-xml/pvscross.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 52 | </example> |
| 53 | </para> |
| 54 | </refsect1> |
| 55 | |
| 56 | <refsect1> |
| 57 | <title>See also</title> |
| 58 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>Credits</title> |
| 63 | <para> |
| 64 | <simplelist> |
| 65 | <member>Author: &namerichard;</member> |
| 66 | <member>August 2001 </member> |
| 67 | </simplelist> |
| 68 | </para> |
| 69 | |
| 70 | <para>November 2003. Thanks to &namekanata;, fixed the link to the <emphasis>pvcross</emphasis> opcode.</para> |
| 71 | |
| 72 | <para>New in version 4.13</para> |
| 73 | </refsect1> |
| 74 | </refentry> |