Dataset Viewer
Auto-converted to Parquet Duplicate
md5
stringlengths
32
32
score
listlengths
256
264k
0000039770e46bd4efb3b4f4bc130cc3
[ 845, 0, 547, 220, 259, 475, 179, 259, 459, 164, 259, 465, 3, 760, 215, 259, 470, 183, 259, 458, 171, 259, 461, 3, 539, 219, 259, 475, 191, 259, 456, 176, 259, 462, 4, 526, 212, 259, 470, 191, 259, 457, 176, 259, 458, 3, 518,...
000003983201ce8936b45fccdcc692af
[ 845, 0, 512, 200, 275, 471, 6, 521, 209, 295, 479, 6, 517, 181, 302, 471, 6, 512, 188, 294, 479, 6, 521, 197, 283, 471, 17, 514, 202, 269, 479, 6, 522, 210, 302, 495, 6, 516, 180, 295, 479, 6, 522, 186, 287, 479, 6, 519, ...
00000b8982c198eb5ba5540ac0aa6358
[ 845, 0, 512, 212, 261, 484, 5, 523, 211, 264, 479, 8, 519, 207, 261, 459, 5, 815, 209, 275, 479, 181, 269, 464, 12, 561, 192, 280, 464, 188, 282, 469, 185, 281, 464, 7, 512, 212, 261, 484, 4, 523, 211, 266, 479, 10, 519, 2...
000014cc7829b282b79168e5af2fc7ec
[ 845, 0, 758, 191, 258, 484, 169, 258, 433, 6, 515, 191, 258, 484, 6, 514, 190, 258, 484, 7, 514, 190, 258, 484, 6, 515, 191, 258, 484, 6, 758, 191, 258, 484, 169, 258, 433, 7, 514, 190, 258, 484, 6, 514, 190, 258, 484, 7, ...
0000172d8bbf4d0fe976027cd602a05b
[ 845, 0, 527, 204, 263, 440, 200, 262, 434, 8, 516, 192, 268, 446, 22, 523, 199, 265, 446, 1, 527, 204, 266, 440, 200, 265, 446, 21, 521, 197, 262, 465, 1, 516, 204, 262, 459, 22, 521, 209, 284, 459, 22, 516, 204, 264, 446, ...
000025c68f83a55cdadcda8350a6fe21
[ 845, 0, 812, 181, 271, 471, 169, 271, 465, 15, 529, 205, 259, 474, 200, 259, 466, 16, 838, 184, 271, 467, 172, 271, 457, 15, 529, 205, 259, 476, 200, 259, 462, 16, 812, 181, 271, 465, 169, 271, 461, 16, 529, 205, 259, 473, 2...
00002639118cbac7bf3f09262e2a45b8
[ 845, 0, 702, 190, 260, 484, 166, 260, 484, 34, 723, 190, 260, 484, 166, 260, 484, 162, 260, 484, 34, 707, 190, 260, 484, 166, 260, 484, 159, 260, 484, 34, 558, 188, 260, 484, 161, 260, 484, 13, 558, 188, 260, 484, 161, 260, ...
00002b2ca92f22a9cb1d641be185b0b3
[ 845, 0, 524, 188, 271, 489, 164, 263, 464, 15, 540, 192, 263, 464, 183, 263, 459, 180, 263, 459, 176, 263, 459, 8, 519, 195, 263, 464, 8, 524, 200, 271, 479, 164, 263, 464, 15, 540, 183, 263, 459, 180, 263, 459, 176, 263, 45...
000038d9ef74a7bcce84e862f8dcfe40
[ 845, 0, 540, 200, 266, 473, 192, 266, 478, 183, 265, 468, 176, 265, 468, 10, 516, 204, 266, 468, 10, 519, 207, 265, 473, 10, 512, 212, 275, 468, 10, 833, 195, 265, 457, 183, 275, 468, 9, 736, 211, 262, 462, 202, 261, 462, 5,...
00003c5b562c6c36f41098618d670732
[ 845, 0, 843, 198, 271, 484, 174, 263, 460, 15, 835, 198, 287, 484, 171, 263, 460, 16, 727, 190, 263, 455, 186, 263, 455, 183, 263, 455, 15, 717, 197, 271, 460, 185, 263, 455, 181, 263, 455, 178, 263, 455, 16, 760, 195, 287, ...
0000434d7180ced30cc16462ec318187
[ 845, 0, 514, 178, 260, 496, 2, 516, 180, 257, 494, 1, 516, 180, 260, 494, 3, 519, 183, 269, 510, 13, 796, 180, 257, 490, 173, 383, 490, 1, 796, 185, 383, 490, 180, 383, 490, 127, 514, 178, 260, 506, 846, 3, 516, 180, 260, ...
00004ea07465edf35c4175f5b7b85964
[ 845, 0, 524, 176, 263, 472, 164, 263, 464, 152, 263, 465, 7, 524, 176, 263, 470, 164, 263, 464, 152, 263, 467, 8, 524, 176, 263, 469, 164, 263, 464, 152, 263, 460, 8, 524, 176, 263, 468, 164, 263, 461, 152, 263, 462, 8, 524,...
00005092952991904f139ea1f1de45d1
[ 845, 0, 518, 182, 317, 438, 2, 521, 209, 318, 452, 14, 514, 190, 301, 447, 15, 518, 194, 286, 438, 1, 514, 202, 286, 452, 15, 516, 204, 272, 452, 15, 519, 183, 328, 434, 1, 514, 202, 330, 452, 16, 514, 190, 312, 447, 16, 5...
000059d13193684821b7635346730dcb
[ 845, 0, 517, 169, 258, 435, 6, 517, 169, 258, 430, 6, 517, 169, 259, 435, 6, 517, 169, 259, 433, 6, 517, 169, 259, 430, 7, 517, 169, 259, 430, 6, 517, 169, 259, 433, 6, 517, 169, 259, 433, 6, 517, 169, 259, 433, 7, 517, ...
00005ac4b70760ec300536e4b13876a8
[ 845, 0, 704, 193, 281, 475, 178, 268, 467, 12, 521, 185, 268, 466, 13, 812, 193, 281, 473, 181, 268, 466, 12, 521, 185, 268, 465, 13, 704, 193, 281, 473, 178, 268, 462, 12, 521, 185, 268, 466, 13, 815, 197, 281, 474, 181, 26...
00005c2504329dd4787b00aae464c961
[ 845, 0, 515, 215, 260, 470, 8, 517, 217, 260, 475, 9, 522, 210, 260, 464, 8, 512, 212, 260, 473, 9, 520, 208, 260, 470, 8, 517, 205, 260, 466, 4, 513, 213, 260, 475, 9, 520, 208, 260, 466, 8, 515, 215, 260, 476, 9, 520, ...
End of preview. Expand in Data Studio

Discover Piano

Ultimate pre-tokenized solo Piano MIDI dataset for symbolic music AI and MIR purposes

Discover-Piano-Logo


Installation and use


Load dataset

#===================================================================

from datasets import load_dataset

#===================================================================

discover_piano = load_dataset('asigalov61/Discover-Piano')

dataset_split = 'train'
dataset_entry_index = 0

dataset_entry = discover_piano[dataset_split][dataset_entry_index]

midi_hash = dataset_entry['md5']
midi_score = dataset_entry['score']

print(midi_hash)
print(midi_score[:15])

Decode score to MIDI

#===================================================================
# !git clone --depth 1 https://github.com/asigalov61/tegridy-tools
#===================================================================

import TMIDIX

#===================================================================

def decode_to_ms_MIDI_score(midi_score):

    score = []

    time = 0
    
    for t in midi_score:

        if 0 <= t < 128:
            time += t * 32
    
        elif 128 < t < 256:
            ptc = (t-128) 
    
        elif 256 < t < 384:
            dur = (t-256) * 32

        elif 384 < t < 512:
            vel = (t-384)

            score.append(['note', time, dur, 0, ptc, vel, 0])

        elif 512 <= m < 845:
            chord_tok = m-512
            chord = TMIDIX.ALL_CHORDS_SORTED[chord_tok-12] if chord_tok > 11 else [chord_tok]

        elif 845 <= m < 973:
            bar_tok = m-845

    return score
    
#===================================================================

ms_MIDI_score = decode_to_ms_MIDI_score(midi_score)

#===================================================================

detailed_stats = TMIDIX.Tegridy_ms_SONG_to_MIDI_Converter(ms_MIDI_score,
                                                          output_signature = midi_hash,
                                                          output_file_name = midi_hash,
                                                          track_name='Project Los Angeles'
                                                          )

Dataset pipeline

import os
import TMIDIX # v26.7.20

clean_midis = TMIDIX.read_jsonl('Discover-MIDI-Dataset/DATA/Files Lists/clean_midis_files_list.jsonl')

filez = [os.path.join('Discover-MIDI-Dataset/MIDIs', f['md5'][0], f['md5'][1], f['md5']+'.mid') for f in pool]

CLEAN_INSTRUMENTS = TMIDIX.LEAD_INSTRUMENTS+TMIDIX.BASE_INSTRUMENTS

def process(input_midi):

    try:
        raw_score = TMIDIX.midi2single_track_ms_score(input_midi)
        
        escore_notes = TMIDIX.advanced_score_processor(raw_score, return_enhanced_score_notes=True, apply_sustain=True)[0]
        
        escore_notes = TMIDIX.augment_enhanced_score_notes(escore_notes, timings_divider=32)

        escore_notes = [e for e in escore_notes if e[6] < 80 and e[6] in CLEAN_INSTRUMENTS]

        escore_notes = TMIDIX.solo_piano_escore_notes(escore_notes)

        escore_notes = TMIDIX.remove_duplicate_pitches_from_escore_notes(escore_notes)

        escore_notes = TMIDIX.fix_escore_notes_durations(escore_notes, min_notes_gap=0)
        
        cscore = TMIDIX.chordify_score([1000, escore_notes])

        fixed_score = []

        for c in cscore:
            c.sort(key=lambda x: -x[4])

            tones_chord = sorted(set([p[4] % 12 for p in c]))

            if tones_chord not in TMIDIX.ALL_CHORDS_SORTED:
                tones_chord = TMIDIX.check_and_fix_tones_chord(tones_chord, use_full_chords=False)

            for e in c:
                if e[4] % 12 in tones_chord:
                    fixed_score.append(e)

        vels = [e[5] for e in fixed_score]
        avg_vel = sum(vels) / len(vels)

        if len(set(vels)) == 1:
            fixed_score = TMIDIX.humanize_velocities_in_escore_notes(fixed_score)

        if avg_vel < 80:
            TMIDIX.adjust_score_velocities(fixed_score, 100)

        cscore = TMIDIX.chordify_score([1000, fixed_score])

        score = []

        abs_time = 0
        pbar = -1

        pc = cscore[0]

        for c in cscore:
            c.sort(key=lambda x: -x[4])
            
            if abs_time // 128 > 127:
                break

            if abs_time // 128 > pbar:
                score.append(min(127, (abs_time // 128))+845)
                pbar = min(127, (abs_time // 128))

            tones_chord = sorted(set([p[4] % 12 for p in c]))

            if len(c) > 1:
                chord_tok = TMIDIX.ALL_CHORDS_SORTED.index(tones_chord)+12

            else:
                chord_tok = tones_chord[0]

            dtime = max(0, min(127, c[0][1]-pc[0][1]))
            score.append(dtime)

            score.append(chord_tok+512)
            
            abs_time += dtime

            for e in c:
                score.extend([max(1, min(127, e[4]))+128, max(1, min(127, e[2]))+256, e[5]+384])

            pc = c

        if len(score) > 255:
            return os.path.splitext(os.path.basename(input_midi))[0], score

    except:
        return None

Changelog

Version 26.7.24

  • Dataset now features the best possible encoding scheme which should greately improve the results.
  • This is a breaking change from the original version so if you need the original version, please pull it from the respective commits/DOIs.

Citations

@misc{DiscoverPiano2026,
  title        = {Discover Piano: Ultimate pre-tokenized solo Piano MIDI dataset for symbolic music AI and MIR purposes},
  author       = {Alex Lev},
  publisher    = {Project Los Angeles / Tegridy Code},
  year         = {2026},
  url          = {https://huggingface.co/datasets/asigalov61/Discover-Piano}
@misc{project_los_angeles_2025,
    author       = { Project Los Angeles },
    title        = { Discover-MIDI-Dataset },
    year         = 2025,
    url          = { https://huggingface.co/datasets/projectlosangeles/Discover-MIDI-Dataset },
    publisher    = { Hugging Face }
}

Project Los Angeles

Tegridy Code 2026

Downloads last month
124

Models trained or fine-tuned on asigalov61/Discover-Piano

Space using asigalov61/Discover-Piano 1