ziwm Zak Patch System ziwm ziwm Writes to a zk variable to an i-rate variable with mixing. Description Writes to a zk variable to an i-rate variable with mixing. Syntax ziwm isig, indx [, imix] Initialization isig -- initializes the value of the zk location. indx -- points to the zk location location to which to write. imix (optional, default=1) -- indicates if mixing should occur. Performance ziwm is a mixing opcode, it adds the signal to the current value of the variable. If no imix is specified, mixing always occurs. imix = 0 will cause overwriting like ziw, zkw, and zaw. Any other value will cause mixing. Caution: When using the mixing opcodes ziwm, zkwm, and zawm, 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. One approach would be to establish certain ranges of zk or za variables to be used for mixing, then use zkcl or zacl to clear those ranges. Examples Here is an example of the ziwm opcode. It uses the file ziwm.csd. Example of the ziwm opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Zak Patch System Credits Author: Robin Whittle Australia May 1997 New in version 3.45 Example written by &namekevin;.