| 1 | |
| 2 | <refentry id="tabifd"> |
| 3 | <indexterm id="Indextabifd"><primary>tabifd</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>tabifd</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>tabifd</refname> |
| 13 | <refpurpose> |
| 14 | Instantaneous Frequency Distribution, magnitude and phase analysis. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para> |
| 21 | The tabifd opcode takes an input function table and performs an Instantaneous Frequency, |
| 22 | magnitude and phase analysis, using the STFT and tabifd (Instantaneous Frequency Distribution), |
| 23 | as described in Lazzarini et al, "Time-stretching using the Instantaneous Frequency Distribution and Partial |
| 24 | Tracking", Proc.of ICMC05, Barcelona. It generates two PV streaming signals, one containing the |
| 25 | amplitudes and frequencies (a similar output to pvsanal) and another containing amplitudes and |
| 26 | unwrapped phases. |
| 27 | </para> |
| 28 | </refsect1> |
| 29 | |
| 30 | <refsect1> |
| 31 | <title>Syntax</title> |
| 32 | <synopsis>ffr,fphs <command>tabifd</command> ktimpt, kamp, kpitch, ifftsize, ihopsize, iwintype,ifn</synopsis> |
| 33 | </refsect1> |
| 34 | |
| 35 | <refsect1> |
| 36 | <title>Initialization</title> |
| 37 | |
| 38 | <para> |
| 39 | <emphasis>ifftsize</emphasis> -- FFT analysis size, must be power-of-two and integer multiple of the hopsize. |
| 40 | </para> |
| 41 | |
| 42 | <para> |
| 43 | <emphasis>ihopsize</emphasis> -- hopsize in samples |
| 44 | </para> |
| 45 | |
| 46 | <para> |
| 47 | <emphasis>iwintype</emphasis> -- window type (O: Hamming, 1: Hanning) |
| 48 | </para> |
| 49 | |
| 50 | <para> |
| 51 | <emphasis>ifn</emphasis> -- source function table |
| 52 | </para> |
| 53 | </refsect1> |
| 54 | |
| 55 | <refsect1> |
| 56 | <title>Performance</title> |
| 57 | <para> |
| 58 | <emphasis>ffr</emphasis> -- output pv stream in AMP_FREQ format |
| 59 | </para> |
| 60 | |
| 61 | <para> |
| 62 | <emphasis>fphs</emphasis> -- output pv stream in AMP_PHASE format |
| 63 | </para> |
| 64 | |
| 65 | <para> |
| 66 | <emphasis>ktimpt</emphasis> -- time point (in secs) to read from |
| 67 | table (if less than 0 or bigger than table length, it will wraparound) |
| 68 | </para> |
| 69 | |
| 70 | <para> |
| 71 | <emphasis>kamp</emphasis> -- amplitude scaling |
| 72 | </para> |
| 73 | |
| 74 | <para> |
| 75 | <emphasis>kpitch</emphasis> -- pitch scaling (transposition) |
| 76 | </para> |
| 77 | |
| 78 | </refsect1> |
| 79 | |
| 80 | <refsect1> |
| 81 | <title>Examples</title> |
| 82 | <para> |
| 83 | Here is an example of the tabifd opcode. It uses the file <ulink url="examples/tabifd.csd"><citetitle>tabifd.csd</citetitle></ulink>. |
| 84 | <example> |
| 85 | <title>Example of the tabifd opcode.</title> |
| 86 | <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> |
| 87 | <xi:include href="examples-xml/tabifd.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 88 | </example> |
| 89 | </para> |
| 90 | <para>The example above shows the tabifd analysis feeding into partial tracking andcubic-phase additive resynthesis with pitch shifting.</para> |
| 91 | </refsect1> |
| 92 | |
| 93 | <refsect1> |
| 94 | <title>See also</title> |
| 95 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 96 | </refsect1> |
| 97 | |
| 98 | <refsect1> |
| 99 | <title>Credits</title> |
| 100 | <para> |
| 101 | <simplelist> |
| 102 | <member>Author: &namevictor;</member> |
| 103 | <member>Aug 2015 </member> |
| 104 | </simplelist> |
| 105 | </para> |
| 106 | |
| 107 | <para>New plugin in version 6</para> |
| 108 | <para>Aug 2015</para> |
| 109 | </refsect1> |
| 110 | </refentry> |