get_serial_anchors.Rd
Convert a set of point anchors to a set of anchors that prevent overlaps while fixing the retiming factor within words.
get_serial_anchors(
anc_in,
anc_out,
w_onsets,
w_offsets,
fs = NULL,
retime_f = NULL,
dry_run = F,
smudge = 0
)
a vector of time points in the input signal
a vector of the times anc_in should be mapped to in the output signal
a vector of time points for the onsets of words. Should be same length as anc_in.
a vector of time points for the offsets of words. Should be same length as anc_in.
Sample rate of signal. If provided, returned anchor points with be expressed in samples. If NULL result will be expressed in seconds.
The desired factor that words should be sped by. If NULL the minimum change in rate that will prevent overlaps will be calculated.
If TRUE function will exit early with the minimum factor that will prevent overlaps.
If > 0 this applies a crude adjustment to the calculated anchors to ensure monotonicity. Not necessary unless w_onsets are same as previous w_offsets.
A list that can be used to perform retiming with the wsola function of this package.
wsola