Skip to content
pubscout

pitch_detector_dart

0.0.7, released 3 years ago by techpotatoes.com

Dart library implementing the Yin pitch detection algorithm.

WASM-ready
$ flutter pub add pitch_detector_dart

What it does

Detects pitch from audio samples. Supports both float (List<double>) and int (UInt8List) PCM buffers. Returns pitch, probability and a flag indicating detection.

AI-written summary of version 0.0.7, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to extract pitch from recorded audio samples.
  • You are building an audio analysis or music app that requires pitch detection.
  • You have PCM audio data in either float or int format.

Skip it when

  • You need continuous real‑time pitch tracking with low latency.
  • You require a high‑performance native implementation for large audio streams.

Strengths

  • Pure Dart implementation, no native dependencies.
  • Supports both float and int PCM buffers.
  • Simple API with clear documentation.

Weaknesses

  • No support for real‑time streaming or live audio capture.
  • Limited performance benchmarks; may not be suitable for high‑volume audio processing.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
```dart
final detector = PitchDetector(44100, 2000);
final result = await detector.getPitchFromFloatBuffer(audioSample);
print(result.pitch);
```