Debian Codegraph @

opcodes/zkwm.xml

raw symbols SCIP
1
2 <refentry id="zkwm">
3 <indexterm id="IndexZkwm"><primary>zkwm</primary></indexterm>
4 <refentryinfo><title>Zak Patch System</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>zkwm</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>zkwm</refname>
13 <refpurpose>
14 Writes to a zk variable at k-rate with mixing.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Writes to a zk variable at k-rate with mixing.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>zkwm</command> ksig, kndx [, imix]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>imix</emphasis> (optional, default=1) -- indicates if mixing should occur.
34 </para>
35 </refsect1>
36
37 <refsect1>
38 <title>Performance</title>
39 <para>
40 <emphasis>ksig</emphasis> -- value to be written to the zk location.
41 </para>
42
43 <para>
44 <emphasis>kndx</emphasis> -- points to the zk location to which to write.
45 </para>
46
47 <para>
48 <emphasis>zkwm</emphasis> is a mixing opcode, it adds the signal to the current value of the variable. If no <emphasis>imix</emphasis> is specified, mixing always occurs. <emphasis>imix</emphasis> = 0 will cause overwriting like <emphasis>ziw</emphasis>, <emphasis>zkw</emphasis>, and <emphasis>zaw</emphasis>. Any other value will cause mixing.
49 </para>
50
51 <para>
52 <emphasis>Caution</emphasis>: When using the mixing opcodes <emphasis>ziwm</emphasis>, <emphasis>zkwm</emphasis>, and <emphasis>zawm</emphasis>, care must be taken that the variables mixed to, are zeroed at the end (or start) of each k- or a-cycle. Continuing to add signals to them, can cause their values can drift to astronomical figures.
53 </para>
54
55 <para>
56 One approach would be to establish certain ranges of zk or za variables to be used for mixing, then use <emphasis>zkcl</emphasis> or <emphasis>zacl</emphasis> to clear those ranges.
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>Examples</title>
62 <para>
63 Here is an example of the zkwm opcode. It uses the file <ulink url="examples/zkwm.csd"><citetitle>zkwm.csd</citetitle></ulink>.
64
65 <example>
66 <title>Example of the zkwm opcode.</title>
67
68
69
70 <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>
71 <xi:include href="examples-xml/zkwm.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="ZakTop"><citetitle>Zak Patch System</citetitle></link></para>
79 </refsect1>
80
81 <refsect1>
82 <title>Credits</title>
83 <para>
84 <simplelist>
85 <member>Author: Robin Whittle</member>
86 <member>Australia</member>
87 <member>May 1997</member>
88 </simplelist>
89 </para>
90 <para>New in version 3.45</para>
91 <para>Example written by &namekevin;.</para>
92 </refsect1>
93 </refentry>