{"_id":"@audio/pitch-mcleod","_rev":"2-2b2f1b9f76f093be18ec79585158ff9c","name":"@audio/pitch-mcleod","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@audio/pitch-mcleod","version":"1.0.0","keywords":["audio","dsp","pitch","pitch-detection","f0","mcleod"],"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","_id":"@audio/pitch-mcleod@1.0.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/pitch/tree/main/packages/pitch-mcleod","bugs":{"url":"https://github.com/audiojs/pitch/issues"},"dist":{"shasum":"24505ceff36d32e879d815c583397b5522022c17","tarball":"https://registry.npmjs.org/@audio/pitch-mcleod/-/pitch-mcleod-1.0.0.tgz","fileCount":2,"integrity":"sha512-qSHZUlN8q91gqJP6mWCqfgAR3Nj0H0Ztp2OfE9ot03GIgIRrDanMQ+3aXaNN7nLLuqA8ZP+Lr1443r6sgdI/ew==","signatures":[{"sig":"MEUCIQCcYxJHEMYm+ZijiJwhN1jGNQTCZlhizMHI4YaeZkW6LwIgZrjIUGwyRVV670gLlbEPoKeeMliGE6SEoK0YlAbCP+0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3095},"main":"mcleod.js","type":"module","engines":{"node":">=18"},"exports":{".":"./mcleod.js","./package.json":"./package.json"},"gitHead":"984da555a04fddf53e71299736a2dc76311b2a49","_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/pitch.git","type":"git","directory":"packages/pitch-mcleod"},"_npmVersion":"11.12.1","description":"McLeod Pitch Method (McLeod & Wyvill, 2005)","directories":{},"sideEffects":false,"_nodeVersion":"25.9.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pitch-mcleod_1.0.0_1783539935866_0.21635575503038718","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@audio/pitch-mcleod","version":"1.0.1","description":"McLeod Pitch Method (McLeod & Wyvill, 2005)","type":"module","sideEffects":false,"main":"mcleod.js","exports":{".":"./mcleod.js","./package.json":"./package.json"},"keywords":["audio","dsp","pitch","pitch-detection","f0","mcleod"],"license":"MIT","author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/audiojs/pitch.git","directory":"packages/pitch-mcleod"},"homepage":"https://github.com/audiojs/pitch/tree/main/packages/pitch-mcleod","bugs":{"url":"https://github.com/audiojs/pitch/issues"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"types":"index.d.ts","funding":"https://github.com/sponsors/audiojs","gitHead":"c388499cb8107c4fdcc0e314410327655222b5b1","_id":"@audio/pitch-mcleod@1.0.1","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-WAVlPhNxI37jl0YQK4debmr9zcWATsWAwnGY6U4ETXn7walSPNExpPSyTD04e999aGsEkw5UaBmypQjfNShiJQ==","shasum":"c52b77fa8aa0bb3353a0d6f7bb5f6c83d056955e","tarball":"https://registry.npmjs.org/@audio/pitch-mcleod/-/pitch-mcleod-1.0.1.tgz","fileCount":4,"unpackedSize":4952,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEw76qt0Kc0FYVVWUsrsA+gXnTyQfm3tnoraSQzPMjONAiEAldKsaMrRdXyfplHBKKam4hhaZhOHEN9R//6yEk1Su6Q="}]},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"directories":{},"maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pitch-mcleod_1.0.1_1783731714838_0.04519936214822029"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-08T19:45:35.767Z","modified":"2026-07-11T01:01:55.084Z","1.0.0":"2026-07-08T19:45:36.018Z","1.0.1":"2026-07-11T01:01:54.966Z"},"bugs":{"url":"https://github.com/audiojs/pitch/issues"},"author":{"name":"Dmitry Iv.","email":"dfcreative@gmail.com"},"license":"MIT","homepage":"https://github.com/audiojs/pitch/tree/main/packages/pitch-mcleod","keywords":["audio","dsp","pitch","pitch-detection","f0","mcleod"],"repository":{"type":"git","url":"git+https://github.com/audiojs/pitch.git","directory":"packages/pitch-mcleod"},"description":"McLeod Pitch Method (McLeod & Wyvill, 2005)","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"readme":"# @audio/pitch-mcleod [![npm](https://img.shields.io/npm/v/@audio/pitch-mcleod)](https://www.npmjs.com/package/@audio/pitch-mcleod) [![MIT](https://img.shields.io/badge/MIT-%E0%A5%90-white)](https://github.com/krishnized/license)\n\nMcLeod Pitch Method (McLeod & Wyvill, 2005)\n\n```\nnpm install @audio/pitch-mcleod\n```\n\n```js\nimport mcleod from '@audio/pitch-mcleod'\n```\n\n**McLeod & Wyvill, 2005.** Normalized square difference with smarter peak picking. Handles smaller windows — good for vibrato and fast pitch changes.\n\n```js\nlet result = mcleod(samples, { fs: 44100 })\n```\n\n| Param | Default | |\n|---|---|---|\n| `fs` | `44100` | Sample rate (Hz) |\n| `threshold` | `0.9` | Peak selection threshold as fraction of global max |\n\n**Use when:** Vibrato tracking, small hop sizes, singing voice where YIN occasionally double-triggers.<br>\n**Not for:** Highly noisy signals (NSDF is less thresholded than YIN's CMND).<br>\n**Ref:** McLeod & Wyvill, [\"A smarter way to find pitch\"](https://www.cs.otago.ac.nz/research/publications/oucs-2008-03.pdf), ICMC 2005.<br>\n**Complexity:** $O(N^2/4)$ — same asymptotic cost as YIN.\n\n---\n\nPart of [@audio/pitch](https://github.com/audiojs/pitch) — the pitch family umbrella. This README is generated from the umbrella docs.\n\nMIT © [audiojs](https://github.com/audiojs)\n","readmeFilename":"README.md"}