| 1 | |
| 2 | <refentry id="pvsbandwidth"> |
| 3 | <indexterm id="IndexPvsbandwidth"><primary>pvsbandwidth</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>pvsbandwidth</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>pvsbandwidth</refname> |
| 11 | <refpurpose> |
| 12 | Calculate the spectral bandwidth of a signal. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | Calculate the spectral bandwidth of a signal from its discrete Fourier transform. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>kbnd <command>pvsbandwidth</command> fsig</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Performance</title> |
| 30 | <para> |
| 31 | <emphasis>kbnd</emphasis> -- the spectral bandwidth |
| 32 | </para> |
| 33 | <para> |
| 34 | <emphasis>fsig</emphasis> -- an input pv stream |
| 35 | </para> |
| 36 | </refsect1> |
| 37 | |
| 38 | <refsect1> |
| 39 | <title>Examples</title> |
| 40 | <para> |
| 41 | Here is an example of the use of the <emphasis>pvsbandwidth</emphasis> opcode. It uses the file <ulink url="examples/pvsbandwidth.csd"><citetitle>pvsbandwidth.csd</citetitle></ulink>. |
| 42 | <example> |
| 43 | <title>Example of the <emphasis>pvsbandwidth</emphasis> opcode.</title> |
| 44 | <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> |
| 45 | <xi:include href="examples-xml/pvsbandwidth.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 46 | </example> |
| 47 | </para> |
| 48 | </refsect1> |
| 49 | |
| 50 | <refsect1> |
| 51 | <title>See also</title> |
| 52 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 53 | </refsect1> |
| 54 | |
| 55 | <refsect1> |
| 56 | <title>Credits</title> |
| 57 | <para> |
| 58 | <simplelist> |
| 59 | <member>Author: Victor Lazzarini</member> |
| 60 | <member>March 2020</member> |
| 61 | </simplelist> |
| 62 | </para> |
| 63 | </refsect1> |
| 64 | </refentry> |