maxallocInstrument Control:Realtime Performance Controlmaxallocmaxalloc
Limits the number of allocations of an instrument.
Description
Limits the number of allocations of an instrument.
Syntaxmaxalloc insnum, icountmaxalloc Sinsname, icountInitializationinsnum -- instrument number
Sinsname -- instrument name
icount -- number of instrument allocations
Performancemaxalloc limits the number of simultaneous instances (notes) of an instrument. Any score events after the maximum has been reached, are ignored.
All instances of maxalloc must be defined in the header section, not in the instrument body.
Examples
Here is an example of the maxalloc opcode. It uses the file maxalloc.csd.
Example of the maxalloc opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Its output should contain messages like these:
WARNING: cannot allocate last note because it exceeds instr maxalloc
See alsoReal-time Performance ControlCreditsAuthor: &namegabriel;ItalyJuly 1999New in Csound version 3.57