trimArray Opcodestrimtrim
Adjust size of a one-dimensional array.
Description
Lengthen or shorten a one-dimensional array.
Syntaxtrim_i iarray, ilentrim xarray, klenPerformanceiarray -- a one-dimensional irate array
xarray -- a one-dimensional array
klen -- desired length
Makes the array the desired length, either truncating or padding
with zero/Null values.
Examples
Here is an example of the trim opcode. It uses the file trim.csd.
Example of the trim opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoArray opcodesCreditsAuthor: &namejohn; 2018New in version 6.12