| 1 | |
| 2 | <refentry id="pvsin"> |
| 3 | <indexterm id="Indexpvsin"><primary>pvsin</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>pvsin</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>pvsin</refname> |
| 11 | <refpurpose> |
| 12 | Retrieve an fsig from the input software bus; a pvs equivalent to chani. |
| 13 | </refpurpose> |
| 14 | </refnamediv> |
| 15 | |
| 16 | <refsect1> |
| 17 | <title>Description</title> |
| 18 | <para> |
| 19 | This opcode retrieves an f-sig from the pvs in software bus, which can be |
| 20 | used to get data from an external source, using the Csound 5 API. A channel |
| 21 | is created if not already existing. The fsig channel is in that case initialised with |
| 22 | the given parameters. It is important to note that the pvs input |
| 23 | and output (pvsout opcode) busses are independent and data is not shared between them. |
| 24 | </para> |
| 25 | </refsect1> |
| 26 | |
| 27 | <refsect1> |
| 28 | <title>Syntax</title> |
| 29 | <synopsis>fsig <command>pvsin</command> kchan[, isize, iolap, iwinsize, iwintype, iformat]</synopsis> |
| 30 | </refsect1> |
| 31 | |
| 32 | <refsect1> |
| 33 | <title>Initialization</title> |
| 34 | <para> |
| 35 | <emphasis>isize</emphasis> -- initial DFT size,defaults to 1024. |
| 36 | </para> |
| 37 | <para> |
| 38 | <emphasis>iolap</emphasis> -- size of overlap, defaults to <emphasis>isize</emphasis>/4. |
| 39 | </para> |
| 40 | <para> |
| 41 | <emphasis>iwinsize</emphasis> -- size of analysis window, defaults to <emphasis>isize</emphasis>. |
| 42 | </para> |
| 43 | <para> |
| 44 | <emphasis>iwintype</emphasis> -- type of window, defaults to Hanning (1) (see <emphasis>pvsanal</emphasis>) |
| 45 | </para> |
| 46 | <para> |
| 47 | <emphasis>iformat</emphasis> -- data format, defaults 0 (PVS_AMP_FREQ). Other possible |
| 48 | values are 1 (PVS_AMP_PHASE), 2 (PVS_COMPLEX) or 3 (PVS_TRACKS). |
| 49 | </para> |
| 50 | </refsect1> |
| 51 | <refsect1> |
| 52 | <title>Performance</title> |
| 53 | <para> |
| 54 | <emphasis>fsig</emphasis> -- output fsig. |
| 55 | </para> |
| 56 | <para> |
| 57 | <emphasis>kchan</emphasis> -- channel number. If non-existent, a channel will be created. |
| 58 | </para> |
| 59 | </refsect1> |
| 60 | |
| 61 | <refsect1> |
| 62 | <title>Examples</title> |
| 63 | <para> |
| 64 | <example> |
| 65 | <title>Example</title> |
| 66 | <programlisting> |
| 67 | fsig <emphasis role="opc">pvsin</emphasis> 0 <emphasis role="comment">; get data from pvs in bus channel 0</emphasis></programlisting> |
| 68 | </example> |
| 69 | </para> |
| 70 | </refsect1> |
| 71 | |
| 72 | <refsect1> |
| 73 | <title>See also</title> |
| 74 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 75 | </refsect1> |
| 76 | |
| 77 | <refsect1> |
| 78 | <title>Credits</title> |
| 79 | <para> |
| 80 | <simplelist> |
| 81 | <member>Author: &namevictor;</member> |
| 82 | <member>August 2006 </member> |
| 83 | </simplelist> |
| 84 | </para> |
| 85 | </refsect1> |
| 86 | </refentry> |