Skip to main content

paulfreeze

paulfreeze(
@duration 1000
@position 0
@jitter 0
@timeunit 0
@spectral 0
@framesize 8192
) -> llll

Generates an audio process operation for freezing a buffer.


Arguments

  • @duration [int/float]: freezing duration, based on @timeunit. (default: 1000).
  • @position [int/float]: freezing time position (default: 0).
  • @jitter [int/float]: variation around time position, in milliseconds. To use entire buffer, use 'all'. (default: 0).
  • @timeunit [int]: time unit. (default: 0).
    • 0: milliseconds
    • 1: samples
    • 2: duration ratio
    • 3: milliseconds difference
    • 4: samples difference
  • @spectral [int]: stretching mode. (default: 0).
    • 0: frequency domain
    • 1: time domain
  • @framesize [int]: analysis frame size, in samples. (default: 8192).

Output

paulfreeze operation [llll]


Usage

paulfreeze is meant to be used with the process function:

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