plus
plus(
@operand ? ## int/float/llll (required)
@resamplingfiltersize 11
@resamplingmode 'sinc'
@resamplingpolicy 3
@envtimeunit 2
) -> llll
Generates an audio process operation for performing addition on a buffer.
Arguments
@operand ?
[int/float/llll]: value to add to buffer, either as a single number, envelope, or buffer. (required)@resamplingfiltersize
[int]: resampling filter size. (default:11
).@resamplingmode
[symbol]: resampling mode. (default:'sinc'
).'sinc'
'nearest neighbor'
'sample and hold'
'linear'
'quad'
'cubic'
@resamplingpolicy
[int]: resampling policy. (default:3
).0
: don't1
: to lowest2
: to highest3
: to most common4
: to max. current
@envtimeunit
[int]: envelope time unit. (default:2
).0
: milliseconds1
: samples2
: duration ratio3
: milliseconds difference4
: samples difference
Output
plus operation [llll]
Usage
plus
is meant to be used with the process
function:
$buffer = importaudio('singing.wav'); ## input buffer
$op = plus(); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.inspect('after plus process')