Add README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: ALIGN Dataset
|
| 3 |
+
task_categories:
|
| 4 |
+
- audio-classification
|
| 5 |
+
tags:
|
| 6 |
+
- music
|
| 7 |
+
- clarinet
|
| 8 |
+
- musicxml
|
| 9 |
+
- music-performance
|
| 10 |
+
- error-detection
|
| 11 |
+
- synthetic
|
| 12 |
+
- alignment
|
| 13 |
+
size_categories:
|
| 14 |
+
- 10K<n<100K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# ALIGN Dataset
|
| 18 |
+
|
| 19 |
+
Synthetic **Bb clarinet** practice bundles for ALIGN / MusicEval: a clean MusicXML score paired with a SoundFont performance that contains planted faults. Gold labels are **score-part melodies** (schema **1.2**), not only wall-clock intervals.
|
| 20 |
+
|
| 21 |
+
The clean score stays correct. Only the synthesized performance is wrong.
|
| 22 |
+
|
| 23 |
+
## Splits
|
| 24 |
+
|
| 25 |
+
Samples are packed into zip shards (250 clips each) so the Hub stays within file-count limits.
|
| 26 |
+
|
| 27 |
+
| Folder | Samples | Source scores |
|
| 28 |
+
|--------|--------:|---------------|
|
| 29 |
+
| `output/part_XXXX.zip` | 12,000 | Procedural original clarinet scores |
|
| 30 |
+
| `output_2k_rawdata/part_XXXX.zip` | 2,104 | Random measure windows from uploaded `RawData/Score` MusicXML |
|
| 31 |
+
|
| 32 |
+
`manifest.json` lists which sample ids sit in each shard.
|
| 33 |
+
|
| 34 |
+
After unzipping a shard you get one directory per clip, for example `synth_gen_0042/`:
|
| 35 |
+
|
| 36 |
+
| File | Role |
|
| 37 |
+
|------|------|
|
| 38 |
+
| `verified_score.musicxml` | Clean notation (ground truth) |
|
| 39 |
+
| `performance_score.musicxml` | Errored (and possibly repeated) render source |
|
| 40 |
+
| `reference_audio.wav` | Clarinet render of the clean score |
|
| 41 |
+
| `performance_audio.wav` | Clarinet render with planted errors |
|
| 42 |
+
| `reference_audio.mid` / `performance_audio.mid` | MIDI sent to the SoundFont |
|
| 43 |
+
| `labels.json` | Synthetic gold (`source: synthetic`, schema 1.2) |
|
| 44 |
+
| `candidates.json` | Auto alignment candidates |
|
| 45 |
+
| `alignment.npz` | DTW alignment artifacts |
|
| 46 |
+
| `performance_mel.npy` / `reference_mel.npy` | Log-mel features (22.05 kHz, 128 mels) |
|
| 47 |
+
| `metadata.json` | Render settings, error types, seed |
|
| 48 |
+
|
| 49 |
+
Audio is **sounding pitch** (`sounding_transpose: -2`): written C sounds Bb. MusicXML and `labels.json` `pitches` stay **written**.
|
| 50 |
+
|
| 51 |
+
## Planted errors
|
| 52 |
+
|
| 53 |
+
A clip draws **1–8** non-overlapping content errors from five equally weighted types, then often repeats the affected measure(s):
|
| 54 |
+
|
| 55 |
+
| Type | What changes in the performance |
|
| 56 |
+
|------|----------------------------------|
|
| 57 |
+
| `wrong_note` | ±1 or ±2 semitones, or a squeak (MIDI C6–A7) |
|
| 58 |
+
| `missed_note` | Written note replaced by a rest |
|
| 59 |
+
| `extra_note` | Split a note; insert a neighbor or squeak |
|
| 60 |
+
| `intonation_error` | Pitch bend 40–80 cents on 1–4 notes |
|
| 61 |
+
| `rhythm_error` | Late/early start or end, tempo change, or uneven durations |
|
| 62 |
+
|
| 63 |
+
**Repetition** is applied after content errors (usual case) or as a standalone replay of a sounding measure. A silent 0.2–1.0 s gap is inserted before the copy. Repeated-pass copies of content labels are **not** gold.
|
| 64 |
+
|
| 65 |
+
Melody gold is a contiguous run of clean-score notes (`score_part` + `pitches`) with 1–2 notes of pad on each side.
|
| 66 |
+
|
| 67 |
+
## Loading
|
| 68 |
+
|
| 69 |
+
```python
|
| 70 |
+
from huggingface_hub import hf_hub_download
|
| 71 |
+
from zipfile import ZipFile
|
| 72 |
+
from pathlib import Path
|
| 73 |
+
import json
|
| 74 |
+
|
| 75 |
+
zip_path = hf_hub_download(
|
| 76 |
+
repo_id="LapisLa2uli/ALIGN_Dataset",
|
| 77 |
+
filename="output/part_0000.zip",
|
| 78 |
+
repo_type="dataset",
|
| 79 |
+
)
|
| 80 |
+
out = Path("align_samples")
|
| 81 |
+
with ZipFile(zip_path) as zf:
|
| 82 |
+
zf.extractall(out)
|
| 83 |
+
sample = next(p for p in out.iterdir() if p.is_dir())
|
| 84 |
+
labels = json.loads((sample / "labels.json").read_text(encoding="utf-8"))
|
| 85 |
+
print(sample.name, len(labels["labels"]))
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
## Notes
|
| 89 |
+
|
| 90 |
+
- Render: tinysoundfont + FreePats clarinet SoundFont; MIDI via music21.
|
| 91 |
+
- Official synth eval in ALIGN is contiguous pitch-list **containment F1**, not timestamp IoU.
|
| 92 |
+
- `pipeline.log` files are omitted from the upload (they contain local machine paths).
|