Description Usage Arguments Details Value Examples
View source: R/smoothContours.R
Internal soundgen function.
1 2 3 |
len |
the number of syllables (equivalently, the length of generated contour) |
anchors |
a dataframe of anchors with specified time and amplitude.
|
method |
smoothing method: 'spline' or 'loess' (default). Consider 'spline' if you have a lot of anchors and not much patience, since it is much faster than 'loess', but it may produce weird results when there are only a few anchors |
valueFloor |
lower/upper bounds for the contour |
valueCeiling |
lower/upper bounds for the contour |
ylim |
ylim for plotting |
plot |
(boolean) produce a plot? |
... |
other plotting options passed to |
A discrete version of getSmoothContour
with modified plotting.
Intended for plotting variation in parameters across syllables.
Numeric vector.
1 2 3 4 | # for a bout consisting of 10 syllables
soundgen:::getDiscreteContour(len = 10, method = 'spline', plot = TRUE,
ylab = 'Semitones', anchors = data.frame(time = c(0, .2, .6, 1),
value = c(0, -3, 1, 0)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.