Skip to main content

freqshift

freqshift(
@shift 0
@negative 0
) -> llll

Generates an audio process operation for applying frequency shifting to a buffer.


Arguments

  • @shift [int/float/list/llll]: frequency shift in Hertz, as either a single number, an envelope or buffer. (default: 0).
  • @negative [int]: Include negative sideband in output. (default: 0).
    • 0: off
    • 1: on

Output

freqshift operation [llll]


Usage

freqshift is meant to be used with the process function:

$buffer = importaudio('singing.wav'); ## input buffer
$op = freqshift(-20); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.inspect('after freqshift process')