Use Non-Frames Version Previous Page Next Page
Zak Patch System

zakinit

          zakinit   isizea, isizek

Description

Establishes zak space. Must be called only once.

Initialization

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.

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.

Example

          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.

Author

Robin Whittle
Australia
May 1997


Use Non-Frames Version Previous Page Next Page
Zak Patch System