| 1 | |
| 2 | <refentry id="scans"> |
| 3 | <indexterm id="IndexScans"><primary>scans</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Scanned Synthesis</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>scans</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>scans</refname> |
| 13 | <refpurpose> |
| 14 | Generate audio output using scanned synthesis. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para>Plugin opcode in scansyn.</para> |
| 21 | <para> |
| 22 | Generate audio output using scanned synthesis. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>ares <command>scans</command> kamp, kfreq, ifn, id [, iorder]</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>ifn</emphasis> -- ftable containing the scanning trajectory. This is a series of numbers that contains addresses of masses. The order of these addresses is used as the scan path. It should not contain values greater than the number of masses, or negative numbers. See the <link linkend="SiggenScanTop"><citetitle>introduction to the scanned synthesis section</citetitle></link>. |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | <emphasis>id</emphasis> -- ID number of the <link linkend="scanu"><citetitle>scanu</citetitle></link> opcode's waveform to use |
| 39 | </para> |
| 40 | |
| 41 | <para> |
| 42 | <emphasis>iorder</emphasis> (optional, default=0) -- order of |
| 43 | interpolation used internally. It can take any value in the |
| 44 | range 1 to 4, and defaults to 4 if outside that range, which is |
| 45 | quartic interpolation. The setting of 3 is cubic, 2 is |
| 46 | quadratic and 1 is linear. The higher numbers are slower, but |
| 47 | not necessarily better. |
| 48 | </para> |
| 49 | </refsect1> |
| 50 | |
| 51 | <refsect1> |
| 52 | <title>Performance</title> |
| 53 | <para> |
| 54 | <emphasis>kamp</emphasis> -- output amplitude. Note that the resulting amplitude is also dependent on instantaneous value in the wavetable. This number is effectively the scaling factor of the wavetable. |
| 55 | </para> |
| 56 | |
| 57 | <para> |
| 58 | <emphasis>kfreq</emphasis> -- frequency of the scan rate |
| 59 | </para> |
| 60 | </refsect1> |
| 61 | |
| 62 | <refsect1 id="scanexamp"> |
| 63 | <title>Examples</title> |
| 64 | <para> |
| 65 | Here is an example of the scanned synthesis. It uses the file <ulink url="examples/scans.csd"><citetitle>scans.csd</citetitle></ulink>. |
| 66 | <example> |
| 67 | <title>Example of the scans opcode.</title> |
| 68 | <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> |
| 69 | <xi:include href="examples-xml/scans.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 70 | </example> |
| 71 | </para> |
| 72 | <para> |
| 73 | Here is another example of the scanned synthesis. It uses the file <ulink url="examples/scans-2.csd"><citetitle>scans-2.csd</citetitle></ulink>. |
| 74 | <example> |
| 75 | <title>Second example of the scans opcode.</title> |
| 76 | <xi:include href="examples-xml/scans-2.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 77 | </example> |
| 78 | </para> |
| 79 | <para> |
| 80 | A plot of the table <citetitle>itraj1 ftgenonce 6, 0, 128, -7, 0, 128, 128</citetitle> and <citetitle>itraj2 ftgenonce 66, 0, 128, -23, "/manual/examples/straightline_max128_128.traj"</citetitle>: |
| 81 | </para> |
| 82 | <imageobject> |
| 83 | <imagedata fileref="images/straightline_small.png" format="PNG"/> |
| 84 | </imageobject> |
| 85 | <para> |
| 86 | and this is what the table <citetitle>itraj3 ftgenonce 666, 0, 128, -23, "/manual/examples/128-spiral-8,16,128,2,1over2.traj"</citetitle> looks like: |
| 87 | </para> |
| 88 | <imageobject> |
| 89 | <imagedata fileref="images/spiral_small.png" format="PNG"/> |
| 90 | </imageobject> |
| 91 | |
| 92 | </refsect1> |
| 93 | |
| 94 | <refsect1> |
| 95 | <title>See also</title> |
| 96 | <para><link linkend="SiggenScanTop"><citetitle>Scanned Synthesis</citetitle></link></para> |
| 97 | <para> More information on the Scanned Synthesis opcodes: <ulink url="http://www.csounds.com/stevenyi/scanned/yi_scannedSynthesis.html"><citetitle>Working with Scanned Synthesis</citetitle></ulink>, written by Steven Yi, and some <ulink url="http://www.csounds.com/scanned/"><citetitle>tutorials</citetitle></ulink> by Richard Boulanger.</para> |
| 98 | </refsect1> |
| 99 | |
| 100 | <refsect1> |
| 101 | <title>Credits</title> |
| 102 | <para> |
| 103 | <simplelist> |
| 104 | <member>Author: &nameparis;</member> |
| 105 | <member>MIT Media Lab</member> |
| 106 | <member>Boston, Massachussetts USA</member> |
| 107 | </simplelist> |
| 108 | </para> |
| 109 | <para>New in Csound version 4.05</para> |
| 110 | </refsect1> |
| 111 | </refentry> |