| 1 | |
| 2 | <refentry id="ATSpartialtap"> |
| 3 | <indexterm id="IndexATSpartialtap"><primary>ATSpartialtap</primary></indexterm> |
| 4 | <refentryinfo><title>Spectral Processing:ATS</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>ATSpartialtap</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | <refnamediv> |
| 10 | <refname>ATSpartialtap</refname> |
| 11 | <refpurpose> returns a frequency, amplitude pair from an <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link> opcode. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | <refsect1> |
| 15 | <title>Description</title> |
| 16 | <para> |
| 17 | <emphasis>ATSpartialtap</emphasis> takes a partial number and returns a frequency, amplitude pair. The frequency and amplitude data comes from an <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link> opcode. |
| 18 | </para> |
| 19 | </refsect1> |
| 20 | <refsect1> |
| 21 | <title>Syntax</title> |
| 22 | <synopsis>kfrq, kamp <command>ATSpartialtap</command> ipartialnum</synopsis> |
| 23 | </refsect1> |
| 24 | <refsect1> |
| 25 | <title>Initialization</title> |
| 26 | <para> |
| 27 | <emphasis>ipartialnum</emphasis> - indicates the partial that the <emphasis>ATSpartialtap</emphasis> opcode should read from an <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link>. |
| 28 | </para> |
| 29 | </refsect1> |
| 30 | <refsect1> |
| 31 | <title>Performance</title> |
| 32 | <para><emphasis>kfrq</emphasis> - returns the frequency value for the requested partial.</para> |
| 33 | <para><emphasis>kamp</emphasis> - returns the amplitude value for the requested partial.</para> |
| 34 | <para><emphasis>ATSpartialtap</emphasis> takes a partial number and returns a frequency, amplitude pair. The frequency and amplitude data comes from an <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link> opcode. This is more restricted version of <link linkend="ATSread"><citetitle>ATSread</citetitle></link>, since each <link linkend="ATSread"><citetitle>ATSread</citetitle></link> opcode has its own independent time pointer, and <emphasis>ATSpartialtap</emphasis> is restricted to the data given by an <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link>. Its simplicity is its attractive feature.</para> |
| 35 | </refsect1> |
| 36 | <refsect1> |
| 37 | <title>Examples</title> |
| 38 | <para> |
| 39 | Here is an example of the ATSpartialtap opcode. It uses the file <ulink url="examples/ATSpartialtap.csd"><citetitle>ATSpartialtap.csd</citetitle></ulink>. |
| 40 | |
| 41 | <example> |
| 42 | <title>Example of the ATSpartialtap opcode.</title> |
| 43 | |
| 44 | |
| 45 | |
| 46 | <xi:include href="examples-xml/ATSpartialtap.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 47 | </example> |
| 48 | </para> |
| 49 | <para> This example here uses an <emphasis>ATSpartialtap</emphasis>, and an <link linkend="ATSbufread"><citetitle>ATSbufread</citetitle></link> to read partials 5, 20 and 30 from 'beats.ats'. These amplitudes and frequencies could be used to re-synthesize those partials, or something all together different. |
| 50 | </para> |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <title>See also</title> |
| 55 | <para><link linkend="SpectralATS"><citetitle>ATS Spectral Processing</citetitle></link></para> |
| 56 | </refsect1> |
| 57 | |
| 58 | <refsect1> |
| 59 | <title>Credits</title> |
| 60 | <para> |
| 61 | <simplelist> |
| 62 | <member>Author: Alex Norman</member> |
| 63 | <member>Seattle,Washington</member> |
| 64 | <member>2004</member> |
| 65 | </simplelist> |
| 66 | </para> |
| 67 | </refsect1> |
| 68 | </refentry> |