Skip to main content

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: lowpass
    • 1: highpass
    • 2: bandpass
    • 3: bandstop
    • 4: peaknotch
    • 5: lowshelf
    • 6: highshelf
    • 7: resonant
    • 8: 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')