autopitch 0.1.0

A modular pitch detection library
Documentation
  • Coverage
  • 57.14%
    4 out of 7 items documented0 out of 3 items with examples
  • Size
  • Source code size: 15.32 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.58 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • paramako/autopitch
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • paramako

autopitch

Crates.io Docs.rs License: MIT Changelog

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 PitchDetector trait 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 autopitch::algorithm::Autocorrelation;
use autopitch::detect::PitchDetector;

let mut detector = Autocorrelation::default();
let samples: Vec<f32> = /* your audio samples */;
let sample_rate = 44100.0;

if let Some(pitch) = detector.detect(&samples, sample_rate) {
    println!("Detected pitch: {:.2} Hz", pitch);
}

License

MIT