lenarrayTable Control:Table Querieslenarraylenarray
Evaluates the size or shape length of an array.
Description
Evaluates the size or number of dimensions of an array.
Syntaxir lenarray karray[, iwhich]kr lenarray karray[, iwhich]Initialisationkarray -- The array that is being
questioned. It can be of any dimension.
iwhich -- selects which dimension to
evaluate the size. If zero or negative it selects the number of
dimensions. It defaults to 1, as used in a vector.
Performancekr -- length of vector.
karray -- array to query.
If the dimension requested is larger than the actual array, or
the array is not initialised the value -1 is returned.
Examples
Here is an example of the lenarray opcode. It uses the file lenarray.csd.
Example of the lenarray opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoArray opcodesCreditsAuthor: &namejohn;Codemist Ltd2013New in version 6.00Extended to multi-dimensions in 6.04