biquad
biquad(
@frequency 2000
@type 2
@gain 1
@q 80
) -> llll
Generates an audio process operation for applying biquad filtering to a buffer.
Arguments
@frequency
[int/float]: Cutoff/center frequency, either as a single number, or envelope. (default:2000
).@type
[int/symbol]: Filter type, as a symbol or integer. (default:2
).0
: Lowpass1
: Highpass2
: Bandpass3
: Bandstop4
: Peaknotch5
: Lowshelf6
: Highshelf7
: Resonant8
: Allpass
@gain
[int/float]: Linear gain, either as a single number, or envelope. (default:1
).@q
[int/float]: Resonance or slope, depending on@type
, either as a single number, or envelope. (default:80
).
Output
Biquad operation [llll]
Usage
biquad
is meant to be used with the process
function:
$buffer = importaudio('singing.wav'); ## input buffer
$op = biquad(); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.view('after biquad process')