View source: R/utilities_pitch_postprocessing.R

interpolate | R Documentation |

Internal soundgen function.

interpolate( pitchCands, pitchCert, pitchSource, pitchCenterGravity, interpolWin_bin = 3, interpolTol = 0.3, interpolCert = 0.3 )

`pitchCands` |
a matrix of multiple pitch candidates per fft frame. Each column is one fft frame, each row is one candidate (the last row is always "manual") |

`pitchCert` |
a matrix of the same dimensionality as pitchCands specifying our certainty in pitch candidates |

`pitchCenterGravity` |
numeric vector giving the mean of all pitch candidates per fft frame weighted by our certainty in each of these candidates |

`interpolWin_bin` |
when interpolating pitch candidates, the median is
calculated over |

`interpolTol` |
when interpolating pitch candidates, the criterion
for needing to interpolate is the absence of pitch candidates with values
within |

`interpolCert` |
when interpolating pitch candidates, all generated pitch
candidates are assigned a certainty equal to |

`manualUnvoiced` |
a vector with indices of frames that are manually specified as unvoiced and should not be interpolated |

Interpolation: if a frame has no pitch candidate at all (NA) or no candidate between the most likely candidates for the adjacent frames, add such a candidate with some (low) certainty.

Returns a modified pitchCands matrix.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.