cutSample(s, start, end)
## S3 method for class 'Sample':
[(s,i)
Arguments
s
a Sample object, or a string giving the name of a wav file.
start
the start position in seconds.
end
the end position in seconds.
i
a vector of integers giving the numbers of the columns in the waveform matrix to be used.
Value
the specified part of the given sample as a new Sample object.
Details
Only the intersection of [start,end] with [0,duration(s)] is returned. Similarly, in the second form the intersection of v with 1:sampleLength(s) is returned.