CREPE (pitch tracker)
CREPE (Convolutional Representation for Pitch Estimation) is a monophonic pitch tracker based on a deep convolutional neural network that operates directly on the audio waveform. Jong Wook Kim, Justin Salamon, Peter Li and Juan Pablo Bello presented it in 2018 as a data-driven alternative to pitch trackers such as pYIN, which combine signal processing pipelines with heuristics.[1:1] In their tests it matched or exceeded pYIN and SWIPE, especially at tight tolerances.[1:2] A pretrained model is distributed as an open-source Python package.[1:1][2:1]
Background
Earlier pitch detection algorithms combined a function for generating candidate periods (the cepstrum, autocorrelation, the average magnitude difference function, normalized cross-correlation, or YIN's cumulative mean normalized difference function) with pre- and post-processing.[1:3] They improved through better heuristics and were not learned from data, apart from hand-tuned parameters, whereas in chord recognition and beat detection data-driven methods had consistently outperformed heuristics.[1:4] Heuristic trackers often reach raw pitch accuracy close to 100%, leading some to treat the task as solved. But even pYIN can give noisy results on uncommon instruments or fast-moving pitch, which matters when pitch tracks are used to make reference annotations.[1:5]
Architecture
CREPE takes a 1024-sample excerpt of audio sampled at 16 kHz. Six convolutional layers produce a 2048-dimensional representation that is densely connected to 360 outputs, one for each pitch bin of 20 cents, covering six octaves from C1 (32.70 Hz) to B7 (1975.5 Hz). The pitch estimate is the average of the bins' pitches weighted by their activations.[1:6] For training, the target is a Gaussian curve with a standard deviation of 25 cents around the true pitch, which softens the penalty for near misses, and the network minimizes binary cross-entropy.[1:7]
Evaluation
Exact reference pitches were needed, so the authors used synthesized audio. RWC-synth is 6.16 hours synthesized from the RWC Music Database with a fixed, simple timbre. MDB-stem-synth is 230 stems of 25 instruments from MedleyDB, 15.56 hours, resynthesized to keep their timbre and dynamics with a known F0.[1:8] The model was trained and tested by five-fold cross-validation, with the MDB-stem-synth folds split by artist to avoid artist and album effects. Accuracy was the share of frames within 50 cents of the reference.[1:9]
On MDB-stem-synth, CREPE's raw pitch accuracy was 0.967, against 0.919 for pYIN and 0.925 for SWIPE; at a tolerance of 10 cents it was 0.909, against 0.826 and 0.816.[1:2] With added noise CREPE was the most accurate in most conditions, but pYIN was almost unaffected by brown noise, whose energy is concentrated at low frequencies.[1:10]
Analysis and limitations
The first-layer filters learned on RWC-synth responded to overtones rather than the fundamental, while most of those learned on the more varied MDB-stem-synth covered the fundamental's range. The authors took this as a sign that the network adapts to the timbre and frequency range of its training data.[1:11] It did worse on higher-pitched instruments and failed on the dizi, a Chinese flute whose tracks all came from one artist, so that none were in the training data when they were tested.[1:12] CREPE estimates each frame independently, without the temporal smoothing pYIN gets from its hidden Markov model.[1:13]
Later developments
Later neural pitch trackers built on CREPE or answered its limits. SPICE (2020) and PESTO (2023) learn pitch without labels from transposed copies of the same audio;[3:1][4:1] PESTO's authors describe CREPE as heavy, dependent on annotated data, poor outside its training domain and unsuited to real time.[5:1] PENN (2023) retrained CREPE and two models derived from it with changes that cut each one's pitch error by at least 28%.[6:1][6:2] RMVPE (2023) reads a singer's pitch directly from a full mix, where CREPE needs the vocals separated first.[7:1] In a community benchmark of 19 trackers on degraded recordings, CREPE scored 0.689, behind RMVPE's 0.768 and level with PESTO's 0.680, and ran at 0.4 times real time on one CPU core.[8:1][8:2]
Software
The released package runs from the command line and writes, for each frame, a timestamp (every 10 ms by default), the estimated frequency and a voicing confidence.[2:2] Smaller models trade a little accuracy for speed,[2:3] and Viterbi smoothing of the pitch curve is optional.[2:4]
- ^a ^b ↗ crepe-abstract ^a ^b ↗ crepe-results ^ ↗ crepe-history-of-methods ^ ↗ crepe-heuristics ^ ↗ crepe-not-solved ^ ↗ crepe-architecture ^ ↗ crepe-training ^ ↗ crepe-datasets ^ ↗ crepe-method-metrics ^ ↗ crepe-noise ^ ↗ crepe-filters ^ ↗ crepe-unseen-timbre ^ ↗ crepe-frame-independent Kim, Jong Wook; Salamon, Justin; Li, Peter; Bello, Juan Pablo (2018-04). CREPE: A Convolutional Representation for Pitch Estimation. 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). https://doi.org/10.1109/ICASSP.2018.8461329 https://arxiv.org/abs/1802.06182.
- ^ ↗ crepe-readme-package ^ ↗ crepe-readme-output ^ ↗ crepe-readme-capacity ^ ↗ crepe-readme-viterbi Music and Audio Research Laboratory, New York University. CREPE Pitch Tracker (README). GitHub: marl/crepe. https://github.com/marl/crepe.
- ^ ↗ spice-method Gfeller, Beat; Frank, Christian; Roblek, Dominik; Sharifi, Matt; et al. (2020). SPICE: Self-Supervised Pitch Estimation. IEEE/ACM Transactions on Audio, Speech, and Language Processing. https://doi.org/10.1109/TASLP.2020.2982285 https://arxiv.org/abs/1910.11664.
- ^ ↗ pesto-abstract Riou, Alain; Lattner, Stefan; Hadjeres, Gaëtan; Peeters, Geoffroy (2023). PESTO: Pitch Estimation with Self-supervised Transposition-equivariant Objective. Proceedings of the 24th International Society for Music Information Retrieval Conference (ISMIR 2023). Milan. https://arxiv.org/abs/2309.02265.
- ^ ↗ pesto2-crepe-limits Riou, Alain; Torres, Bernardo; Hayes, Ben; Lattner, Stefan; et al. (2025). PESTO: Real-Time Pitch Estimation with Self-Supervised Transposition-Equivariant Objective. Transactions of the International Society for Music Information Retrieval. https://doi.org/10.5334/tismir.251 https://transactions.ismir.net/articles/10.5334/tismir.251.
- ^ ↗ penn-paradigm ^ ↗ penn-results Morrison, Max; Hsieh, Caedon; Pruyne, Nathan; Pardo, Bryan (2023). Cross-domain Neural Pitch and Periodicity Estimation. arXiv. https://arxiv.org/abs/2301.12258.
- ^ ↗ rmvpe-pipeline Wei, Haojie; Cao, Xueke; Dan, Tangpeng; Chen, Yueguo (2023-08). RMVPE: A Robust Model for Vocal Pitch Estimation in Polyphonic Music. Interspeech 2023. https://doi.org/10.21437/Interspeech.2023-528 https://arxiv.org/abs/2306.15412.
- ^ ↗ bench-scope ^ ↗ bench-ranking Nieradzik, Lars. Pitch Detection Benchmark (README, version 2.1). GitHub: lars76/pitch-benchmark. https://github.com/lars76/pitch-benchmark.