sumarrayArray Opcodessumarraysumarray
returns the sum of the elements in an array.
Description
The sumarray opcode returns the sum of all
elements in a k-rate array array.
Syntaxksum sumarray karrayPerformanceksum -- variable for result.
karray -- array for reading.
Examples
Here is an example of the sumarray opcode. It uses the file sumarray.csd.
Example of the sumarray opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoArray opcodesCreditsAuthor: &namejohn;October 2011New in Csound version 5.14Revised in Csound version 6.00 to work on multidimensional arrays