T-014 — Download scripts for the datasets, with checksums, into data/
Status: done (MAPS checksums pending: maintainer registered 2026-12-04, waiting for access) · Area: julia · Depends on: T-004
Read for that: ADR-0007, Piano 12 (datasets table).
What: training/scripts/download.jl <dataset> fetching from the official source into the gitignored data/<dataset>/, verifying SHA-256 against checksums committed in training/data-sources.toml (with URL, licence, attribution text and size per dataset):
- Salamander Grand Piano v3 (CC BY 3.0) — the original release (check the official links from the sfz instruments page); the FLAC/WAV samples, not a repackaged variant.
- MAPS (CC BY-NC-SA 2.0 FR) — the ISOL subset for the two Disklavier setups; the official download may require accepting terms in a browser: then the script verifies files the maintainer placed in
data/maps/instead of downloading. - MAESTRO v3 (CC BY-NC-SA 4.0) — ~120 GB as one zip; download only a chosen subset (e.g. range requests into the zip, or the MIDI-only package plus selected audio files); document the subset.
A cloud session’s network policy may block some hosts; then the task ends with the scripts written and checksums recorded on a machine that can download, and the blocked hosts listed here.
Done when: each dataset downloads (or verifies) reproducibly; sizes and licences are recorded; nothing under data/ is tracked by git.
Result
InstrumentsTraining.Datasets (training/src/Datasets.jl) + the CLI training/scripts/download.jl (list, <id>, verify <id>, record <id>); usage in training/README.md. Only Julia packages (Downloads, SHA, Tar, CodecZlib, CodecXz), no system curl/tar/unzip. Each dataset’s source, licence, attribution, notes and per-file size + SHA-256 live in training/data-sources.toml; the tests check that file and run every path offline (hand-built plain and zip64 zips, a tar.xz, a fake server: resume, corrupt file → .bad, wrong checksum → error, CRC-32 mismatch, record → verify).
| Dataset | Method | Source (official) | What we take | Size | Checksums |
|---|---|---|---|---|---|
| Salamander V3 | download | freepats.zenvoid.org, the “wav (24bit)” link of the sfzinstruments page | SalamanderGrandPianoV3+20161209_48khz24bit.tar.xz, extracted to data/salamander/samples/ | 1.26 GB download, 1.96 GB extracted (644 files) | recorded |
| MAESTRO v3.0.0 | zip-subset | storage.googleapis.com/magentadata (Magenta) | MIDI package (all 1276), metadata CSV, audio of 10 test-split pieces read from the 108 GB zip by range requests | 318 MB (audio 260 MB) | recorded |
| MAPS | manual | adasp.telecom-paris.fr → registration form | ENSTDkCl + ENSTDkAm (ISOL), placed by hand | — | pending |
- Salamander: the sfzinstruments page links the 48 kHz/24 bit WAV release on freepats; “+20161209” only fixes a missing
=in the retuned.sfz(its README), so the samples are Alexander Holm’s V3. The FLAC remap and the 44.1 kHz/16 bit variant are not used. - MAESTRO subset: the shortest test-split recording of each of the ten years 2004–2018 (~24 min, one per recording setup), listed in
data-sources.toml. Test split, so no overlap with anything we might later train on. The 2015 file name saysAUDIO-from_mp3: check its spectrum before spectral use. The full release is one zip with deflated members and zip64 offsets; the script reads its central directory (two range reads), then only the chosen members, and checks CRC-32 and SHA-256. - MAPS: the download link is a subscription form (
service.tsi.telecom-paristech.fr,ident=maps) that mails the access, so the script only verifies. For the maintainer: register, download ENSTDkCl and ENSTDkAm, place them underdata/maps/, rundownload.jl record maps, paste the output intodata-sources.tomland commit. - Network: the Default cloud environment blocks the Salamander and MAPS hosts (and the MAESTRO homepage); Google Storage, where MAESTRO’s files are, is reachable. This session ran in a personal environment
instrumentsthat addssfzinstruments.github.io,freepats.zenvoid.org,archive.org,adasp.telecom-paris.frandpkg.julialang.org; use it for cloud sessions that need the data.