Basic Pitch
Basic Pitch is a small neural network for transcribing recordings of a single instrument, including the voice, into notes and multipitch estimates. Rachel Bittner and colleagues at Spotify presented it at ICASSP 2022.[1:1][2:1] It is released as an open-source library that turns an audio file into a MIDI file with pitch bends.[2:1] With only 16,782 parameters it runs on low-powered devices, and its frame-level accuracy is only slightly below that of specialized systems.[1:1]
Design
The model starts from a constant-Q transform with three bins per semitone and a hop of about 11 ms. Copies of it are shifted so that seven harmonics and one subharmonic line up, which lets small convolution kernels see harmonically related frequencies together.[1:2] It produces three outputs: where notes begin and where notes are active, at one bin per semitone, and which pitches are active, at three bins per semitone, which keeps details such as vibrato. A kernel spanning an octave and a semitone in frequency helped it avoid octave mistakes.[1:3] Notes are then formed by a heuristic step: onsets are picked from the onset output, each note is followed until its activity fades, remaining activity becomes notes without detected onsets, and notes shorter than about 120 ms are dropped.[1:4]
Training data
Basic Pitch was trained on GuitarSet, MAESTRO, Slakh, iKala and MedleyDB, and tested on vocal, guitar, piano, synthesizer and orchestral recordings; its training audio was augmented with noise, equalization and reverb.[1:5] Its training therefore included the MAESTRO piano recordings and GuitarSet.
Results
Against instrument-specific systems, Basic Pitch gave the best results on GuitarSet that its authors knew of. On piano it fell well short of Onsets and Frames, a model of about 18 million parameters trained on MAESTRO, with a note F-measure of 70.9% against 95.2%, and on vocals a specialized system scored higher on notes.[1:6] As a multipitch estimator it reached a frame-level accuracy of 72.5 on the Bach10 chamber recordings against 55.7 for the deep salience model, but did worse on another dataset.[1:7] On a recording of almost eight minutes it used 951 MB of memory and 24 seconds on a laptop, against 3.3 GB and 96 seconds for a comparable instrument-agnostic model; Onsets and Frames peaked at 5.4 GB.[1:8]
Software and limitations
The library works best on one instrument at a time, and ships the model in TensorFlow and converted to CoreML, TensorFlow Lite and ONNX.[2:1] Its authors named as future work transcribing mixtures of many instruments, replacing the heuristic note creation with a better model, and combining the note and pitch outputs to estimate pitch bends per note.[1:9]
- ^a ^b ↗ lightweight-agnostic ^ ↗ bp-input ^ ↗ bp-outputs ^ ↗ bp-notes-postprocess ^ ↗ bp-data ^ ↗ bp-vs-specific ^ ↗ bp-mpe-results ^ ↗ bp-efficiency ^ ↗ bp-future Bittner, Rachel M.; Bosch, Juan José; Rubinstein, David; Meseguer-Brocal, Gabriel; et al. (2022). A Lightweight Instrument-Agnostic Model for Polyphonic Note Transcription and Multipitch Estimation. ICASSP 2022 - IEEE International Conference on Acoustics, Speech and Signal Processing. https://arxiv.org/abs/2203.09893.
- ^a ^b ^c ↗ bp-readme Spotify. Basic Pitch (README). GitHub: spotify/basic-pitch. https://github.com/spotify/basic-pitch.
Discussion
No threads yet.
Sign in to start threads and post replies.