drawContour {soundgen} | R Documentation |
Internal soundgen function
drawContour(
len,
anchors,
interpol,
valueFloor,
duration_ms = 500,
loessSpan = NULL
)
len |
the required length of the output contour. If NULL, it will be
calculated based on the maximum time value (in ms) and |
anchors |
a numeric vector of values or a list/dataframe with one column
(value) or two columns (time and value). |
interpol |
method of interpolation between anchors: "approx" = linear
with |
duration_ms |
contour duration, ms |
loessSpan |
controls the amount of smoothing when interpolating between
anchors with |
The core part of getSmoothContour() that actually performs the interpolation between anchors.