soundtouch
soundtouch(
@stretching 1
@pitchshift 0
@pitchunit 0
@timeunit 2
@antialias 0
@quick 0
@speech 0
) -> llll
Generates an audio process operation for applying soundtouch pitch-shifting/time-stretching to a buffer.
Arguments
@stretching
[int/float]: stretching amount, as a single number. (default:1
).@pitchshift
[int/float]: pitch shifting amount, as single number. (default:0
).@pitchunit
[int]: unit for@pitchshift
. (default:0
).0
: cents1
: MIDI2
: Hertz3
: frequency ratio
@timeunit
[int]: time unit for@stretching
. (default:2
).0
: milliseconds1
: samples2
: duration ratio3
: milliseconds difference4
: samples difference
@antialias
[int]: anti-aliasing filter. (default:0
).0
: off1
: on
@quick
[int]: quick processing. (default:0
).0
: off1
: on
@speech
[int]: tune algorithm for speech. (default:0
).0
: off1
: on
Output
soundtouch operation [llll]
Usage
soundtouch
is meant to be used with the process
function:
$buffer = importaudio('singing.wav'); ## input buffer
$op = soundtouch(); ## processing operation
$buffer = $buffer.process($op); ## apply processing
$buffer.inspect('after soundtouch process')