repeat
repeat(
@duration 2
@timeunit 2
) -> llll
Generates an audio process operation for repeating a buffer.
Arguments
@duration
[int/float]: Target duration, based on@timeunit
. (default:2
).@timeunit
[int]: Time unit for@duration
. (default:2
).0
: Milliseconds1
: Samples2
: Duration ratio3
: Milliseconds difference4
: Samples difference
Output
Repeat operation [llll]
Usage
repeat
is meant to be used with the process
function:
$buffer = importaudio('drums.wav').setkey('duration', 50); ## input buffer
$op = repeat(25); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.view('after repeat process')