Length of a Sample Object
Get or set the length (number of columns in the waveform matrix) of a Sample object or a wav file.
1 2 3
a Sample object, or a string giving the name of a wav file.
an integer giving the sample length (number of columns in the waveform matrix).
The replacement form can be used to reset the sample length (here, filenames are not accepted).
If a Sample object is shortened, extra values are discarded. When a Sample object is lengthened, it is padded out to its new length with zeros (silence).
sampleLength, the number of columns in the waveform matrix of the sample.
setSampleLength, a Sample object with the new length.
1 2 3 4 5 6 7