crop
crop(
@start 0
@end 1000
@timeunit 0
) -> llll
Generates an audio process operation for cropping a buffer.
Arguments
@start
[int/float]: start time. (default:0
).@end
[int/float]: end time. if negative, it counts from the end. (default:1000
).@timeunit
[int]: time unit for@start
and@end
. (default:0
).0
: milliseconds1
: samples2
: duration ratio3
: milliseconds difference4
: samples difference
Output
crop operation [llll]
Usage
crop
is meant to be used with the process
function:
$buffer = importaudio('singing.wav'); ## input buffer
$op = crop(@start 1000 @end 2000); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.inspect('after crop process')