costJumps: Cost of jumps

Description Usage Arguments Details Examples

View source: R/utilities_pitch_postprocessing.R

Description

Internal soundgen function.

Usage

1
costJumps(cand1, cand2)

Arguments

cand1, cand2

two candidate pitch values

Details

Internal helper function for calculating the cost of transitions between pitch candidates. Needed for postprocessing of pitch contour - finding the optimal pitch contour.

Examples

1
2
3
a = seq(-3, 3, by = .01)
b = 1 / (1 + 10 * exp(3 - 7 * abs(a)))
plot(a, b, type = 'l')

tatters/soundgen_beta documentation built on May 14, 2019, 9 a.m.