| 1 | |
| 2 | <refentry id="pvsvoc"> |
| 3 | <indexterm id="Indexpvsvoc"><primary>pvsvoc</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>pvsvoc</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>pvsvoc</refname> |
| 13 | <refpurpose> |
| 14 | Combine the spectral envelope of one fsig with the excitation (frequencies) of another. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | This opcode provides support for cross-synthesis of amplitudes and frequencies. It takes |
| 22 | the amplitudes of one input fsig and combines with frequencies from another. It is a spectral |
| 23 | version of the well-known channel vocoder. |
| 24 | </para> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Syntax</title> |
| 29 | <synopsis>fsig <command>pvsvoc</command> famp, fexc, kdepth, kgain [,kcoefs]</synopsis> |
| 30 | </refsect1> |
| 31 | |
| 32 | <refsect1> |
| 33 | <title>Performance</title> |
| 34 | <para> |
| 35 | <emphasis>fsig</emphasis> -- output pv stream |
| 36 | </para> |
| 37 | |
| 38 | <para> |
| 39 | <emphasis>famp</emphasis> -- input pv stream from which the amplitudes will be extracted |
| 40 | </para> |
| 41 | |
| 42 | <para> |
| 43 | <emphasis>fexc</emphasis> -- input pv stream from which the frequencies will be taken |
| 44 | </para> |
| 45 | |
| 46 | <para> |
| 47 | <emphasis>kdepth</emphasis> -- depth of effect, affecting how much of the frequencies will |
| 48 | be taken from the second fsig: 0, the output is the famp signal, 1 the output is the famp |
| 49 | amplitudes and fexc frequencies. |
| 50 | </para> |
| 51 | |
| 52 | <para> |
| 53 | <emphasis>kgain</emphasis> -- gain boost/attenuation applied to the output. |
| 54 | </para> |
| 55 | |
| 56 | <para> |
| 57 | <emphasis>kcoefs</emphasis> -- number of cepstrum coefs used in spectral envelope estimation (defaults to 80). |
| 58 | </para> |
| 59 | <warning> |
| 60 | <para> |
| 61 | 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. |
| 62 | </para> |
| 63 | </warning> |
| 64 | |
| 65 | </refsect1> |
| 66 | |
| 67 | <refsect1> |
| 68 | <title>Examples</title> |
| 69 | <para> |
| 70 | Here is an example of the pvsvoc opcode. It uses the file <ulink url="examples/pvsvoc.csd"><citetitle>pvsvoc.csd</citetitle></ulink>. |
| 71 | <example> |
| 72 | <title>Example of the pvsvoc opcode.</title> |
| 73 | <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> |
| 74 | <xi:include href="examples-xml/pvsvoc.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 75 | </example> |
| 76 | </para> |
| 77 | <para> |
| 78 | The example above shows a typical cross-synthesis operation. The input signal (say a vocal sound) is used for its amplitude spectrum. An oscillator with an arbitrary complex waveform produces the excitation signal, giving the vocal sound its pitch. |
| 79 | </para> |
| 80 | </refsect1> |
| 81 | |
| 82 | <refsect1> |
| 83 | <title>See also</title> |
| 84 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 85 | </refsect1> |
| 86 | |
| 87 | <refsect1> |
| 88 | <title>Credits</title> |
| 89 | <para> |
| 90 | <simplelist> |
| 91 | <member>Author: &namevictor;</member> |
| 92 | <member>April 2005 </member> |
| 93 | </simplelist> |
| 94 | </para> |
| 95 | |
| 96 | <para>New plugin in version 5</para> |
| 97 | <para>April 2005.</para> |
| 98 | </refsect1> |
| 99 | </refentry> |