CITATION — REFERENCE ENTRY

Learning-Based Methods for Comparing Sequences, with Applications to Audio-to-MIDI Alignment and Matching — Columbia University

Revision 8cce8f13-fea2-4148-a118-e681e32a3476 · 11/27/2026, 6:33:14 AM UTC
Key
raffel2016-thesis
Authors
Raffel, Colin
Issued
2016
Type
thesis
Publisher
Columbia University
Raw CSL JSON
{
  "URL": "https://colinraffel.com/publications/thesis.pdf",
  "note": "Quotes checked against the author's PDF; locators are its section numbers.",
  "type": "thesis",
  "genre": "PhD thesis",
  "title": "Learning-Based Methods for Comparing Sequences, with Applications to Audio-to-MIDI Alignment and Matching",
  "author": [
    {
      "given": "Colin",
      "family": "Raffel"
    }
  ],
  "issued": {
    "date-parts": [
      [
        2016
      ]
    ]
  },
  "publisher": "Columbia University"
}

Claims

  1. Raffel describes MIDI files paired with a General MIDI synthesizer as a kind of semantic audio codec, a whole song needing only a few kilobytes, which made them a pervasive way of storing and playing songs before MP3 and kept them in use for karaoke machines and ringtones. General MIDI's 128 instruments standardize playback, and notes on channel 10 play percussion. In his collection of scraped MIDI files the most common programs, numbered from 0, were 0 (acoustic grand piano), 48 (string ensemble 1), 33 (electric bass, finger) and 25 (steel-string acoustic guitar).
    "The General MIDI standard (International MIDI Association, 1991) further specifies ... a collection of 128 instruments on which the notes can be played, which standardizes the playback of MIDI files and has therefore been widely adopted. ... When paired with a General MIDI synthesizer, MIDI files have been used as a sort of semantic audio codec, with entire songs only requiring a few kilobytes of storage. The early availability of this “coding method”, combined with the expense of digital storage in the 90s, made MIDI files a highly pervasive method of storing and playing back songs before the advent of the MP3. Even after high-quality perceptual audio codecs were developed and storage prices plummeted, MIDI files remained in use in resource-scarce settings such as karaoke machines and cell phone ringtones. ... General MIDI also specifies that all notes occurring on MIDI channel 10 play on a separate percussion instrument, which allows for drum tracks to be transcribed. ... The four most common program numbers (shown as the four tallest bars in figure 3.2) were 0 (“Acoustic Grand Piano”), 48 (“String Ensemble 1”), 33 (“Electric Bass (finger)”), and 25 (“Acoustic Guitar (steel)”)."
    Locator: section: 3 MIDI Files; 3.1.1 Transcription · Quote language: en
  2. The Lakh MIDI Dataset is the main product of Raffel's 2016 thesis. He matched his collection of 178,561 scraped MIDI files against the Million Song Dataset. After setting aside 5,602 unparsable files and those shorter than 30 seconds, he searched 160,603 files, which took about 7 days on 32 processors; 45,612 files had at least one match above his confidence threshold of 0.5, making 118,661 MIDI-to-recording pairings, many files matching several recordings through duplicates, covers and alternate versions. He named the result the Lakh MIDI Dataset because it provides about 100,000 MIDI files.
    "Now that we have empirically validated our approach, we proceed to matching our collection of 178,561 MIDI files to the MSD. ... we ran this process in parallel across 32 processors, resulting in a total run time of about 7 days. While performing the match, we discovered 5,602 MIDI files which were corrupt or otherwise unparsable by pretty_midi. In addition, in order to avoid spurious matches and incomplete transcriptions, we discarded all MIDI files which were less than 30s in length. In the end, we therefore searched for matches in the MSD for a total of 160,603 MIDI files. ... Choosing 0.5 as the threshold above which a confidence score denotes a match (as we did in section 5.2.1 based on the results of section 4.5), we found 45,612 MIDI files which had at least one match in the MSD, and a total of 118,661 MIDI-to-MSD pairings. Many MIDI files were matched to multiple MSD entries due to duplicates, covers, and alternate versions; ... collection the “Lakh MIDI Dataset” (LMD), because depending on how you count we are providing about 100,000 MIDI files. ... The main product of this thesis is the Lakh MIDI Dataset, described in section 7.1.3."
    Locator: section: 7.1.3 The Lakh MIDI Dataset; 8.1 Next Steps · Quote language: en
  3. Lyrics meta-events add timestamped text to a MIDI file, which makes MIDI files common for karaoke; files with lyrics often take the extension '.kar'. About 13.3% of the files in Raffel's collection had at least one lyrics meta-event.
    "Lyrics can be added to MIDI transcriptions by the use of lyrics meta-events, which allow for timestamped text to be included over the course of the song. This capability enables the common use of MIDI files for karaoke; in fact, a separate file extension “.kar” is often used for MIDI files which include lyrics meta-events. ... In our collection, we found 23,801 MIDI files (about 13.3%) which had at least one lyrics meta-event."
    Locator: section: 3.1.5 Lyrics · Quote language: en
  4. A MIDI file is a collection of tracks, each a sequence of MIDI events on one of 16 channels: note-on and note-off messages give each note's start and end, control events such as pitch bends refine playback, and program changes choose the instrument. Each event gives the number of 'ticks' since the previous one; the resolution in the file header sets ticks per beat, and tempo events, which specify microseconds per quarter note, set the length of a beat. At 220 ticks per beat and 120 beats per minute, for example, 330 ticks is 0.75 seconds. The default tempo is 120 beats per minute; most files have a single tempo, but some use many tempo changes so that the file follows a recording's timing.
    "MIDI files are specified as a collection of “tracks”, where each track consists of a sequence of MIDI events on one of 16 channels. Commonly used MIDI events are note-on and note-off messages, which together specify the start and end time of notes played at a given pitch on a given channel. Various control events also exist, such as pitch bends, which allow for finer control of the playback of the MIDI file. Program change events determine which instrument these events are sent to. ... Timing in MIDI files is determined by two factors: The MIDI file’s specified “resolution” and tempo change events. Each event within the MIDI file specifies the ... number of “ticks” between it and the preceding event. The resolution, which is stored in the MIDI file’s header, sets the number of ticks which correspond to a single beat. The amount of time spanned by each tick is then determined according to the current tempo, as set by tempo change events. For example, if a MIDI file has a resolution of 220 ticks per beat and the current tempo is 120 beats per minute, ... each tick would correspond to 60/(120 ∗ 220) = 0.00227 seconds. If a MIDI event in this file is specified to occur 330 ticks after the previous event, then it would occur 330 ∗ 0.00227 = .75 seconds later. ... Actually, tempo change events specify the number of microseconds per quarter beat, but this can be readily converted to beats per minute. ... In practice, as shown in figure 3.3, most MIDI files only contain a single tempo change and are therefore transcribed at a fixed tempo. ... We have found that this is a common practice for making the timing of a MIDI transcription closely match that of an audio recording of the same song. Despite the fact that the default tempo for a MIDI file is 120 beats per minute,"
    Locator: section: 3.1.1 Transcription; 3.1.3 Meter · Quote language: en
  5. Raffel argued that MIDI files, available in abundance as transcriptions of songs, were underused in music information retrieval. Because they list notes with velocities on a set of instruments, they serve as training data for automatic transcription, as priors for score-informed source separation, and for instrument activity detection and onset detection.
    "As a result, there is an abundance of MIDI file transcriptions of music available today; ... Given their wide availability, we believe that MIDI files are underutilized in the music information retrieval community. ... As a result, many MIDI files are transcriptions and are thus commonly used as training data for automatic transcription systems ... This type of data also benefits score-informed source separation methods, which utilize the score as a prior to improve source separation quality ... An additional natural use of this information is for “instrument activity detection”, ... the enumeration of note start times lends itself naturally to onset detection,"
    Locator: section: 3 MIDI Files; 3.1.1 Transcription · Quote language: en
  6. Although General MIDI includes vocal sounds such as 'Choir Aahs' and 'Voice Oohs', no program number is consistently used to transcribe vocals, so there is no reliable way to tell which part of a MIDI file is the vocal line.
    "While the General MIDI specification includes the vocal instruments “Choir Aahs”, “Voice Oohs”, “Synth Choir”, “Lead 6 (voice)” and “Pad 4 (choir)”, in practice there is no specific program number (or numbers) which is consistently used to transcribe vocals. As a result, in a given MIDI file there is no reliable way of determining which instrument is a transcription of the vocals"
    Locator: section: 3.1.6 What’s Missing · Quote language: en
Available in