carta1 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -12
- package/bin/cli.js +508 -239
- package/codec/allocation/solve.js +19 -16
- package/codec/analysis/blocks.js +4 -1
- package/codec/analysis/spectrum.js +5 -5
- package/codec/boundary/container.js +1 -1
- package/codec/boundary/pcm.js +2 -88
- package/codec/boundary/processor.js +4 -4
- package/codec/boundary/reader.js +2 -2
- package/codec/boundary/stream.js +56 -50
- package/codec/core/geometry.js +2 -2
- package/codec/quantization/spectrum.js +4 -4
- package/codec/signal/fft.js +1 -0
- package/codec/signal/mdct.js +48 -38
- package/codec/signal/qmf.js +93 -88
- package/codec/syntax/bitstream.js +9 -9
- package/codec/syntax/frame.js +11 -2
- package/codec/synthesis/bands.js +5 -5
- package/dist/carta1-worker.min.js +1 -1
- package/dist/carta1-worker.min.js.map +1 -1
- package/dist/carta1.min.js +1 -1
- package/dist/carta1.min.js.map +1 -1
- package/dist/carta1.wme +0 -0
- package/dist/wme/index.js.map +1 -1
- package/package.json +3 -16
- package/bin/options.js +0 -41
- package/codec/boundary/inspect.js +0 -96
- package/docs/native.md +0 -107
- package/docs/porffor.md +0 -23
package/README.md
CHANGED
|
@@ -34,11 +34,6 @@ npm ci
|
|
|
34
34
|
npm run check
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
[Native CLI archives](docs/native.md) for Linux and macOS (x64 and ARM64) are
|
|
38
|
-
built with Porffor and attached to GitHub Releases after exact WAV/AEA parity
|
|
39
|
-
checks against the Node CLI. They run without Node.js. See the native guide
|
|
40
|
-
for local builds, supported input formats, and verification.
|
|
41
|
-
|
|
42
37
|
## CLI
|
|
43
38
|
|
|
44
39
|
Run the installed executable directly, or use `npx carta1` from a project that
|
|
@@ -47,7 +42,6 @@ depends on Carta1:
|
|
|
47
42
|
```bash
|
|
48
43
|
carta1 --encode input.wav output.aea
|
|
49
44
|
carta1 --decode input.aea output.wav
|
|
50
|
-
carta1 --json input.aea structure.json
|
|
51
45
|
|
|
52
46
|
npx carta1 --encode input.wav output.aea
|
|
53
47
|
```
|
|
@@ -60,7 +54,6 @@ signed 16-bit PCM WAVE output.
|
|
|
60
54
|
| --------------------- | ---------------------------------------------------- |
|
|
61
55
|
| `-e, --encode` | Encode PCM WAVE to AEA. |
|
|
62
56
|
| `-d, --decode` | Decode AEA to PCM WAVE. |
|
|
63
|
-
| `-j, --json` | Write AEA metadata and frame structure as JSON. |
|
|
64
57
|
| `-q, --quiet` | Suppress normal output and progress. |
|
|
65
58
|
| `-f, --force` | Overwrite an existing output file. |
|
|
66
59
|
| `-t, --title <title>` | Set a UTF-8 AEA title (up to 255 encoded bytes). |
|
|
@@ -69,7 +62,7 @@ signed 16-bit PCM WAVE output.
|
|
|
69
62
|
| `-V, --version` | Print the Carta1 version. |
|
|
70
63
|
| `-h, --help` | Print command help. |
|
|
71
64
|
|
|
72
|
-
Exactly one of `--encode
|
|
65
|
+
Exactly one of `--encode` and `--decode` is required. The input and
|
|
73
66
|
output are positional paths. Existing output is preserved unless `--force` is
|
|
74
67
|
provided.
|
|
75
68
|
|
|
@@ -207,6 +200,7 @@ implementation used to understand the ATRAC1 format and codec behavior.
|
|
|
207
200
|
|
|
208
201
|
ISC
|
|
209
202
|
|
|
203
|
+
|
|
210
204
|
## Experimental Web MiniDisc encoder plugin
|
|
211
205
|
|
|
212
206
|
`npm run build` also emits `dist/carta1.wme`, alongside the three existing
|
|
@@ -228,10 +222,10 @@ with the usual `init`, `deinit`, `getSupportFor`, `transcode`, and progress hook
|
|
|
228
222
|
It adds two **proposed, nonstandard** export codec names, using the host's
|
|
229
223
|
existing recording-mode names:
|
|
230
224
|
|
|
231
|
-
| `exportParams.format`
|
|
232
|
-
|
|
|
233
|
-
| `{ codec: 'SPS', bitrate: 292 }` | 2
|
|
234
|
-
| `{ codec: 'SPM', bitrate: 146 }` | 1
|
|
225
|
+
| `exportParams.format` | PCM channels | Output |
|
|
226
|
+
| --- | --- | --- |
|
|
227
|
+
| `{ codec: 'SPS', bitrate: 292 }` | 2 | ATRAC1 stereo SP |
|
|
228
|
+
| `{ codec: 'SPM', bitrate: 146 }` | 1 | ATRAC1 mono SP |
|
|
235
229
|
|
|
236
230
|
Bitrates are nominal kbps; ATRAC1 uses 212-byte sound units per channel per
|
|
237
231
|
512 samples at 44.1 kHz. The host's built-in FFmpeg decodes/resamples sources
|