| 1 | |
| 2 | <refentry id="binit"> |
| 3 | <indexterm id="Indexbinit"><primary>binit</primary></indexterm> |
| 4 | |
| 5 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 6 | <refmeta> |
| 7 | <refentrytitle>binit</refentrytitle> |
| 8 | </refmeta> |
| 9 | |
| 10 | |
| 11 | |
| 12 | <refnamediv> |
| 13 | <refname>binit</refname> |
| 14 | <refpurpose> |
| 15 | PVS tracks to amplitude+frequency conversion. |
| 16 | |
| 17 | </refpurpose> |
| 18 | </refnamediv> |
| 19 | |
| 20 | <refsect1> |
| 21 | <title>Description</title> |
| 22 | <para> |
| 23 | The binit opcode takes an input containg a TRACKS pv streaming signal (as generated, |
| 24 | for instance by partials) and converts it into a equal-bandwidth bin-frame containing amplitude |
| 25 | and frequency pairs (PVS_AMP_FREQ), suitable for overlap-add resynthesis (such as performed by |
| 26 | pvsynth) or further PVS streaming phase vocoder signal transformations. For each frequency bin, |
| 27 | it will look for a suitable track signal to fill it; if not found, the bin will be empty (0 amplitude). |
| 28 | If more than one track fits a certain bin, the one with highest amplitude will be chosen. This |
| 29 | means that not all of the input signal is actually 'binned', the operation is lossy. However, in |
| 30 | many situations this loss is not perceptually relevant. |
| 31 | </para> |
| 32 | </refsect1> |
| 33 | |
| 34 | <refsect1> |
| 35 | <title>Syntax</title> |
| 36 | <synopsis>fsig <command>binit</command> fin, isize</synopsis> |
| 37 | </refsect1> |
| 38 | |
| 39 | <refsect1> |
| 40 | <title>Performance</title> |
| 41 | <para> |
| 42 | <emphasis>fsig</emphasis> -- output pv stream in PVS_AMP_FREQ format |
| 43 | </para> |
| 44 | |
| 45 | <para> |
| 46 | <emphasis>fin</emphasis> -- input pv stream in TRACKS format |
| 47 | </para> |
| 48 | <para> |
| 49 | <emphasis>isize</emphasis> -- FFT size of output (N). |
| 50 | </para> |
| 51 | <para> |
| 52 | |
| 53 | </para> |
| 54 | |
| 55 | </refsect1> |
| 56 | |
| 57 | <refsect1> |
| 58 | <title>Examples</title> |
| 59 | <para> |
| 60 | Here is an example of the binit opcode. It uses the file <ulink url="examples/binit.csd"><citetitle>binit.csd</citetitle></ulink>. |
| 61 | |
| 62 | <example> |
| 63 | <title>Example of the binit opcode.</title> |
| 64 | |
| 65 | |
| 66 | |
| 67 | <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> |
| 68 | <xi:include href="examples-xml/binit.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 69 | </example> |
| 70 | <para> |
| 71 | The example above shows partial tracking of an ifd-analysis signal, conversion to |
| 72 | bin frames and overlap-add resynthesis.</para> |
| 73 | </para> |
| 74 | </refsect1> |
| 75 | |
| 76 | <refsect1> |
| 77 | <title>See also</title> |
| 78 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 79 | </refsect1> |
| 80 | |
| 81 | <refsect1> |
| 82 | <title>Credits</title> |
| 83 | <para> |
| 84 | <simplelist> |
| 85 | <member>Author: &namevictor;</member> |
| 86 | <member>February 2006 </member> |
| 87 | </simplelist> |
| 88 | </para> |
| 89 | <para>New in Csound5.01</para> |
| 90 | </refsect1> |
| 91 | |
| 92 | </refentry> |