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
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Notable changes to `samplerdisc`. Format-level findings live in [docs/formats/](docs/formats/); decisions and their rejected alternatives live in [docs/adr/](docs/adr/). This file records what changed for someone using the tool.

## Unreleased
## 0.5.0 — 2026-09-05

### Fixed

Expand All @@ -22,6 +22,8 @@ Notable changes to `samplerdisc`. Format-level findings live in [docs/formats/](

**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.

- **E-IV disc credits are written as a `Credits.txt` sidecar under `--metadata`.** Twelve E-IV discs carry sample-free `Credits` and `E-mu Systems 96` text banks — author, house, contact, thanks — that D25 listed as banks with no audio. A new `--metadata` flag reads that provenance from each bank's `E4P1` **name field** (the credit line alone, never the preset) into a per-disc `Credits.txt`: eight banks, 89 lines across five discs. It is drawn as metadata rather than the preset parsing [ADR-0011](docs/adr/0011-the-deliverable-is-daw-ready-wav.md) defers, and it is written only with `--metadata`, so a default run is unchanged. ([docs/formats/emu3.md](docs/formats/emu3.md), [ADR-0043](docs/adr/0043-eiv-credits-are-metadata-read-from-the-e4p1-name-field.md), [#53](https://github.com/bmxcode/samplerdisc/issues/53))

- **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))
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "samplerdisc"
version = "0.4.0"
version = "0.5.0"
description = "Convert vintage sampler CD-ROM images (AKAI, E-mu, Roland) to uncompressed WAV"
readme = "README.md"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/samplerdisc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Convert vintage sampler CD-ROM images to uncompressed WAV."""

__version__ = "0.4.0"
__version__ = "0.5.0"
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


def test_version_matches_package():
assert __version__ == "0.4.0"
assert __version__ == "0.5.0"


def test_parser_exposes_version_flag():
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading