Skip to main content

onepole

onepole(
@cutoff 1
@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: 1).
  • @highpass [int]: highpass filter mode. (default: 0).
    • 0: off
    • 1: on

Output

onepole 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.inspect('after onepole process')