paulstretch
paulstretch(
@stretching 1
@timeunit 2
@envtimeunit 2
@spectral 1
@framesize 8192
) -> llll
Generates an audio process operation for applying time-stretching to a buffer.
Arguments
@stretching[int/float/llll]: Stretching amount, as single number or envelope. (default:1).@timeunit[int]: Time unit for@stretching. (default:2).0: Milliseconds1: Samples2: Duration ratio3: Milliseconds difference4: Samples difference
@envtimeunit[int]: Time unit for@stretchingenvelope. (default:2).0: Milliseconds1: Samples2: Duration ratio3: Milliseconds difference4: Samples difference
@spectral[int]: Stretching mode. (default:1).0: Frequency domain1: Time domain
@framesize[int]: Analysis frame size, in samples. (default:8192).
Output
Paulstretch operation [llll]
Usage
paulstretch is meant to be used with the process function:
$buffer = importaudio('singing.wav'); ## input buffer
$op = paulstretch(@stretching 0.5); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.view('after paulstretch process')