Singing Pitch Tracker

v0.3.1
io.github.raulkivi/pitch-mcp Checked 1 day ago Published 2 months ago

Real-time pitch detection and score alignment for a singer, from microphone input

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

analyze_recording

Analyse a pre-recorded WAV file against a reference score. Returns per-note pitch accuracy and a summary histogram.

ParameterTypeDescription
audio_path *stringAbsolute path to a 16-bit PCM WAV file
musicxml *stringMusicXML document as a string
part_id *stringPart ID to compare against (e.g. 'Soprano')

load_score

Load a reference MusicXML score into a named session. Returns a session_id to use with start_monitoring.

ParameterTypeDescription
musicxml *stringMusicXML document as a string
part_id *stringPart ID to monitor (e.g. 'Soprano')

start_monitoring

Open the microphone and begin pitch detection against the loaded score. Requires a session_id from load_score.

ParameterTypeDescription
session_id *stringSession ID from load_score
tempo_bpmintegerOverride tempo in BPM (default: score tempo)

get_current_position

Poll the current score position and pitch accuracy. Call repeatedly while monitoring. Returns measure, beat, and accuracy.

ParameterTypeDescription
session_id *stringSession ID from load_score

stop_monitoring

Stop the microphone and return a session summary. The session is cleaned up after this call.

ParameterTypeDescription
session_id *stringSession ID from load_score

list_capabilities

List supported formats, tools, and backend information for this server

health_check

Check that all runtime dependencies are available and report their status. Use this to verify the server is set up correctly. Returns status for offline analysis (librosa/pYIN) and real-time monitoring (sounddevice/portaudio). Missing portaudio is a warning, not an error — offline analysis still works without it.