wsola {retimer}R Documentation

wsola

Description

Waveform Similarity Overlap-add. Translated from 'TSM Toolbox'.

Usage

wsola(x, s, win = "hann", winLen = 1024, synHop = 512, tol = 512)

Arguments

x

an audio signal

s

a scaling factor or a list of two vector with anchor points

win

window function. Default is 'hann' for hanning window. Can also be a custom window supplied as a vector

winLen

window length

synHop

synthesis window hop size

tol

tolerance for overlap delta

Value

retimed audio signal as vector

References

Driedger, J., Müller, M. (2014). TSM Toolbox: MATLAB Implementations of Time-Scale Modification Algorithms. In Proceedings of the International Conference on Digital Audio Effects (DAFx): 249–256.

See Also

fft_spectrum, get_serials_anchors

Examples

set.seed(42)
data(mm1)
dur <- length(mm1)
n <- 10
x <- runif(n)
anchors <- list(anc_in = c(0, dur*seq_len(n)/n),
                anc_out = c(0, dur*cumsum(x)/sum(x)))
sig <- wsola(mm1@left, anchors)

[Package retimer version 0.1.3 Index]