MCPcopy Index your code
hub / github.com/cwilso/PitchDetect

github.com/cwilso/PitchDetect @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
9 symbols 16 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Simple pitch detection

I whipped this app up to start experimenting with pitch detection, and also to test live audio input. It used to perform a naive (zero-crossing based) pitch detection algorithm; now it uses a naively-implemented auto-correlation algorithm in realtime, so it should work well with most monophonic waveforms (although strong harmonics will throw it off a bit). It works well with whistling (which has a clear, simple waveform); it also works pretty well to tune my guitar.

Live instance hosted on Github at https://cwilso.github.io/PitchDetect/.

Check it out, feel free to fork, submit pull requests, etc. MIT-Licensed - party on.

-Chris

Core symbols most depended-on inside this repo

updatePitch
called by 3
js/pitchdetect.js
noteFromPitch
called by 1
js/pitchdetect.js
frequencyFromNoteNumber
called by 1
js/pitchdetect.js
centsOffFromPitch
called by 1
js/pitchdetect.js
autoCorrelate
called by 1
js/pitchdetect.js
startPitchDetect
called by 0
js/pitchdetect.js
toggleOscillator
called by 0
js/pitchdetect.js
toggleLiveInput
called by 0
js/pitchdetect.js

Shape

Function 9

Languages

TypeScript100%

Modules by API surface

js/pitchdetect.js9 symbols

For agents

$ claude mcp add PitchDetect \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact