Skip to main content

rampsmooth

rampsmooth(
@up 1024
@down 1024
) -> llll

Generates an audio process operation for applying rampsmoothing to a buffer.


Arguments

  • @up [int/list/llll]: Ramp up, in samples, as either a single number, envelope, or buffer. (default: 1024).
  • @down [int/list/llll]: Ramp down, in samples, as either a single number, envelope, or buffer. (default: 1024).

Output

Rampsmooth operation [llll]


Usage

rampsmooth is meant to be used with the process function:

$buffer = envelope([0 0 0] [0.5 1 0] [1 0 0]); ## input buffer
$op = rampsmooth(); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.view('after rampsmooth process')