zakinit isizea, isizek
Establishes zak space. Must be called only once.
isizea – 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.
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.
zakinit 10 30
reserves memory for locations 0 to 30 of zk space and for locations 0 to 10 of a-rate za space. With ksmps = 8, this would take 31 floats for zk and 80 floats for za space.