trim Array Opcodes trim trim Adjust size of a one-dimensional array. Description Lengthen or shorten a one-dimensional array. Syntax trim_i iarray, ilen trim xarray, klen Performance iarray -- 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 also Array opcodes Credits Author: &namejohn; 2018 New in version 6.12