| 1 | |
| 2 | <refentry id="pvsblur"> |
| 3 | <indexterm id="IndexPvsblur"><primary>pvsblur</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>pvsblur</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>pvsblur</refname> |
| 11 | <refpurpose> |
| 12 | Average the amp/freq time functions of each analysis channel for |
| 13 | a specified time. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | Average the amp/freq time functions of each analysis channel for |
| 21 | a specified time (truncated to number of frames). As a side-effect |
| 22 | the input pvoc stream will be delayed by that amount. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>fsig <command>pvsblur</command> fsigin, kblurtime, imaxdel</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Performance</title> |
| 33 | <para> |
| 34 | <emphasis>fsig</emphasis> -- output pv stream |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | <emphasis>fsigin</emphasis> -- input pv stream. |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | <emphasis>kblurtime</emphasis> -- time in secs during which |
| 43 | windows will be averaged . |
| 44 | </para> |
| 45 | |
| 46 | <para> |
| 47 | <emphasis>imaxdel</emphasis> -- maximum delay time, used for |
| 48 | allocating memory used in the averaging operation. |
| 49 | </para> |
| 50 | |
| 51 | <para> |
| 52 | This opcode will blur a pvstream by smoothing the amplitude and |
| 53 | frequency time functions (a type of low-pass filtering); the |
| 54 | amount of blur will depend on the length of the averaging period, |
| 55 | larger blurtimes will result in a more pronounced effect. |
| 56 | </para> |
| 57 | <warning> |
| 58 | <para> |
| 59 | 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. |
| 60 | </para> |
| 61 | </warning> |
| 62 | </refsect1> |
| 63 | <refsect1> |
| 64 | <title>Examples</title> |
| 65 | <para> |
| 66 | Here is an example of the use of the <emphasis>pvsblur</emphasis> opcode. It uses the file <ulink url="examples/pvsblur.csd"><citetitle>pvsblur.csd</citetitle></ulink>. |
| 67 | <example> |
| 68 | <title>Example of the <emphasis>pvsblur</emphasis> opcode.</title> |
| 69 | <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> |
| 70 | <xi:include href="examples-xml/pvsblur.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 71 | </example> |
| 72 | </para> |
| 73 | </refsect1> |
| 74 | |
| 75 | <refsect1> |
| 76 | <title>See also</title> |
| 77 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 78 | </refsect1> |
| 79 | |
| 80 | <refsect1> |
| 81 | <title>Credits</title> |
| 82 | <para> |
| 83 | <simplelist> |
| 84 | <member>Author: &namevictor;</member> |
| 85 | <member>November 2004 </member> |
| 86 | </simplelist> |
| 87 | </para> |
| 88 | |
| 89 | <para>New plugin in version 5</para> |
| 90 | <para>November 2004.</para> |
| 91 | </refsect1> |
| 92 | </refentry> |