diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index ad14df9..a8b4c17 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,6 +1,6 @@ --- name: Bug report -about: Report something that does not work as expected +about: Report something that doesn't work as expected title: "[Bug] " labels: bug --- @@ -11,23 +11,23 @@ Output of `acid2reaper --version`: ## Platform -OS and version (e.g. macOS 15, Windows 11, Ubuntu 24.04): +OS and version (for example macOS 15, Windows 11, Ubuntu 24.04): ## Steps to reproduce 1. 2. -## Expected behavior +## Expected behaviour -## Actual behavior +## Actual behaviour ## Sample file (optional) -Describe the ACID project type (.acd / .acd-zip) and whether you can share a minimal repro (attach or link). +Say which ACID project type it is (.acd or .acd-zip) and whether you can share a minimal repro (attach or link). -For a project that converts with the **wrong tempo, meter, timing or media**, +If a project converts with the **wrong tempo, meter, timing or media**, use the [Format sample](?template=format_sample.md) template instead, and include the output of `acid2reaper your-project.acd out.rpp -v`. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 0312f27..b05b320 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -7,11 +7,11 @@ labels: enhancement ## Problem / use case - + ## Proposed solution - + ## Alternatives considered diff --git a/.github/ISSUE_TEMPLATE/format_sample.md b/.github/ISSUE_TEMPLATE/format_sample.md index 0b6eb16..c56730f 100644 --- a/.github/ISSUE_TEMPLATE/format_sample.md +++ b/.github/ISSUE_TEMPLATE/format_sample.md @@ -1,6 +1,6 @@ --- name: Format sample / decoding problem -about: A project that converts incorrectly, or an ACID variant that is not handled +about: A project that converts incorrectly, or an ACID variant ACID2Reaper doesn't handle title: "[Format] " labels: format --- @@ -12,8 +12,8 @@ found, a one-shot that got stretched --> ## What it should be - + ## Conversion diagnostics @@ -24,20 +24,20 @@ acid2reaper your-project.acd out.rpp -v ``` +any media that couldn't be found. --> ## ACID version Which ACID release saved the project, if you know. Different builds store the -same information in different places, so this matters. +same information in different places. ## Sample file -The most useful thing you can attach is the `.acd` itself — especially a project -in a meter other than x/4, which nothing in the current corpus covers. +The most useful attachment is the `.acd` itself, above all a project in a meter +other than x/4, which nothing in the current corpus covers. -If you cannot share the project, a structural fingerprint carries no audio, no -file names and no project bytes, and is still useful: +If you can't share the project, a structural fingerprint is still useful. It +carries no audio, no file names and no project bytes: ```bash python scripts/build_corpus_manifest.py --corpus-dir /folder/with/the/project --out sample.json diff --git a/CHANGELOG.md b/CHANGELOG.md index b4a1cff..38735ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Release builds run `python scripts/verify_changelog.py` so every published version must have a matching section below. +## [Unreleased] + +### Changed + +- Reworded the README, the command-line help, the graphical window's labels and messages, and the issue templates. No behaviour or converter output changes. + ## [0.2.0] - 2026-09-20 Conversion correctness release. Running the converter over 245 real ACID projects diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7f56725..0877efe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,13 +1,13 @@ # Contributing to ACID2Reaper -Thank you for your interest in improving **ACID2Reaper** (currently in beta, 0.2.x). +ACID2Reaper is in beta (0.2.x), and contributions are welcome. ## Ground rules - Follow the [Code of Conduct](CODE_OF_CONDUCT.md). -- Prefer small, focused pull requests with a clear description of **what** and **why**. -- Run tests locally: `pytest` (with `pip install ".[dev]"`). -- Run the linter: `ruff check src tests scripts`. +- Keep pull requests small and focused, and describe **what** changed and **why**. +- Run the tests locally with `pytest` (after `pip install ".[dev]"`). +- Run the linter with `ruff check src tests scripts`. ## Tests @@ -18,8 +18,8 @@ pytest ruff check src tests scripts ``` -Three suites are opt-in, because they need something this repository does not -ship, and are skipped without it: +Three suites are opt-in. Each needs something this repository doesn't +ship, and each is skipped without it: | Suite | Enable with | Needs | | --- | --- | --- | @@ -27,37 +27,36 @@ ship, and are skipped without it: | REAPER oracle | `ACID2REAPER_REAPER_ORACLE=1` | A local REAPER install; attended, as an unlicensed REAPER shows a nag dialog | | Network harvesting | `ACID2REAPER_ALLOW_NETWORK=1` | Internet access | -If a change alters converter output on purpose, review the diff and regenerate +If a change alters converter output on purpose, read the diff and regenerate the golden projects: ```bash python scripts/update_goldens.py ``` -CI runs `python scripts/update_goldens.py --check`, so an unreviewed golden -cannot drift in. +CI runs `python scripts/update_goldens.py --check`, so a golden project can't change without a reviewed diff. ### Contributing format knowledge -The most valuable contribution is a real `.acd` file that exercises something -the current corpus does not — a genuine x/8 project above all, since the -quarter-note tempo assumption in `acid_timing.seconds_per_tick` cannot be +The most useful contribution is a real `.acd` file that covers something the +current corpus doesn't. A genuine x/8 project is the first need, because the +quarter-note tempo assumption in `acid_timing.seconds_per_tick` can't be settled without one. Please attach it to an issue. -If you cannot share the file itself, `scripts/build_corpus_manifest.py` reduces -a folder of projects to structural fingerprints — no audio, no file names, no -project bytes — which is enough to extend coverage. +If you can't share the file itself, `scripts/build_corpus_manifest.py` reduces +a folder of projects to structural fingerprints (no audio, no file names, no +project bytes), which is enough to extend coverage. ## Changelog (required for user-visible changes) This project uses [Keep a Changelog](https://keepachangelog.com/) in [CHANGELOG.md](CHANGELOG.md). -- For any change that affects **users** (features, fixes, security, packaging), add a **`[Unreleased]`** note or a new `## [x.y.z]` section when preparing a release. -- Release builds run `python scripts/verify_changelog.py`; the current `pyproject.toml` **version** must have a matching `## [x.y.z]` heading in `CHANGELOG.md`. +- Any change that affects **users** (features, fixes, security, packaging) needs an **`[Unreleased]`** note, or a new `## [x.y.z]` section when you prepare a release. +- Release builds run `python scripts/verify_changelog.py`. The `pyproject.toml` **version** must have a matching `## [x.y.z]` heading in `CHANGELOG.md`. ## Releases (maintainers) -Git tags for GitHub should use a **`v` prefix** and semver; use **pre-release** tag names (e.g. `v0.2.0-beta.1`) when the build is not meant for production. See [RELEASING.md](RELEASING.md). +Git tags for GitHub use a **`v` prefix** and semver. Use a **pre-release** tag name (for example `v0.2.0-beta.1`) when the build isn't meant for production. See [RELEASING.md](RELEASING.md). ## Development setup @@ -71,6 +70,6 @@ pytest ## Pull requests -- Link related issues when applicable. +- Link related issues. - Update **CHANGELOG.md** for user-facing changes (see above). -- Do not commit secrets, large binaries, or `dist/` / `build/` output. +- Don't commit secrets, large binaries, or `dist/` or `build/` output. diff --git a/README.md b/README.md index d0cfc32..97895ad 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,35 @@ # ACID2Reaper -**Beta — version 0.2.** Convert **Sonic Foundry / Sony / MAGIX ACID** projects (`.acd`, `.acd-bak`, `.acd-zip`) to **Cockos REAPER** `.rpp` projects. +**Beta, version 0.2.** ACID2Reaper converts **Sonic Foundry / Sony / MAGIX ACID** projects (`.acd`, `.acd-bak`, `.acd-zip`) to **Cockos REAPER** `.rpp` projects. [![CI](https://github.com/gorfednet/ACID2REAPER/actions/workflows/ci.yml/badge.svg)](https://github.com/gorfednet/ACID2REAPER/actions/workflows/ci.yml) [![License: CC BY 4.0](https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg)](LICENSE) ## Features -- **CLI** and optional **graphical** interface (Tkinter, cross-platform). +- A **command-line** tool and an optional **graphical** window (Tkinter, on macOS, Windows and Linux). - **Structural timeline parsing** for the GUID-chunked Wave64 ACID layout across - multiple ACID build generations, plus conservative fingerprint/heuristic - handling of other variants. -- **Tempo, time signature and beat-mapping** decoded from the project's own - timebase record, with one-shots left unstretched. -- **Safety limits** on file and ZIP sizes, path validation, and sanitized paths in exported RPP. + several ACID build generations. Other variants get a cautious fingerprint and + heuristic read. +- **Tempo, time signature and beat mapping** decoded from the project's own + timebase record. One-shots stay unstretched. +- **Safety limits** on file and ZIP sizes, path validation, and sanitized paths in the exported RPP. - **PyInstaller** recipes for **macOS** (`.app` / `.dmg`), **Windows** (folder + `ACID2Reaper.exe`), and **Linux** (tarball). -Parsing cannot guarantee 100% parity with ACID; always open the result in REAPER and verify tempo, stretch, media, and automation. +ACID2Reaper can't guarantee 100% parity with ACID, so open the result in REAPER and check the tempo, stretch, media and automation. -For the Sony Wave64-style ACID layout, the converter reads project tempo, PPQ +For the Sony Wave64-style ACID layout, ACID2Reaper reads the project tempo, PPQ and time signature from the project's timebase record, and emits each event at its decoded timeline position and length. It also reads the per-track cached source loop `acid` chunk and exports its tempo as a REAPER `PLAYRATE` (pitch -preserved), so loops authored at a different tempo than the project are -beat-mapped rather than played at their raw speed — except for one-shots, which -are left alone. Uncatalogued container variants still fall back to neutral media +preserved). A loop authored at a different tempo than the project is therefore +beat-mapped instead of played at its raw speed; one-shots are left alone. +Container variants that aren't catalogued still fall back to neutral media references at `0:00`. -Diagnostics from the conversion — decoded tempo and meter, sources left -unstretched, media that could not be found — are written into the project's -REAPER `NOTES` block, and printed to stderr with `-v`. +ACID2Reaper writes its diagnostics (decoded tempo and meter, sources left +unstretched, media it couldn't find) into the project's REAPER `NOTES` block, +and prints them to stderr with `-v`. ## Format coverage and known limitations @@ -37,11 +37,11 @@ The GUID chunk roles and byte offsets are catalogued in [`src/acid2reaper/data/acd_signatures.json`](src/acid2reaper/data/acd_signatures.json) under `wave64_layout`, which marks each chunk as decoded or undecoded. -Decoding is validated three ways: byte-level agreement with a real ACID 3-era -project, a structural corpus of 245 real projects spanning roughly 2005–2008 and -thirty distinct build layouts (`tests/fixtures/corpus_manifest.json` — structural -fingerprints only, no audio or file names), and synthetic fixtures covering the -meters, layouts and edge cases no real sample was available for. +Decoding is validated three ways. One is byte-level agreement with a real ACID 3-era +project. Another is a structural corpus of 245 real projects spanning roughly 2005–2008 and +thirty distinct build layouts (`tests/fixtures/corpus_manifest.json`, which holds structural +fingerprints only, with no audio or file names). The third is synthetic fixtures for the +meters, layouts and edge cases that no real sample covered. What is **verified**: @@ -54,7 +54,7 @@ What is **verified**: can legally be a denominator, so the pair resolves itself. - **Multi-track projects, across builds.** Older builds store a track's media path in the track record; newer builds use a dedicated leaf. Both are read, - which is why projects saved by different ACID versions now convert alike. + so projects saved by different ACID versions now convert alike. - **One-shots.** The cached `acid` chunk's flag word is decoded, and sources flagged as one-shots are never stretched. @@ -75,8 +75,8 @@ What remains **unverified or unsupported**: which covers WAV and AIFF only; other formats fall back to a default length when the project does not supply one. -If you have `.acd` files that exercise the unverified cases — especially a -genuine x/8 project — please attach them to an issue. +If you have `.acd` files that exercise the unverified cases, especially a +genuine x/8 project, please attach them to an issue. ## Requirements @@ -109,7 +109,7 @@ Optional: `python3 -m pip install ".[ole]"` for OLE compound project support whe ## Usage ```bash -# Convert; writes alongside the input unless you pass an output path +# Convert; the output is written next to the input unless you pass an output path acid2reaper path/to/project.acd # The output path is positional; --media-dir may be repeated @@ -118,7 +118,7 @@ acid2reaper path/to/bundle.acd-zip out.rpp --media-dir /path/to/audio # Show what was decoded (tempo, meter, unstretched sources, missing media) acid2reaper path/to/project.acd -v -# Override the time signature when a project comes out wrong +# Override the time signature when a project converts with the wrong one acid2reaper path/to/project.acd --time-sig 6/8 acid2reaper path/to/project.acd --time-sig-order num-den @@ -129,7 +129,7 @@ acid2reaper --gui ## Version -- **Package version:** `0.2.0` (see `src/acid2reaper/_version.py`). Distributed via **GitHub Releases** (PyPI optional later). +- **Package version:** `0.2.0` (see `src/acid2reaper/_version.py`). It's distributed through **GitHub Releases**; PyPI may follow. - **Marketing label:** **0.2 (Beta)**. ```bash @@ -159,7 +159,7 @@ python scripts/update_goldens.py --check # CI uses this ## Building binaries -See [packaging/BUILD.md](packaging/BUILD.md). For **git tag names** and automated **GitHub Releases** (sdist/wheel on tag push), see [RELEASING.md](RELEASING.md). Every release build should pass: +See [packaging/BUILD.md](packaging/BUILD.md). For **git tag names** and automated **GitHub Releases** (sdist and wheel on tag push), see [RELEASING.md](RELEASING.md). Every release build must pass: ```bash python scripts/verify_changelog.py @@ -179,7 +179,7 @@ See [SECURITY.md](SECURITY.md). ## License -[Creative Commons Attribution 4.0 International (CC BY 4.0)](LICENSE). You may use, share, and build on this work (including in modified form) if you **give appropriate credit**, link to the license, and **indicate changes** where applicable—see Section 3(a) of the license text. +[Creative Commons Attribution 4.0 International (CC BY 4.0)](LICENSE). You may use, share and build on this work (including in modified form) if you **give appropriate credit**, link to the licence and **indicate changes** where applicable. See Section 3(a) of the licence text. ## Trademarks diff --git a/SECURITY.md b/SECURITY.md index 3586329..5e9d38b 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,21 +2,21 @@ ## Credentials and repository hygiene -**Never commit** SSH private keys, API tokens, or passwords to this repository. Keep keys in `~/.ssh/` (mode `600` on private keys) or your OS secret store. If a secret was ever exposed in a remote, **rotate** it (new key, revoke token) even after the repository is recreated. +**Never commit** SSH private keys, API tokens or passwords to this repository. Keep keys in `~/.ssh/` (mode `600` on private keys) or your OS secret store. If a secret was ever exposed in a remote, **rotate** it (issue a new key, revoke the token), even after the repository is recreated. ## Supported versions -We aim to support the **latest release** on the `main` branch. This project is currently in its **first public beta**; pre-release builds may receive fixes at maintainers’ discretion. +The **latest release** on the `main` branch is the supported version. ACID2Reaper is in its **first public beta**, and the maintainers fix pre-release builds at their discretion. ## Reporting a vulnerability -Please **do not** open a public issue for security vulnerabilities. +**Don't** open a public issue for a security vulnerability. 1. Open a **private security advisory** via GitHub (**Security → Advisories → Report a vulnerability**) on [ACID2Reaper](https://github.com/gorfednet/ACID2REAPER), or -2. Contact the repository owners with a clear description, steps to reproduce, and impact. +2. Contact the repository owners with a description, the steps to reproduce and the impact. -We will acknowledge receipt as soon as practical and coordinate disclosure. +We'll acknowledge your report as soon as practical and coordinate disclosure with you. ## Scope -ACID2Reaper is a **local** tool: it reads project files and writes `.rpp` output. It does not expose a network service by default. Reports about malicious `.acd` / `.acd-zip` files are in scope (e.g., zip bombs, path traversal); please include a **safe** proof of concept or redacted sample when possible. +ACID2Reaper is a **local** tool. It reads project files and writes `.rpp` output, and it doesn't expose a network service by default. Reports about malicious `.acd` or `.acd-zip` files are in scope (zip bombs and path traversal, for example); include a **safe** proof of concept or a redacted sample when you can. diff --git a/pyproject.toml b/pyproject.toml index b19e7c6..3325c66 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] name = "acid2reaper" version = "0.2.0" -description = "ACID2Reaper — first public beta: convert Sonic Foundry / Sony / MAGIX ACID projects to Cockos REAPER (.rpp)." +description = "ACID2Reaper converts Sonic Foundry / Sony / MAGIX ACID projects to Cockos REAPER (.rpp). First public beta." readme = "README.md" license = "CC-BY-4.0" requires-python = ">=3.9" diff --git a/src/acid2reaper/cli.py b/src/acid2reaper/cli.py index f32c024..a81c598 100644 --- a/src/acid2reaper/cli.py +++ b/src/acid2reaper/cli.py @@ -29,8 +29,8 @@ def _build_parser() -> argparse.ArgumentParser: p = argparse.ArgumentParser( prog="acid2reaper", description=( - "Convert ACID project files (.acd, .acd-bak, .acd-zip) to Cockos REAPER (.rpp). " - "Parsing is heuristic for proprietary formats—always verify in REAPER." + "ACID2Reaper converts ACID project files (.acd, .acd-bak, .acd-zip) to Cockos REAPER (.rpp). " + "It reads proprietary formats heuristically, so check the result in REAPER." ), formatter_class=argparse.RawDescriptionHelpFormatter, epilog=( @@ -60,7 +60,7 @@ def _build_parser() -> argparse.ArgumentParser: p.add_argument( "--gui", action="store_true", - help="Open the graphical window (Tkinter) instead of running a one-shot conversion.", + help="Open the graphical window (Tkinter) instead of converting one file.", ) p.add_argument( "input", @@ -72,7 +72,7 @@ def _build_parser() -> argparse.ArgumentParser: "output", nargs="?", type=Path, - help="Output .rpp path (default: same base name as input)", + help="Output .rpp path (default: the input's name with .rpp)", ) p.add_argument( "--media-dir", @@ -87,7 +87,7 @@ def _build_parser() -> argparse.ArgumentParser: choices=[DEN_NUM, NUM_DEN], default=DEN_NUM, help=( - "Slot order for ACID's raw time-signature pair. Only matters when " + "Slot order for ACID's raw time-signature pair. It matters only when " "both halves are powers of two (4/4, 4/8); 3/4, 5/4, 6/8 and 7/8 " "resolve themselves. Default: %(default)s." ), @@ -96,7 +96,7 @@ def _build_parser() -> argparse.ArgumentParser: "--time-sig", metavar="NUM/DEN", default=None, - help="Override the decoded time signature entirely, e.g. --time-sig 6/8.", + help="Replace the decoded time signature, for example --time-sig 6/8.", ) return p @@ -176,7 +176,7 @@ def main(argv: Optional[list[str]] = None) -> int: from .ui.desktop import run_app except ImportError as exc: print( - "acid2reaper: Tkinter is not available (install python3-tk or use CLI without --gui).", + "acid2reaper: Tkinter is not available. Install python3-tk, or run without --gui.", file=sys.stderr, ) log.debug("GUI import failed", exc_info=exc) diff --git a/src/acid2reaper/ui/desktop.py b/src/acid2reaper/ui/desktop.py index a05f535..2f86acf 100644 --- a/src/acid2reaper/ui/desktop.py +++ b/src/acid2reaper/ui/desktop.py @@ -69,9 +69,9 @@ def run_app() -> int: ttk.Label( outer, text=( - f"First public beta — {__version_label__}. " - "Convert Sonic Foundry / Sony / MAGIX ACID projects to Cockos REAPER (.rpp). " - "All processing stays on this computer (no network use)." + f"First public beta, {__version_label__}. " + "ACID2Reaper converts Sonic Foundry / Sony / MAGIX ACID projects to Cockos REAPER (.rpp). " + "It runs entirely on this computer and uses no network." ), wraplength=560, ).grid(row=1, column=0, sticky="w", pady=(0, 16)) @@ -104,7 +104,7 @@ def pick_output_file() -> None: def pick_media_dir() -> None: chosen = filedialog.askdirectory( - title="Choose folder containing project audio", + title="Choose the folder with the project audio", mustexist=True, ) if chosen: @@ -161,7 +161,7 @@ def pick_media_dir() -> None: conversion_log.grid(row=0, column=0, sticky="nsew") conversion_log.insert( "1.0", - "Choose an .acd / .acd-zip / .acd-bak, set the output path if needed, then Convert.\n", + "Choose an .acd, .acd-zip or .acd-bak file, set the output path if you need to, then click Convert.\n", ) conversion_log.configure(state="disabled") @@ -179,7 +179,7 @@ def run_conversion() -> None: destination = output_path_var.get().strip() media_dir = media_dir_var.get().strip() if not source: - messagebox.showwarning("Missing file", "Please choose an ACID project file.") + messagebox.showwarning("Missing file", "Choose an ACID project file first.") return status_label.configure(text="Status: Converting…") main_window.update_idletasks() @@ -189,7 +189,7 @@ def run_conversion() -> None: Path(destination) if destination else None, extra_media_dirs=[Path(media_dir)] if media_dir else None, ) - status_label.configure(text="Status: Finished — output saved.") + status_label.configure(text="Status: Finished. Output saved.") append_conversion_log(f"Saved: {written}") exit_code = 0 except Acid2ReaperError as exc: