Debian Codegraph @

opcodes/ziwm.xml

raw symbols SCIP
1
2 <refentry id="ziwm">
3 <indexterm id="IndexZiwm"><primary>ziwm</primary></indexterm>
4 <refentryinfo><title>Zak Patch System</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>ziwm</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>ziwm</refname>
13 <refpurpose>
14 Writes to a zk variable to an i-rate variable with mixing.
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Writes to a zk variable to an i-rate variable with mixing.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis><command>ziwm</command> isig, indx [, imix]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32 <para>
33 <emphasis>isig</emphasis> -- initializes the value of the zk location.
34 </para>
35
36 <para>
37 <emphasis>indx</emphasis> -- points to the zk location location to which to write.
38 </para>
39
40 <para>
41 <emphasis>imix</emphasis> (optional, default=1) -- indicates if mixing should occur.
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>Performance</title>
47 <para>
48 <emphasis>ziwm</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 ziwm opcode. It uses the file <ulink url="examples/ziwm.csd"><citetitle>ziwm.csd</citetitle></ulink>.
64
65 <example>
66 <title>Example of the ziwm 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/ziwm.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>