zakinitZak Patch Systemzakinitzakinit
Establishes zak space.
Description
Establishes zak space. Must be called only once.
Syntaxzakinit isizea, isizekInitializationisizea -- the number of audio rate locations for a-rate patching. Each location is actually an array which is ksmps long.
isizek -- the number of locations to reserve for floats in the zk space. These can be written and read at i- and k-rates.
Performance
At least one location each is always allocated for both za and zk spaces. There can be thousands or tens of thousands za and zk ranges, but most pieces probably only need a few dozen for patching signals. These patching locations are referred to by number in the other zak opcodes.
To run zakinit only once, put it outside any instrument definition, in the orchestra file header, after sr, kr, ksmps, and nchnls.
Zak channels count from 0, so if you define 1 channel, the only valid channel is channel 0.
Examples
Here is an example of the zakinit opcode. It uses the file zakinit.csd.
Example of the zakinit 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;.