Skip to main content

fir

fir(
@impulse 0 1 0
) -> llll

Generates an audio process operation for convolving a buffer with a finite impulse response (FIR).


Arguments

  • @impulse [llll]: Impulse response, either as a buffer or a flat numeric list. (default: 0 1 0).

Output

FIR operation [llll]


Usage

fir is meant to be used with the process function:

$buffer = importaudio('singing.wav'); ## input buffer
$op = fir(); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.view('after fir process')