Skip to main content

onepole

onepole(
@cutoff 300
@highpass 0
) -> llll

Generates an audio process operation for applying single-pole lowpass or highpass filtering to a buffer.


Arguments

  • @cutoff [int/float]: Cutoff frequency. (default: 300).
  • @highpass [int]: Highpass filter mode. (default: 0).
    • 0: Off
    • 1: On

Output

Single-pole filtering operation [llll]


Usage

onepole is meant to be used with the process function:

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