| 1 | |
| 2 | <refentry id="ATSaddnz"> |
| 3 | <indexterm id="IndexATSaddnz"><primary>ATSaddnz</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:ATS</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>ATSaddnz</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>ATSaddnz</refname> |
| 11 | <refpurpose> uses the data from an ATS analysis file to perform noise resynthesis. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | <refsect1> |
| 15 | <title>Description</title> |
| 16 | <para> |
| 17 | <emphasis>ATSaddnz</emphasis> reads from an ATS analysis file and uses the data to perform additive synthesis using a modified randi function. |
| 18 | </para> |
| 19 | </refsect1> |
| 20 | <refsect1> |
| 21 | <title>Syntax</title> |
| 22 | <synopsis>ar <command>ATSaddnz</command> ktimepnt, iatsfile, ibands[, ibandoffset, ibandincr]</synopsis> |
| 23 | </refsect1> |
| 24 | <refsect1> |
| 25 | <title>Initialization</title> |
| 26 | <para> |
| 27 | <emphasis>iatsfile</emphasis> – the ATS number (n in ats.n) or the name in quotes of the analysis file made using <link linkend="UtilityAtsa"><citetitle>ATSA</citetitle></link>. |
| 28 | </para> |
| 29 | <para><emphasis>ibands</emphasis> – number of noise bands that will be used in the resynthesis (the noise has a maximum of 25 bands) |
| 30 | </para> |
| 31 | <para><emphasis>ibandoffset</emphasis> (optional) – is the first noise band used (defaults to 0). |
| 32 | </para> |
| 33 | <para><emphasis>ibandincr</emphasis> (optional) – sets an increment by which these synthesis opcodes counts up from <emphasis>ibandoffset</emphasis> for ibins components in the re-synthesis (defaults to 1). |
| 34 | </para> |
| 35 | </refsect1> |
| 36 | <refsect1> |
| 37 | <title>Performance</title> |
| 38 | <para><emphasis>ktimepnt</emphasis> – The time pointer in seconds used to index the ATS file. Used for <emphasis>ATSaddnz</emphasis> exactly the same as for <link linkend="pvoc"><citetitle>pvoc</citetitle></link> and <link linkend="ATSadd"><citetitle>ATSadd</citetitle></link>.</para> |
| 39 | <para><emphasis>ATSaddnz</emphasis> and <link linkend="ATSadd"><citetitle>ATSadd</citetitle></link> are based on <link linkend="pvadd"><citetitle>pvadd</citetitle></link> by Richard Karpen and use files created by Juan Pampin's ATS (<ulink url="https://ccrma.stanford.edu/~juan/ATS_manual.html"><citetitle>Analysis - Transformation - Synthesis</citetitle></ulink>). |
| 40 | </para> |
| 41 | <para><emphasis>ATSaddnz</emphasis> also reads from an ATS file but it resynthesizes the noise from noise energy data contained in the ATS file. It uses a modified randi function to create band limited noise and modulates that with a cosine wave, to synthesize a user specified selection of frequency bands. Modulating the noise is required to put the band limited noise in the correct place in the frequency spectrum. |
| 42 | </para> |
| 43 | </refsect1> |
| 44 | <refsect1> |
| 45 | <title>Examples</title> |
| 46 | <programlisting> ktime <emphasis role="opc">line</emphasis> 0, p3, 2.5 |
| 47 | asig <emphasis role="opc">ATSaddnz</emphasis> ktime, "clarinet.ats", 25 |
| 48 | </programlisting> |
| 49 | <para>In the example above we are synthesizing all 25 noise bands from the data contained in the ATS analysis file called "clarinet.ats". |
| 50 | </para> |
| 51 | <para> |
| 52 | Here is a complete example of the ATSaddnz opcode. It uses the file <ulink url="examples/ATSaddnz.csd"><citetitle>ATSaddnz.csd</citetitle></ulink>. |
| 53 | <example> |
| 54 | <title>Example of the ATSaddnz opcode.</title> |
| 55 | <xi:include href="examples-xml/ATSaddnz.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 56 | </example> |
| 57 | </para> |
| 58 | |
| 59 | <para> |
| 60 | Here is another example of the ATSaddnz opcode. It uses the file <ulink url="examples/ATSaddnz-2.csd"><citetitle>ATSaddnz-2.csd</citetitle></ulink>. |
| 61 | <example> |
| 62 | <title>Example 2 of the ATSaddnz opcode.</title> |
| 63 | <xi:include href="examples-xml/ATSaddnz-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 64 | </example> |
| 65 | </para> |
| 66 | </refsect1> |
| 67 | |
| 68 | <refsect1> |
| 69 | <title>See also</title> |
| 70 | <para><link linkend="SpectralATS"><citetitle>ATS Spectral Processing</citetitle></link></para> |
| 71 | </refsect1> |
| 72 | |
| 73 | <refsect1> |
| 74 | <title>Credits</title> |
| 75 | <para> |
| 76 | <simplelist> |
| 77 | <member>Author: Alex Norman</member> |
| 78 | <member>Seattle,Washington</member> |
| 79 | <member>2004</member> |
| 80 | </simplelist> |
| 81 | </para> |
| 82 | </refsect1> |
| 83 | </refentry> |