| 1 | |
| 2 | <refentry id="trmix"> |
| 3 | <indexterm id="Indextrmix"><primary>trmix</primary></indexterm> |
| 4 | |
| 5 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 6 | <refmeta> |
| 7 | <refentrytitle>trmix</refentrytitle> |
| 8 | </refmeta> |
| 9 | |
| 10 | <refnamediv> |
| 11 | <refname>trmix</refname> |
| 12 | <refpurpose> |
| 13 | Streaming partial track mixing. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | The <emphasis>trmix</emphasis> opcode takes two inputs containg TRACKS pv streaming signals (as generated, |
| 21 | for instance by <emphasis>partials</emphasis>) and mixes them into a single TRACKS stream. Tracks will be |
| 22 | mixed up to the available space (defined by the original number of FFT bins in |
| 23 | the analysed signals). If the sum of the input tracks exceeds this space, the higher-ordered |
| 24 | tracks in the second input will be pruned. |
| 25 | </para> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Syntax</title> |
| 30 | <synopsis>fsig <command>trmix</command> fin1, fin2 </synopsis> |
| 31 | </refsect1> |
| 32 | |
| 33 | <refsect1> |
| 34 | <title>Performance</title> |
| 35 | <para> |
| 36 | <emphasis>fsig</emphasis> -- output pv stream in TRACKS format |
| 37 | </para> |
| 38 | |
| 39 | <para> |
| 40 | <emphasis>fin1</emphasis> -- first input pv stream in TRACKS format. |
| 41 | </para> |
| 42 | |
| 43 | <para> |
| 44 | <emphasis>fin2</emphasis> -- second input pv stream in TRACKS format |
| 45 | </para> |
| 46 | </refsect1> |
| 47 | |
| 48 | <refsect1> |
| 49 | <title>Examples</title> |
| 50 | <para> |
| 51 | Here is an example of the trmix opcode. It uses the file <ulink url="examples/trmix.csd"><citetitle>trmix.csd</citetitle></ulink>. |
| 52 | <example> |
| 53 | <title>Example of the trmix opcode.</title> |
| 54 | <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> |
| 55 | <xi:include href="examples-xml/trmix.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 56 | </example> |
| 57 | </para> |
| 58 | <para> |
| 59 | The example above shows partial tracking of an ifd-analysis signal, frequency |
| 60 | splitting and pitch shifting of the upper part of the spectrum, followed by |
| 61 | the remix of the two parts of the spectrum and resynthesis. |
| 62 | </para> |
| 63 | </refsect1> |
| 64 | |
| 65 | <refsect1> |
| 66 | <title>See also</title> |
| 67 | <para><link linkend="SpectralRealTime"><citetitle>Tools for Real-time Spectral Processing (pvs opcodes)</citetitle></link></para> |
| 68 | </refsect1> |
| 69 | |
| 70 | <refsect1> |
| 71 | <title>Credits</title> |
| 72 | <para> |
| 73 | <simplelist> |
| 74 | <member>Author: &namevictor;</member> |
| 75 | <member>February 2006 </member> |
| 76 | </simplelist> |
| 77 | </para> |
| 78 | <para>New in Csound 5.01</para> |
| 79 | </refsect1> |
| 80 | </refentry> |