Skip to main content

scrub

scrub(
@phase 0 1
@duration 1000
) -> llll

Generates an audio process operation for scrubbing through a buffer.


Arguments

  • @phase [int/float]: buffer phase envelope between 0 and 1, either as an envelope or a buffer. (default: 0 1).
  • @duration [int]: envelope duration in milliseconds. Ignored if @phase is a buffer. (default: 1000).

Output

scrub operation [llll]


Usage

scrub is meant to be used with the process function:

$buffer = importaudio('singing.wav'); ## input buffer
$op = scrub(@phase [0 0 0] [1 1 0.5] @duration 10000); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.inspect('after scrub process')