Debian Codegraph @

opcodes/ATScross.xml

raw symbols SCIP
1 
2 <refentry id="ATScross">
3 <indexterm id="IndexATScross"><primary>ATScross</primary></indexterm>
4 <refentryinfo><title>Spectral Processing:ATS</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>ATScross</refentrytitle>
7 </refmeta>
8
9 <refnamediv>
10 <refname>ATScross</refname>
11 <refpurpose> perform cross synthesis from ATS analysis files.
12 </refpurpose>
13 </refnamediv>
14 <refsect1>
15 <title>Description</title>
16 <para>
17 <emphasis>ATScross</emphasis> uses data from an ATS analysis file and data from an <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link> to perform cross synthesis.
18 </para>
19 </refsect1>
20 <refsect1>
21 <title>Syntax</title>
22 <synopsis>ar <command>ATScross</command> ktimepnt, kfmod, iatsfile, ifn, kmylev, kbuflev, ipartials \
23 [, ipartialoffset, ipartialincr]</synopsis>
24 </refsect1>
25 <refsect1>
26 <title>Initialization</title>
27 <para>
28 <emphasis>iatsfile</emphasis> – integer or character-string denoting a control-file derived from ATS analysis of an audio signal. An integer denotes the suffix of a file ATS.m; a character-string (in double quotes) gives a filename, optionally a full pathname. If not full-path, the file is sought first in the current directory, then in the one given by the environment variable SADIR (if defined).
29 </para>
30 <para><emphasis>ifn</emphasis> – table number of a stored function containing a sine wave.</para>
31 <para><emphasis>ipartials</emphasis> – number of partials that will be used in the resynthesis
32 </para>
33 <para><emphasis>ipartialoffset</emphasis> (optional) – is the first partial used (defaults to 0).
34 </para>
35 <para><emphasis>ipartialincr</emphasis> (optional) – sets an increment by which these synthesis opcodes counts up from <emphasis>ipartialoffset</emphasis> for ibins components in the re-synthesis (defaults to 1).
36 </para>
37 </refsect1>
38 <refsect1>
39 <title>Performance</title>
40 <para><emphasis>ktimepnt</emphasis> – The time pointer in seconds used to index the ATS file. Used for <emphasis>ATScross</emphasis> exactly the same as for <link linkend="pvoc"><citetitle>pvoc</citetitle></link>.</para>
41 <para>
42 <emphasis>kfmod</emphasis> – an input for performing pitch transposition or frequency modulation on all of the synthesized partials, if no fm or pitch change is desired then use a 1 for this value.
43 </para>
44 <para><emphasis>kmylev</emphasis> - scales the <emphasis>ATScross</emphasis> component of the frequency spectrum applied to the partials from the ATS file indicated by the <emphasis>ATScross</emphasis> opcode. The frequency spectrum information comes from the <emphasis>ATScross</emphasis> ATS file. A value of 1 (and 0 for <emphasis>kbuflev</emphasis>) gives the same results as <link linkend="ATSadd"><citetitle>ATSadd</citetitle></link>.
45 </para>
46 <para><emphasis>kbuflev</emphasis> - scales the <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link> component of the frequency spectrum applied to the partials from the ATS file indicated by the <emphasis>ATScross</emphasis> opcode. The frequency spectrum information comes from the <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link> ATS file. A value of 1 (and 0 for <emphasis>kmylev</emphasis>) results in partials that have frequency information from the ATS file given by the <emphasis>ATScross</emphasis>, but amplitudes imposed by data from the ATS file given by <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link>.
47 </para>
48 <para><emphasis>ATScross</emphasis> uses data from an ATS analysis file (indicated by <emphasis>iatsfile</emphasis>) and data from an <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link> to perform cross synthesis. <emphasis>ATScross</emphasis> uses <emphasis>ktimepnt</emphasis>, <emphasis>kfmod</emphasis>, <emphasis>ipartials</emphasis>, <emphasis>ipartialoffset</emphasis> and <emphasis>ipartialincr</emphasis> just like <link linkend="ATSadd"><citetitle>ATSadd</citetitle></link>. <emphasis>ATScross</emphasis> synthesizes a sine-wave for each partial selected by the user and uses the frequency of that partial (after scaling in frequency by <emphasis>kfmod</emphasis>) to index the table created by <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link>. Interpolation is used to get in-between values. <emphasis>ATScross</emphasis> uses the sum of the amplitude data from its ATS file (scaled by <emphasis>kmylev</emphasis>) and the amplitude data gained from an <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link> (scaled by <emphasis>kbuflev</emphasis>) to scale the amplitude of each partial it synthesizes. Setting <emphasis>kmylev</emphasis> to one and <emphasis>kbuflev</emphasis> to zero will make <emphasis>ATScross</emphasis> act exactly like <link linkend="ATSadd"><citetitle>ATSadd</citetitle></link>. Setting <emphasis>kmylev</emphasis> to zero and <emphasis>kbuflev</emphasis> to one will produce a sound that has all the partials selected by the <emphasis>ATScross</emphasis> ugen, but with amplitudes taken from an <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link>. The time pointers of the <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link> and <emphasis>ATScross</emphasis> do not need to be the same.
49 </para>
50 </refsect1>
51 <refsect1>
52 <title>Examples</title>
53 <para>
54 Here is an example of the ATScross opcode. It uses the file <ulink url="examples/ATScross.csd"><citetitle>ATScross.csd</citetitle></ulink>.
55 <example>
56 <title>Example of the ATScross opcode.</title>
57 <xi:include href="examples-xml/ATScross.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
58 </example>
59 </para>
60 </refsect1>
61
62 <refsect1>
63 <title>See also</title>
64 <para><link linkend="SpectralATS"><citetitle>ATS Spectral Processing</citetitle></link></para>
65 </refsect1>
66
67 <refsect1>
68 <title>Credits</title>
69 <para>
70 <simplelist>
71 <member>Author: Alex Norman</member>
72 <member>Seattle,Washington</member>
73 <member>2004</member>
74 </simplelist>
75 </para>
76 </refsect1>
77 </refentry>