costJumps: Cost of jumps

View source: R/pitch_postprocessing.R

costJumpsR Documentation

Cost of jumps

Description

Internal soundgen function.

Usage

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

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

soundgen documentation built on Sept. 12, 2024, 6:29 a.m.