ziwmZak Patch Systemziwmziwm
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.
Syntaxziwm isig, indx [, imix]Initializationisig -- 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.
Performanceziwm 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 alsoZak Patch SystemCreditsAuthor: Robin WhittleAustraliaMay 1997New in version 3.45Example written by &namekevin;.