Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ Notable changes to `samplerdisc`. Format-level findings live in [docs/formats/](

### Added

- **Sound Designer II files now carry their loop points.** D33 converted the 24 `Sd2f` files on `sonic-images-v2` to WAV but wrote no loop: the resource fork carries a Digidesign `sdLL` loop resource, but decoding it without an oracle risks an off-by-units loop that plays and reports nothing wrong, the failure [ADR-0025](docs/adr/0025-the-loop-is-decoded-the-root-key-is-not.md) refuses. That oracle turned out to be the **Digidesign Sound Designer II specification itself** (© 1988–1990, recovered from the Wayback Machine — the live page is gone), which gives `sdLL`'s layout and, decisively, its units: an 8-byte header (a version and a loop count) then one 14-byte record per loop, each a start and end **sample frame**, an index, a sense (117 forward) and a channel. The loop now goes into the WAV's `smpl` chunk, one per record, in per-channel frames; the root key is still not read, because `sdLL` carries none. **If you extracted a SampleCell disc before this, extract it again for the Sound Designer II loops.** ([docs/formats/hfs.md](docs/formats/hfs.md), [ADR-0046](docs/adr/0046-the-sd2-loop-is-decoded-from-sdll.md), [#75](https://github.com/bmxcode/samplerdisc/issues/75))

**Confirmed three ways, a stronger basis than the E-mu loops shipped on.** The spec states the units. The layout decodes all 24 resources with **zero leftover bytes** and every field on a documented, in-range value — `LoopSense` reads the forward-loop constant `117` on all 24, `NumLoops` 1, the channel varying in range — which a wrong field layout cannot do at once. And [emu3.md](docs/formats/emu3.md)'s own forward shape/join oracle — the audio at the loop start correlated with the recorded continuation past the loop end — confirms **21 of the 24** (r ≥ 0.9). The three it cannot vouch for are inharmonic guitar/stack loops (`F#2 Gtr Str`, `E1 Gtr Str`, `Obiestack C2`) where a forward window has no power; they are emitted and named, not hidden, exactly as `eiv-analogia`'s unscorable loops are ([ADR-0044](docs/adr/0044-the-eiv-residual-loop-is-confirmed-by-its-period.md)). The disc-backed suite decodes all 24, checks each loop reaches the `smpl` chunk a DAW would read, and pins the weak set by name.

- **Loose E-mu `.ebl` sample banks convert without a disc image.** The `.EBL` decoder was verified for mono and stereo, but every command took a disc image, so the E-mu libraries archive.org ships as loose files in the clear — an `.exb` bank definition beside a `SamplePool/*.ebl`, with no ISO around them — had no way in. A new `extract-banks <dir> <out>` verb converts them, and `batch` now discovers loose-bank trees beside disc images. A directory of sample files is a **source**, not a container: the operating system's filesystem has already done what a container strips and an on-disc filesystem finds, so the tool walks the tree for `*.ebl` and hands each file's bytes to the same decode-and-write path the ISO 9660 backend uses — no synthetic container, no `Backend` ([ADR-0042](docs/adr/0042-loose-sample-banks-are-a-source-not-a-container.md)). This reverses the loose-bank refusal ADR-0033/0041 recorded, which was right when the loose banks were only test fixtures and wrong now they are content people hold. Only the `.ebl` are read; the `.exb` preset is left to [ConvertWithMoss](https://github.com/git-moss/ConvertWithMoss) as on a disc ([ADR-0011](docs/adr/0011-the-deliverable-is-daw-ready-wav.md)). Verified on the real Proteus 1/2/3 banks: **686 convert, 685 mono and one genuinely-stereo (`Snare w/Verb 28K`), none refused.** That one stereo file has no publisher render to check its interleave against — Proteus is not among the rendered banks — so it rests on the `V12`/end-anchored rules proven on 636 stereo files across four other banks, recorded as borrowed evidence rather than hidden ([docs/formats/emu-ebl.md](docs/formats/emu-ebl.md), [ADR-0042](docs/adr/0042-loose-sample-banks-are-a-source-not-a-container.md)). ([#57](https://github.com/bmxcode/samplerdisc/issues/57))

- **Stereo E-mu `.EBL` banks now convert to stereo WAV.** D33 shipped the mono `.EBL` reader and *refused* stereo — the format stores it non-interleaved (a whole left block then a whole right block, `LLLL…RRRR`), and with no stereo bank paired with a render to check an interleave against, converting one by an unverified rule would have written audio that plays as noise and reports nothing wrong ([ADR-0026](docs/adr/0026-the-record-declares-the-channel-count.md)). That oracle now exists: E-mu Classic Series Vol 13 Dance 2000 ships as loose `.ebl` and mattetti renders its 636 stereo files to FLAC. Each of a stereo record's two equal, contiguous blocks is `V3 − V2` bytes, so the audio is `2·(V3 − V2)` ending at the loop trailer or EOF, and the two blocks are interleaved to `LRLR` with the shared `stereo.interleave` — the same call the [EMU3](docs/formats/emu3.md) backend and the AKAI `-L`/`-R` joiner use — with no value altered, only reordered. The split is anchored from the **end** rather than the front: the mono path's `block + V2 − 4` start is two bytes early on the grand banks, a shift the render check exposed and the from-the-end anchor fixes. The loop and channel count come straight off the record, the loop in per-channel frames. **Verified byte-for-byte against the publisher's own render:** every uniquely-named stereo file on Dance 2000 (375) and mattetti's entirely-stereo grands — Giga Schimme (120), EW PS18 Steinberg Grand (441 rendered), Studio Grand (408) — every matched file PCM-exact. Vintage Pro is unaffected (all mono). ([docs/formats/emu-ebl.md](docs/formats/emu-ebl.md), [ADR-0041](docs/adr/0041-stereo-ebl-is-interleaved-and-verified-by-the-render.md), [#57](https://github.com/bmxcode/samplerdisc/issues/57))

- **Sound Designer II (`Sd2f`) files on a SampleCell disc convert to WAV.** D32 read the SampleCell discs but skipped their 24 Sound Designer II files, on the belief that SDII keeps its audio in the HFS *resource* fork — a harder format left for later. That belief was wrong. Read against the disc and cross-checked with libsndfile, each `Sd2f` file keeps its audio in the **data fork** — plain big-endian PCM, which the backend already read — and only its rate, width and channel count in the resource fork, as three `STR ` resources. So `sonic-images-v2` now converts all **24** to stereo 44.1 kHz 16-bit WAV (the disc goes 288 → **312** sounds), the audio carried over by reversing byte order and nothing else, exactly as an AIFF is ([ADR-0011](docs/adr/0011-the-deliverable-is-daw-ready-wav.md)). The SDII **loop** is not read: the resource fork may carry one (`sdLL`), but there is no oracle to verify an interpretation against, so it is left rather than guessed ([ADR-0025](docs/adr/0025-the-loop-is-decoded-the-root-key-is-not.md)). **If you extracted a SampleCell disc before this, extract it again for the Sound Designer II files.** ([docs/formats/hfs.md](docs/formats/hfs.md), [ADR-0040](docs/adr/0040-sound-designer-ii-is-decoded-from-the-data-fork.md), [#72](https://github.com/bmxcode/samplerdisc/issues/72))
- **Sound Designer II (`Sd2f`) files on a SampleCell disc convert to WAV.** D32 read the SampleCell discs but skipped their 24 Sound Designer II files, on the belief that SDII keeps its audio in the HFS *resource* fork — a harder format left for later. That belief was wrong. Read against the disc and cross-checked with libsndfile, each `Sd2f` file keeps its audio in the **data fork** — plain big-endian PCM, which the backend already read — and only its rate, width and channel count in the resource fork, as three `STR ` resources. So `sonic-images-v2` now converts all **24** to stereo 44.1 kHz 16-bit WAV (the disc goes 288 → **312** sounds), the audio carried over by reversing byte order and nothing else, exactly as an AIFF is ([ADR-0011](docs/adr/0011-the-deliverable-is-daw-ready-wav.md)). The SDII **loop** in the `sdLL` resource is read too — see the Sound Designer II loop entry above; it needed an oracle this deliverable did not yet have ([ADR-0025](docs/adr/0025-the-loop-is-decoded-the-root-key-is-not.md), [ADR-0046](docs/adr/0046-the-sd2-loop-is-decoded-from-sdll.md)). **If you extracted a SampleCell disc before this, extract it again for the Sound Designer II files.** ([docs/formats/hfs.md](docs/formats/hfs.md), [ADR-0040](docs/adr/0040-sound-designer-ii-is-decoded-from-the-data-fork.md), [#72](https://github.com/bmxcode/samplerdisc/issues/72))

**Verified byte for byte against the disc.** `machfs` now cross-checks *both* forks — every data fork and every resource fork, the 24 SDII resource forks included — and because the audio is a verbatim byte-swap of the data fork, our little-endian PCM swapped back to big-endian equals `machfs`'s data fork exactly, the "payload is the disc's own bytes" check AKAI uses. The corrected premise is recorded where the wrong one lived, in [docs/formats/hfs.md](docs/formats/hfs.md) and [ADR-0039](docs/adr/0039-samplecell-is-read-as-hfs-behind-an-apple-partition-map.md).

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ The other 23 are damage of a different kind, and 19 of them are not damage at al

**Eight of the 45 AKAI images are short of the disc they were made from.** Whole 32 KB blocks are missing from the file, so every partition after a gap sits that much nearer the front than the disk's own table says — and 39 of them are found there and read, carrying 17 180 files and 15 808 samples that nothing could reach before. `list` and the manifest say so per disc: *"11 partitions declared, 8 present in this image (7 of them displaced — this image is short of the disc it was made from)"*. 70 declared partitions are still unread, and 60 of those are refused rather than absent: a header is there, inside a partition already being read, and reading it would put one run of bytes under two partitions at once ([ADR-0028](docs/adr/0028-a-displaced-partition-is-anchored-quantised-and-floored.md)).

The four that do not convert are accounted for: one S-550 disc present as both `.iso` and `.nrg` — a different format from the S-7xx and not yet read ([ADR-0014](docs/adr/0014-one-backend-per-on-disc-format.md)) — and one audio CD with no cue sheet present as both `.mdx` and `.cdr`. The two Digidesign SampleCell discs now convert: their AIFF (D32) and their Sound Designer II files (D33, [ADR-0040](docs/adr/0040-sound-designer-ii-is-decoded-from-the-data-fork.md)).
The four that do not convert are accounted for: one S-550 disc present as both `.iso` and `.nrg` — a different format from the S-7xx and not yet read ([ADR-0014](docs/adr/0014-one-backend-per-on-disc-format.md)) — and one audio CD with no cue sheet present as both `.mdx` and `.cdr`. The two Digidesign SampleCell discs now convert: their AIFF (D32) and their Sound Designer II files (D33, [ADR-0040](docs/adr/0040-sound-designer-ii-is-decoded-from-the-data-fork.md)), the SDII loop carried into the WAV `smpl` chunk from the `sdLL` resource against the Digidesign spec (D39, [ADR-0046](docs/adr/0046-the-sd2-loop-is-decoded-from-sdll.md)).

### The E-mu EBL banks

Expand Down
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ All of that vanishes into a working parser. Six months on, the code says *what*
| D36 | E-IV disc provenance read from the sample-free `Credits`/`E-mu Systems 96` text banks' `E4P1` name field — the credit line alone, never the preset — into a per-disc `Credits.txt` sidecar under `--metadata`; eight banks, 89 lines across five discs ([ADR-0043](adr/0043-eiv-credits-are-metadata-read-from-the-e4p1-name-field.md)) | done |
| D37 | `eiv-analogia`'s residual E-IV loops given the disc's own confirmation by a period / pre-start window — four of its six splice at their own period as a clear local maximum where the forward oracle had no power; the two that do not (`Conscience Call`, `Got Scratch?`) are named, not hidden. A measurement wired into the suite; no emission, loop count or digest moved ([ADR-0044](adr/0044-the-eiv-residual-loop-is-confirmed-by-its-period.md)) | done |
| D38 | An AKAI sample displaced by a run of blocks lost *inside* a partition the table calls complete is recovered — searched for backward in the container's unit for a header restating the entry's own name and word count, floored at the partition. 102 of the 104 refused across nine discs are written; the two that are not (`Loop Soup`'s mid-sample record, `Library.3`'s cross-partition namesake) are named. The chain cannot see the gap, so the payload check is the sole detector; ADR-0027's name test is the anchor, exercised on real data at last ([ADR-0045](adr/0045-a-displaced-sample-is-recovered-by-its-own-name-and-word-count.md)) | done |
| D39 | The Sound Designer II loop is read from the resource fork's `sdLL` list resource and carried into the WAV `smpl` chunk — the layout is the Digidesign spec (an 8-byte header and a 14-byte `LoopRecord`, positions in sample frames), confirmed on all 24 `Sd2f` files structurally and by emu3's forward shape oracle (21 of 24; the three inharmonic guitar/stack loops it has no power on are emitted and named). One loop per record, root key still not read — reversing D33's loop deferral ([ADR-0046](adr/0046-the-sd2-loop-is-decoded-from-sdll.md)) | done |

Across the local collection, by listing: 96 of 104 images claimed, 4 270 volumes, 161 213 files, 126 361 of them samples. The AKAI discs are 45 of those images and 86 487 of those files, read across 318 partitions — 279 where the disk's table puts them and 39 displaced by blocks the rip lost. Before D15 they were 14 783 files, because only the partition at the origin was read.

Expand All @@ -100,6 +101,6 @@ Across the local collection, by listing: 96 of 104 images claimed, 4 270 volumes
- **AIFF-C is refused rather than read.** Its payload may be compressed, and compressed data written out as PCM opens, plays as noise and reports nothing wrong. No disc in the collection has one, so there is nothing to check a reader against ([ADR-0024](adr/0024-the-aiff-twin-is-converted-and-deduplicated.md)).
- **8-bit AIFF is refused.** AIFF stores 8-bit signed and WAV unsigned, so carrying one to the other changes every sample value rather than reordering its bytes. That is the line ADR-0024 draws; nothing in the collection is other than 16-bit.

- **Sound Designer II on SampleCell discs is read (D33).** `sonic-images-v2`'s 24 `Sd2f` files now convert to stereo 44.1 kHz WAV. The premise D32 deferred them on was wrong: the audio is the **data fork** (big-endian PCM, which the backend already read), not the resource fork — only the rate/width/channels are in the resource fork, in three `STR ` resources ([ADR-0040](adr/0040-sound-designer-ii-is-decoded-from-the-data-fork.md), [formats/hfs.md](formats/hfs.md)). Verified byte-for-byte against `machfs` on both forks, and by the data-fork byte-swap self-check. What stays deferred is the SDII **loop**: `sdLL` may carry one, but there is no oracle to verify an interpretation against, so it is left rather than guessed ([ADR-0025](adr/0025-the-loop-is-decoded-the-root-key-is-not.md)). HFS+ (`drSigWord` `H+`) is still refused at the MDB signature; none is in hand.
- **Sound Designer II on SampleCell discs is read (D33).** `sonic-images-v2`'s 24 `Sd2f` files now convert to stereo 44.1 kHz WAV. The premise D32 deferred them on was wrong: the audio is the **data fork** (big-endian PCM, which the backend already read), not the resource fork — only the rate/width/channels are in the resource fork, in three `STR ` resources ([ADR-0040](adr/0040-sound-designer-ii-is-decoded-from-the-data-fork.md), [formats/hfs.md](formats/hfs.md)). Verified byte-for-byte against `machfs` on both forks, and by the data-fork byte-swap self-check. The SDII **loop** is now read too (D39): the `sdLL` resource's layout is the Digidesign spec — an 8-byte header and a 14-byte `LoopRecord` with positions in sample frames — confirmed on all 24 files structurally and by emu3's forward shape oracle on 21 of them, the three it has no power on emitted and named ([ADR-0046](adr/0046-the-sd2-loop-is-decoded-from-sdll.md)). The root key is still not read: `sdLL` carries none. HFS+ (`drSigWord` `H+`) is still refused at the MDB signature; none is in hand.
- **A loose stereo `.ebl` outside a rendered bank rests on borrowed evidence.** Stereo `.EBL` converts (D34, [ADR-0041](adr/0041-stereo-ebl-is-interleaved-and-verified-by-the-render.md)) and loose banks convert (D35, [ADR-0042](adr/0042-loose-sample-banks-are-a-source-not-a-container.md)), verified byte-for-byte against the publisher's render wherever one exists — 636 files on Dance 2000 and the entirely-stereo grands. The Proteus banks D35 reads have no render, and one of their 686 files (`Snare w/Verb 28K`) is stereo: it is classified and interleaved by the `V12`/end-anchored rules proven on 636 files across four other banks, but that specific interleave is not checked against its own oracle. A Proteus render would settle it ([formats/emu-ebl.md](formats/emu-ebl.md)).
- **The E-mu `.exb` bank definition is not read.** Vintage Pro's `.exb` — and the loose Proteus `.exb` beside each `SamplePool` — holds the preset key ranges and zone mappings the same way an E-IV preset does; it is listed and, like EXS24 and `E4P1` presets, left to [ConvertWithMoss](https://github.com/git-moss/ConvertWithMoss) rather than converted ([ADR-0011](adr/0011-the-deliverable-is-daw-ready-wav.md)).
Loading
Loading