divide
divide(
@operand 1
@resamplingfiltersize 11
@resamplingmode 'sinc'
@resamplingpolicy 3
@envtimeunit 2
) -> llll
Generates an audio process operation for performing division on a buffer.
Arguments
@operand
[int/float/llll]: value to divide buffer by either as a single number, envelope, or buffer. (default:1
).@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
divide operation [llll]
Usage
divide
is meant to be used with the process
function:
$buffer = importaudio('singing.wav'); ## input buffer
$op = divide([0 1 0] [1 10 -0.125]); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.inspect('after divide process')