| 1 | |
| 2 | <refentry id="trsplit"> |
| 3 | <indexterm id="Indextrsplit"><primary>trsplit</primary></indexterm> |
| 4 | |
| 5 | <refentryinfo><title>Spectral Processing:Streaming</title></refentryinfo> |
| 6 | <refmeta> |
| 7 | <refentrytitle>trsplit</refentrytitle> |
| 8 | </refmeta> |
| 9 | |
| 10 | <refnamediv> |
| 11 | <refname>trsplit</refname> |
| 12 | <refpurpose> |
| 13 | Streaming partial track frequency splitting. |
| 14 | </refpurpose> |
| 15 | </refnamediv> |
| 16 | |
| 17 | <refsect1> |
| 18 | <title>Description</title> |
| 19 | <para> |
| 20 | The <emphasis>trsplit</emphasis> opcode takes an input containg a TRACKS pv streaming signal (as generated, |
| 21 | for instance by <emphasis>partials</emphasis>) and splits it into two signals according to a k-rate frequency 'split point'. |
| 22 | The first output will contain all tracks up from 0Hz to the split frequency and the second will |
| 23 | contain the tracks from the split frequency up to the Nyquist. |
| 24 | It can also, optionally, scale the gain of the output signals by a k-rate amount (default 1). |
| 25 | The result is two output signals containing only part of the original spectrum. |
| 26 | </para> |
| 27 | </refsect1> |
| 28 | |
| 29 | <refsect1> |
| 30 | <title>Syntax</title> |
| 31 | <synopsis>fsiglow, fsighi <command>trsplit</command> fin, ksplit[, kgainlow, kgainhigh]</synopsis> |
| 32 | </refsect1> |
| 33 | |
| 34 | <refsect1> |
| 35 | <title>Performance</title> |
| 36 | <para> |
| 37 | <emphasis>fsiglow</emphasis> -- output pv stream in TRACKS format containing the tracks below |
| 38 | the split point. |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | <emphasis>fsighi</emphasis> -- output pv stream in TRACKS format containing the tracks above and |
| 43 | including the split point. |
| 44 | </para> |
| 45 | |
| 46 | <para> |
| 47 | <emphasis>fin</emphasis> -- input pv stream in TRACKS format |
| 48 | </para> |
| 49 | |
| 50 | <para> |
| 51 | <emphasis>ksplit</emphasis> -- frequency split point in Hz |
| 52 | </para> |
| 53 | |
| 54 | <para> |
| 55 | <emphasis>kgainlow, kgainhig</emphasis> -- amplitude scaling of each one of the |
| 56 | outputs (default 1). |
| 57 | </para> |
| 58 | </refsect1> |
| 59 | |
| 60 | <refsect1> |
| 61 | <title>Examples</title> |
| 62 | <para> |
| 63 | Here is an example of the trsplit opcode. It uses the file <ulink url="examples/trsplit.csd"><citetitle>trsplit.csd</citetitle></ulink>. |
| 64 | <example> |
| 65 | <title>Example of the trsplit opcode.</title> |
| 66 | <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> |
| 67 | <xi:include href="examples-xml/trsplit.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 68 | </example> |
| 69 | </para> |
| 70 | <para> |
| 71 | The example above shows partial tracking of an ifd-analysis signal and |
| 72 | linear additive resynthesis of the upper part of the spectrum (from 1500Hz). |
| 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 Csound 5.01</para> |
| 90 | </refsect1> |
| 91 | </refentry> |