# cwilso/PitchDetect

Pitch detection in Web Audio using autocorrelation

Repository: https://github.com/cwilso/PitchDetect
Canonical: https://ross.abutalabs.com/products/pitchdetect
Homepage: https://cwilso.github.io/PitchDetect/
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2022-09-14T22:17:07+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5158, "days_push": 1449, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1389, forks 440 (observed 2026-08-28T04:04:35.425365+00:00)

## What it is
A browser-based pitch detection demo app built on the Web Audio API, using a realtime autocorrelation algorithm to detect the pitch of monophonic audio input. It works with live microphone input, demo audio, or an oscillator, and is useful for tasks like instrument tuning.

## Use cases
- detect pitch of live microphone input in the browser
- tune a guitar or other monophonic instrument
- experiment with autocorrelation-based pitch detection
- test live audio input with the Web Audio API
- analyze pitch of whistling or simple waveforms
- display detected frequency in Hz and cents deviation

## When to choose
- you need a simple, MIT-licensed browser demo of realtime pitch detection
- you want to learn how autocorrelation pitch detection works in JavaScript
- you need a quick tuner for monophonic sources like whistling or guitar

## When to avoid
- you need robust pitch detection for polyphonic audio or strong harmonics
- you need a production-grade, well-maintained library rather than a demo app
- you need pitch detection outside the browser environment

## Facets
- artifact type: application
- maturity: maintenance
- function: audio-processing, gui
- domain: web-development, media
- platform: browser
- tags: pitch-detection, web-audio, autocorrelation, tuner, demo-app, audio, web-server

## Member repositories
- cwilso/PitchDetect (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:35.425365+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:39:42.208913+00:00, confidence not recorded.
  - readme: https://github.com/cwilso/PitchDetect (fetched 2026-08-28T04:04:35.425365+00:00, sha e0d60dbaeda4)
  - homepage: https://cwilso.github.io/PitchDetect/ (fetched 2026-08-29T11:55:07.061570+00:00, sha 5b9d5a018a23)
- Data as of 2026-08-30T08:39:29.467469+00:00.
