lenarray Table Control:Table Queries lenarray lenarray Evaluates the size or shape length of an array. Description Evaluates the size or number of dimensions of an array. Syntax ir lenarray karray[, iwhich] kr lenarray karray[, iwhich] Initialisation karray -- 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. Performance kr -- 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 also Array opcodes Credits Author: &namejohn; Codemist Ltd 2013 New in version 6.00 Extended to multi-dimensions in 6.04