Skip to main content

collection of pitch detection algorithms with unified interface

Project description

pitch-detectors

collection of pitch detection algorithms with unified interface

list of algorithms

algorithm cpu gpu accuracy [1]
PraatAC 0.880
PraatCC 0.893
PraatSHS 0.618
Pyin 0.886
Reaper 0.826
Yaapt 0.759
World 0.873
TorchYin 0.886
Rapt 0.859
Swipe 0.871
Crepe 0.802
TorchCrepe 0.817
Spice 0.908

install

all agorithms tested on python3.10, this is recommended python version to use

pip install pitch-detectors

usage

from scipy.io import wavfile
from pitch_detectors import algorithms
import matplotlib.pyplot as plt

fs, a = wavfile.read('data/b1a5da49d564a7341e7e1327aa3f229a.wav')
pitch = algorithms.Crepe(a, fs)
plt.plot(pitch.t, pitch.f0)
plt.show()

Alt text

additional features

  • robust (vote-based + median) averaging of pitch
  • json import/export

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pitch-detectors-0.1.0.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

pitch_detectors-0.1.0-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page