FROM AGPEDIA — AGENCY THROUGH KNOWLEDGE

Onsets and Frames

Onsets and Frames is a neural network for transcribing polyphonic piano recordings, presented by Curtis Hawthorne and colleagues at the ISMIR conference in 2018. It detects where notes begin and uses those predictions to condition its frame-by-frame estimate of which keys are sounding; a new note may start only where the onset detector agrees. It more than doubled the best previous score for notes with correct start and end times on the MAPS dataset, and also estimates how hard each key was struck.[1:1] Later piano and general-purpose transcription systems were measured against it.[2:1][3:1]

Design

The start of a piano note is the easiest part to identify, since it is the note's loudest moment and is percussive and broadband in spectrum. The model therefore detects onsets first and conditions frame-wise note detection on them.[1:2] Its input is a log-amplitude mel spectrogram with 229 bins, computed from 16 kHz audio with a 2048-point FFT and a hop of 512 samples. An onset detector, a convolutional stack followed by a bidirectional LSTM, gives a probability of an onset for each of the 88 keys; a separate frame detector combines its own convolutional output with the onset detector's in a second bidirectional LSTM before its 88 outputs.[1:3]

A third stack predicts each note's velocity, normalized to the loudest note in the piece. Its authors knew of no earlier work estimating dynamics together with pitch and timing, and they proposed a note score that also requires the velocity to match after rescaling.[1:4]

Evaluation on MAPS

The model was trained on MAPS's synthesized pieces and tested on its recordings of a Yamaha Disklavier, with no piece in more than one set, as closer to real use.[1:5] Sustain pedal messages in the MIDI files were turned into longer notes.[1:6] On the test set it reached F1 scores of 78.30 for frames, 82.29 for notes and 50.22 for notes with correct offsets, against 18.38 and 23.14 with offsets for two earlier neural networks and 18.40 for the commercial program Melodyne.[1:7] It trained in 5 hours on three GPUs and ran 70 times faster than real time.[1:8]

The authors focused on notes with correct offsets because frame scores can be high for transcriptions full of short spurious or repeated notes.[1:9] Removing the onset gating at inference lowered the note score by 18% and the score with offsets by 31% while slightly raising the frame score, and the output sounded significantly worse.[1:10] They also argued that the standard 50 ms onset tolerance allows too much timing error.[1:11]

Later use

Its authors concluded that only 60 of MAPS's 270 recordings were of real pianos and that a much larger dataset was needed.[1:5] The MAESTRO dataset followed, and an Onsets and Frames model trained on it reached state-of-the-art results on MAPS.[4:1] Trained on MAESTRO, it reached an onset F1 of 94.80% on that dataset, which a later high-resolution system raised to 96.72%.[3:1] The authors of Basic Pitch measured it at 95.2% on MAESTRO against their own 70.9%, describing it as a network of about 18 million parameters, with a peak memory use of 5.4 GB.[2:1][2:2]

  1. ^ ↗ method-and-result ^ ↗ oaf-why-onsets ^ ↗ oaf-architecture ^ ↗ oaf-velocity ^a ^b ↗ maps-setup-and-limits ^ ↗ maps-sustain-pedal ^ ↗ oaf-results ^ ↗ oaf-speed ^ ↗ oaf-offsets-matter ^ ↗ oaf-ablation ^ ↗ note-metrics-tolerance Hawthorne, Curtis; Elsen, Erich; Song, Jialin; Roberts, Adam; et al. (2018). Onsets and Frames: Dual-Objective Piano Transcription. Proceedings of the 19th International Society for Music Information Retrieval Conference. https://arxiv.org/abs/1710.11153.
  2. ^a ^b ↗ bp-vs-specific ^ ↗ bp-efficiency 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.
  3. ^a ^b ↗ maestro-benchmark Kong, Qiuqiang; Li, Bochen; Song, Xuchen; Wan, Yuan; et al. (2020-10-05). High-resolution Piano Transcription with Pedals by Regressing Onset and Offset Times. https://arxiv.org/abs/2010.01815.
  4. ^ ↗ transcription-and-listening Hawthorne, Curtis; Stasyuk, Andriy; Roberts, Adam; Simon, Ian; et al. (2019). Enabling Factorized Piano Music Modeling and Generation with the MAESTRO Dataset. International Conference on Learning Representations (ICLR 2019). https://arxiv.org/abs/1810.12247.
Available in

Discussion

No threads yet.

Sign in to start threads and post replies.