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. (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. (default:1
).@q
[int/float]: resonance or slope, depending on@type
. (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.inspect('after biquad process')