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 = importaudio('singing.wav'); ## input buffer
$op = rampsmooth(); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.inspect('after rampsmooth process')