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, either as a single number, or envelope. (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, 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')