autopitch
A modular pitch detection library for Rust.
Lightweight, fast, and suitable for real-time audio analysis.
Features
- Zero dependencies
- Designed for real-time use (no heap allocations during detection)
- Simple
PitchDetectortrait for pluggable algorithms
Algorithms
| Algorithm | Status | Description |
|---|---|---|
| Autocorrelation | Available | Time-domain autocorrelation with first-peak detection and parabolic interpolation |
| More algorithms | Coming soon | — |
Usage
use Autocorrelation;
use PitchDetector;
let mut detector = default;
let samples: = /* your audio samples */;
let sample_rate = 44100.0;
if let Some = detector.detect
License
MIT