Learn R Programming

soundgen (version 2.6.0)

detectPitchJumps: Detect pitch jumps

Description

Interal soundgen function

Usage

detectPitchJumps(pitch, step, jumpThres, jumpWindow)

Arguments

pitch

vector of pitch values per frame, Hz

step

time step between pitch values, ms

jumpThres

frames in which pitch changes by jumpThres octaves/s more than in the surrounding frames are classified as containing "pitch jumps"

jumpWindow

the window for calculating the median pitch slope around the analyzed frame, ms

Examples

Run this code
pitch = getSmoothContour(anchors = list(
  time = c(0, 350, 351, 890, 891, 1200),
  value = c(140, 230, 460, 330, 220, 200)), len = 40)
soundgen:::detectPitchJumps(pitch, step = 25,
  jumpThres = 10, jumpWindow = 100)

Run the code above in your browser using DataLab