audioJS

@audio/pitch-mcleod

Status calibrated

npm1.0.2licenseMIT

McLeod Pitch Method (McLeod & Wyvill, 2005)

Overview

Install
Updated
Family
pitch, 8 packages under it
import mcleod from '@audio/pitch-mcleod'

McLeod & Wyvill, 2005. Normalized square difference with smarter peak picking. Handles smaller windows — good for vibrato and fast pitch changes.

let result = mcleod(samples, { fs: 44100 })
Param Default
fs 44100 Sample rate (Hz)
threshold 0.9 Peak selection threshold as fraction of global max

Use when: Vibrato tracking, small hop sizes, singing voice where YIN occasionally double-triggers.
Not for: Highly noisy signals (NSDF is less thresholded than YIN's CMND).
Ref: McLeod & Wyvill, "A smarter way to find pitch", ICMC 2005.
Complexity: O(N2/4)O(N^2/4) — same asymptotic cost as YIN.


Part of @audio/pitch — the pitch family umbrella. This README is generated from the umbrella docs.

MIT © audiojs