| 1 | |
| 2 | <refentry id="scanmap"> |
| 3 | <indexterm id="IndexScanmap"><primary>scanmap</primary></indexterm> |
| 4 | <refentryinfo><title>Signal Generators:Scanned Synthesis</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>scanmap</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>scanmap</refname> |
| 13 | <refpurpose> |
| 14 | Allows the position and velocity of a node in a scanned process to be read. |
| 15 | </refpurpose> |
| 16 | </refnamediv> |
| 17 | |
| 18 | <refsect1> |
| 19 | <title>Description</title> |
| 20 | <para>Plugin opcode in scansyn.</para> |
| 21 | <para> |
| 22 | Allows the position and velocity of a node in a scanned process to be read. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>kpos, kvel <command>scanmap</command> iscan, kamp, kvamp [, iwhich]</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Initialization</title> |
| 33 | <para> |
| 34 | <emphasis>iscan</emphasis> -- which scan process to read |
| 35 | </para> |
| 36 | |
| 37 | <para> |
| 38 | <emphasis>iwhich</emphasis> (optional) -- which node to sense. The default is 0. |
| 39 | </para> |
| 40 | </refsect1> |
| 41 | |
| 42 | <refsect1> |
| 43 | <title>Performance</title> |
| 44 | <para> |
| 45 | <emphasis>kamp</emphasis> -- amount to amplify the <emphasis>kpos</emphasis> value. |
| 46 | </para> |
| 47 | |
| 48 | <para> |
| 49 | <emphasis>kvamp</emphasis> -- amount to amplify the <emphasis>kvel</emphasis> value. |
| 50 | </para> |
| 51 | |
| 52 | <para> |
| 53 | The internal state of a node is read. This includes its position and velocity. They are amplified by the <emphasis>kamp</emphasis> and <emphasis>kvamp</emphasis> values. |
| 54 | </para> |
| 55 | </refsect1> |
| 56 | |
| 57 | <refsect1> |
| 58 | <title>Examples</title> |
| 59 | <para> |
| 60 | Here is an example of the scanmap opcode. It uses the file <ulink url="examples/scanmap.csd"><citetitle>scanmap.csd</citetitle></ulink>. |
| 61 | <example> |
| 62 | <title>Example of the scanmap opcode.</title> |
| 63 | <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> |
| 64 | <xi:include href="examples-xml/scanmap.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 65 | </example> |
| 66 | </para> |
| 67 | <para> |
| 68 | Here is another example of the scanmap opcode. It uses the file <ulink url="examples/scanmap_matrxT.csd"><citetitle>scanmap_matrxT.csd</citetitle></ulink>. |
| 69 | <example> |
| 70 | <title>Second example of the scanma opcode.</title> |
| 71 | <xi:include href="examples-xml/scanmap_matrxT.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 72 | </example> |
| 73 | </para> |
| 74 | </refsect1> |
| 75 | |
| 76 | <refsect1> |
| 77 | <title>See also</title> |
| 78 | <para><link linkend="SiggenScanTop"><citetitle>Scanned Synthesis</citetitle></link></para> |
| 79 | <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> |
| 80 | </refsect1> |
| 81 | |
| 82 | <refsect1> |
| 83 | <title>Credits</title> |
| 84 | <para>Author: &namejohn;</para> |
| 85 | <para>New in version 6.17</para> |
| 86 | </refsect1> |
| 87 | </refentry> |