Datasets:
File size: 16,854 Bytes
90e3dde cb3e646 90e3dde cb3e646 90e3dde cb3e646 90e3dde cb3e646 90e3dde | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 | ---
license: cc-by-nc-sa-4.0
task_categories:
- audio-classification
tags:
- music
- piano
- midi
- symbolic-music
- expressive-performance
- score-to-performance
pretty_name: PianoCoRe
size_categories:
- 100K<n<1M
source_datasets:
- extended
- original
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: test
path: data/test-*
dataset_info:
features:
- name: id
dtype: string
- name: composer
dtype: string
- name: composition
dtype: string
- name: movement
dtype: string
- name: performance_id
dtype: string
- name: split
dtype: string
- name: tier_b
dtype: bool
- name: tier_a
dtype: bool
- name: tier_a_star
dtype: bool
- name: score_dataset
dtype: string
- name: score_id
dtype: string
- name: score_xml_path
dtype: string
- name: score_midi_path
dtype: string
- name: score_note_count
dtype: float32
- name: score_duration
dtype: float32
- name: performance_dataset
dtype: string
- name: performance_midi_path
dtype: string
- name: performance_note_count
dtype: float32
- name: performance_duration
dtype: float32
- name: performer
dtype: string
- name: is_transcription
dtype: bool
- name: capture_model
dtype: string
- name: raw_alignment_path
dtype: string
- name: raw_recall
dtype: float32
- name: raw_precision
dtype: float32
- name: raw_adjusted_alignment_ratio
dtype: float32
- name: is_duplicate
dtype: bool
- name: lead_performance
dtype: string
- name: quality_label
dtype: string
- name: prob_score
dtype: float32
- name: prob_high_quality
dtype: float32
- name: prob_low_quality
dtype: float32
- name: prob_corrupted
dtype: float32
- name: is_refined
dtype: bool
- name: refined_score_midi_path
dtype: string
- name: refined_score_note_count
dtype: float32
- name: refined_score_duration
dtype: float32
- name: refined_performance_midi_path
dtype: string
- name: refined_performance_note_count
dtype: float32
- name: refined_performance_interpolated_note_count
dtype: float32
- name: refined_performance_duration
dtype: float32
- name: refined_alignment_path
dtype: string
- name: refined_recall
dtype: float32
- name: score_xml_bytes
dtype: binary
- name: score_midi_bytes
dtype: binary
- name: performance_midi_bytes
dtype: binary
- name: raw_alignment_bytes
dtype: binary
- name: refined_score_midi_bytes
dtype: binary
- name: refined_performance_midi_bytes
dtype: binary
- name: refined_alignment_bytes
dtype: binary
---
# PianoCoRe: Combined and Refined Piano MIDI Dataset
**PianoCoRe** is a large-scale piano MIDI dataset that unifies and refines major open-source piano corpora.
It contains **250,046 performances** of **5,625 pieces** written by **483 composers**, totaling **21,763 hours** of performed music.
**PianoCoRe** provides the most diverse composer- and composition-annotated piano MIDI data.
The metadata includes deduplication flags, MIDI quality labels and precise note-level score-performance alignments.
The alignments are refined using a **Refined Alignment for Scores and Performances (RAScoP)** pipeline, integrated into the [Symbolic Music Performance modeling (SyMuPe)](https://github.com/ilya16/SyMuPe) Python package.
The pipeline ensures perfect note-by-note score-performance synchronization for expressive performance modeling.
## Related Resources
* **TISMIR:** https://doi.org/10.5334/tismir.333
* **arXiv:** https://arxiv.org/abs/2605.06627
* **GitHub:** https://github.com/ilya16/PianoCoRe
* **Zenodo:** https://doi.org/10.5281/zenodo.19186016
**Note**: This Hugging Face version stores data in compressed Parquet files with raw bytes.
If you prefer the original MIDI files in a directory structure, please use the [Zenodo Mirror](https://doi.org/10.5281/zenodo.19186016).
## Dataset Tiers
| Dataset | Composers | Pieces | Performances | Hours | Scores | Alignments |
| --- | :---: | :---: | :---: | :---: | :---: | :---: |
| **PianoCoRe-C** | 483 | 5,625 | 250,046 | 21,763 | 75.3% | no |
| **PianoCoRe-B** | 478 | 5,591 | 214,092 | 18,757 | 75.0% | no |
| **PianoCoRe-A** | 151 | 1,591 | 157,207 | 12,509 | 100% | note |
| **PianoCoRe-A\*** | 137 | 1,517 | 130,275 | 10,330 | 100% | note |
To support different research applications, the dataset is organized into tiered subsets:
- **PianoCoRe-C (Combined):** a complete mixed-source piano performance collection.
*Applications*: piano performance analysis, data cleaning algorithms.
- **PianoCoRe-B (Base):** a deduplicated and quality-filtered subset.
*Applications*: large-scale pre-training, piano performance generation.
- **PianoCoRe-A (Aligned):** a subset containing performances aligned to score.
*Applications*: score-performance analysis, expressive piano performance rendering.
- **PianoCoRe-A\*:** a high quality subset of the best-quality performances and note-level alignments.
*Applications*: expressive piano performance rendering, performance-to-score transcription.
## Quick Start
Use the following example code to access the metadata:
```python
from datasets import load_dataset
# Load the train split of the PianoCoRe dataset (streaming mode)
dataset = load_dataset("SyMuPe/PianoCoRe", split="train", streaming=True)
# Optionally drop heavy columns with bytes (e.g., MusicXML/MXL data)
# dataset = dataset.remove_columns(["score_xml_bytes"])
# Filter for high-confidence samples (PianoCoRe-A*)
dataset_a_star = dataset.filter(lambda x: x["tier_a_star"])
# Take one sample
sample = next(iter(dataset_a_star))
print(f"ID: {sample['id']}")
print(f"Work: {sample['composer']} - {sample['composition']}" + (f" - {sample['movement']}" if sample["movement"] else ""))
print(f"Score: {sample['score_midi_path']}")
print(f"Performance: {sample['performance_midi_path']}\n")
```
The **raw** MIDI data and alignments can be accessed using:
```python
from symusic import Score
from symupe import Alignment
# Load raw score and performance MIDI data
score_midi = Score.from_midi(sample["score_midi_bytes"]) if sample["score_midi_bytes"] is not None else None
performance_midi = Score.from_midi(sample["performance_midi_bytes"])
print(f"Score MIDI: {score_midi}")
print(f"Performance MIDI: {performance_midi}")
# Load raw alignment
if sample['raw_alignment_bytes'] is not None:
raw_alignment = Alignment.from_bytes(sample["raw_alignment_bytes"])
print(f"Raw alignment: {len(raw_alignment)} total and {raw_alignment.num_full_pairs} matched pairs")
# Save in a human-readable format
# raw_alignment.save("alignment.txt")
```
The **refined** MIDI data and alignments can be accessed using:
```python
import io
import numpy as np
from symusic import Score
if sample["refined_performance_midi_bytes"] is not None:
# Load refined score and performance MIDI data
score_midi = Score.from_midi(sample["refined_score_midi_bytes"])
performance_midi = Score.from_midi(sample["refined_performance_midi_bytes"])
print(f"Refined Score MIDI: {score_midi}")
print(f"Refined Performance MIDI: {performance_midi}")
# Load refined alignment
refined_alignment = np.load(io.BytesIO(sample["refined_alignment_bytes"]))
print(f"Refined Alignment:")
print(f" performance indices: {refined_alignment['perf_idx']}")
print(f" interpolation mask: {refined_alignment['interpolated']}")
```
---
## Dataset Metadata
The **PianoCoRe** metadata rows are organized using a natural sort based on performance MIDI paths.
The following fields are defined for each entry:
### Core:
- **id** (string): unique sample ID (format: `PianoCoRe_XXXXXX`)
- **composer** (string): name of the composer (format: `[last_name],_[first_name]`)
- **composition** (string): title of the musical work/composition
- **movement** (string, optional): name of the specific movement/part of the composition
- **performance_id** (string): ID of the performance MIDI file, derived from the source dataset name and its internal ID
### Subsets:
- **split** (string): dataset split (`train` or `test`)
- **tier_b** (bool): whether the performance is in the **PianoCoRe-B** subset (deduplicated and quality-filtered)
- **tier_a** (bool):whether the performance is in the **PianoCoRe-A** subset (note-aligned to scores)
- **tier_a_star** (bool): whether the performance is in the **PianoCoRe-A*** subset (highest-confidence alignments)
### Score:
- **score_dataset** (string, optional): source dataset for the score MusicXML/MXL files (ASAP/ATEPP/PDMX/MuseScore)
- **score_id** (string, optional): ID of the score MIDI file, either as in the source dataset or built using the source dataset name and ID
- **score_xml_path** (string, optional): path to the score MusicXML/MXL file within the `raw/` directory
- **score_midi_path** (string, optional): path to the score MIDI file within the `raw/` directory
- **score_note_count** (integer, optional): number of notes in the score MIDI
- **score_duration** (float, optional): duration of the score MIDI in seconds
### Performance:
- **performance_dataset** (string): source dataset of the performance MIDI
- **performance_midi_path** (string): path to the performance MIDI file within the `raw/` directory
- **performance_note_count** (integer): number of notes in the performance MIDI
- **performance_duration** (float): duration of the performance MIDI in seconds
- **performer** (string, optional) name of the pianist (if available)
- **is_transcription** (bool): whether the performance MIDI was transcribed from audio
- **capture_model** (string): hardware (e.g., Yamaha Disklavier) or ML model used to transcribe the MIDI
### Raw alignment:
- **raw_alignment_path** (string, optional): path to the raw `_align.npz` score-performance alignment file within the `raw/` directory, contains indices, pitches and onset for score and performance notes
- **raw_recall** (float, optional): $R_a$, raw alignment recall
- **raw_precision** (float, optional): $P_a$, raw alignment precision
- **raw_adjusted_alignment_ratio** (float, optional): $R'_a$, raw alignment adjusted alignment ratio, defined as $R'_a = \max(P_a, R_a)$
### Deduplication (PianoCoRe-B):
- **is_duplicate** (bool): whether the performance is a near-duplicate of the other performance (`lead_performance`)
- **lead_performance** (string, optional): path to the main (higher priority) version for the duplicate performance MIDI
### Quality labels (PianoCoRe-B):
- **quality_label** (string): MIDI quality label predicted by the classifier ('score', 'high quality', 'low quality' or 'corrupted')
- **prob_score** (float): classifier confidence for Score (S) MIDI quality class
- **prob_high_quality** (float): classifier confidence for High Quality (HQ) MIDI quality class
- **prob_low_quality** (float): classifier confidence for Low Quality (LQ) MIDI quality class
- **prob_corrupted** (float): classifier confidence for Corrupted (C) MIDI quality class
### Refined score, performance and alignment (PianoCoRe-A/A*):
- **is_refined** (bool): whether the performance MIDI was cleaned and refined
- **refined_score_midi_path** (string, optional): path to the refined (single-track) score MIDI file within the `refined/` directory
- **refined_score_note_count** (integer, optional): number of notes in the refined score MIDI
- **refined_score_duration** (float, optional): duration of the refined score MIDI in seconds
- **refined_performance_midi_path** (string, optional): path to the refined (note-by-note aligned) performance MIDI file within the `refined/` directory
- **refined_performance_note_count** (integer, optional): number of notes in the refined performance MIDI
- **refined_performance_interpolated_note_count** (integer, optional): number of synthetic notes added during the interpolation stage
- **refined_performance_duration** (float, optional): duration of the refined performance MIDI in seconds
- **refined_alignment_path** (string, optional): path to the `_refined_align.npz` score-performance alignment file within the `refined/` directory, contains performance indices and boolean interpolation mask
- **refined_recall** (float, optional): $R_{RAScoP}$, refined alignment recall
### Binary data:
- **score_xml_bytes** (binary, optional) raw data for the score MusicXML/MXL file
- **score_midi_bytes** (binary, optional) raw data for the score MIDI file
- **performance_midi_bytes** (binary): raw data for the performance MIDI file
- **raw_alignment_bytes** (binary, optional): raw data for the raw `.npz` alignment file
- **refined_score_midi_bytes** (binary, optional): raw data for the refined score MIDI file
- **refined_performance_midi_bytes** (binary, optional): raw data for the refined performance MIDI file
- **refined_alignment_bytes** (binary, optional): raw data for the refined `.npz` alignment file
---
## Ethical Statement
The curation of large-scale symbolic datasets presents challenges regarding copyright and intellectual property.
A best-effort attempt was made to filter PianoCoRe according to European Union public-domain regulations (works whose authors have been deceased for more than 70 years).
## Licensing and Terms of Use
The dataset, original and processed files, metadata, and alignment annotations are published under a **[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/)** license.
The license respects the licenses used for the source datasets. The underlying MIDI transcriptions are provided strictly for **non-commercial research and educational purposes**.
## Acknowledgments
PianoCoRe is built upon the invaluable contributions of the open music information retrieval community and existing open-source datasets.
Acknowledgements and credits are given to the creators of the following source corpora:
| Dataset | Reference | Links | License |
| ------------------- | -------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| **MAESTRO** | Hawthorne et al. (2019) | [Paper](https://openreview.net/forum?id=r1lYRjC9F7) / [Dataset](https://magenta.withgoogle.com/datasets/maestro) | [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) |
| **ASAP** | Foscarin et al. (2020) | [Paper](https://archives.ismir.net/ismir2020/paper/000127.pdf) / [Dataset](https://github.com/fosfrancesco/asap-dataset) | [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) |
| **(n)ASAP** | Peter et al. (2023) | [Paper](https://transactions.ismir.net/articles/10.5334/tismir.149) / [Dataset](https://github.com/CPJKU/asap-dataset) | [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) |
| **ATEPP** | Zhang et al. (2022) | [Paper](https://archives.ismir.net/ismir2022/paper/000053.pdf) / [Dataset](https://github.com/tangjjbetsy/ATEPP) | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
| **GiantMIDI-Piano** | Kong et al. (2022) | [Paper](https://transactions.ismir.net/articles/10.5334/tismir.80) / [Dataset](https://github.com/bytedance/GiantMIDI-Piano) | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
| **Aria-MIDI** | Bradshaw and Colton (2025) | [Paper](https://openreview.net/forum?id=X5hrhgndxW) / [Dataset](https://github.com/loubbrad/aria-midi) | [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) |
| **PERiScoPe** | Borovik et al. (2025) | [Paper](https://dl.acm.org/doi/10.1145/3746027.3755871) / [Dataset](https://huggingface.co/datasets/SyMuPe/PERiScoPe) | [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) |
| **PDMX** | Long et al. (2025) | [Paper](https://ieeexplore.ieee.org/document/10890217) / [Dataset](https://github.com/pnlong/PDMX/) | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
## Citation
If you use this dataset in your research, please cite:
```bibtex
@article{borovik2026pianocore,
title={{PianoCoRe: Combined and Refined Piano MIDI Dataset}},
author={Borovik, Ilya},
journal={Transactions of the International Society for Music Information Retrieval},
volume={9},
number={1},
pages={144--163},
year={2026},
doi={10.5334/tismir.333}
}
``` |