yin: Pitch detection using the YIN metod

yinR Documentation

Pitch detection using the YIN metod

Description

This function applies the YIN \insertCiteCheveigné.2002.10.1121/1.1458024superassp method to estimate the fundamental frequency.

Usage

yin(
  listOfFiles,
  beginTime = 0,
  endTime = 0,
  windowShift = 5,
  windowSize = 30,
  minF = 70,
  maxF = 200,
  trough_threshold = 0.1,
  center = TRUE,
  pad_mode = "constant",
  explicitExt = "yip",
  outputDirectory = NULL,
  toFile = TRUE
)

Arguments

listOfFiles

A vector of file paths to wav files.

beginTime

The start time of the section of the sound file that should be processed.

endTime

The end time of the section of the sound file that should be processed.

windowShift

The measurement interval (frame duration), in seconds.

minF

Candidate f0 frequencies below this frequency will not be considered.

maxF

Candidates above this frequency will be ignored.

trough_threshold

The absolute threshold for peak estimation.

center

Should analysis windows be centered around the time of the window (TRUE, the default) or should the window be considered to have started at the indicated time point (FALSE).

pad_mode

The mode in which padding occurs. Ignored if center is not TRUE. Padding occurs in the python library librosa, and the user should therefore consult the manual of the NumPy library function numpy.pad for other options.

explicitExt

the file extension that should be used.

outputDirectory

set an explicit directory for where the signal file will be written. If not defined, the file will be written to the same directory as the sound file.

toFile

write the output to a file? The file will be written in outputDirectory, if defined, or in the same directory as the soundfile.

Details

This function calls the librosa \insertCitebrian_mcfee_2022_6097378superassp Python library to load the audio data an make pitch related estimates.

Value

An SSFF track object containing two tracks (f0 and pitch) that are either returned (toFile == FALSE) or stored on disk.

References

\insertAllCited

See Also

pyin


humlab-speech/superassp documentation built on May 8, 2024, 2:27 p.m.