@buffered-audio/nodes 0.22.0 → 0.23.0
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 +13 -13
- package/dist/index.js +4 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -69,8 +69,8 @@ Remove a region of audio
|
|
|
69
69
|
| Parameter | Type | Default | Description |
|
|
70
70
|
| --- | --- | --- | --- |
|
|
71
71
|
| `regions` | Object[] | `[]` | Regions |
|
|
72
|
-
| `regions[].start` | number (
|
|
73
|
-
| `regions[].end` | number (
|
|
72
|
+
| `regions[].start` | number (0 to 86400) | — | Start (seconds) |
|
|
73
|
+
| `regions[].end` | number (0 to 86400) | — | End (seconds) |
|
|
74
74
|
|
|
75
75
|
### De-Bleed Adaptive
|
|
76
76
|
|
|
@@ -226,15 +226,15 @@ Peak-aware content-adaptive curve fitting (LUFS, true-peak, LRA) via a single co
|
|
|
226
226
|
| Parameter | Type | Default | Description |
|
|
227
227
|
| --- | --- | --- | --- |
|
|
228
228
|
| `targetLufs` | number (-50 to 0, step 0.1) | `-16` | Target integrated loudness (LUFS) |
|
|
229
|
-
| `pivot` | number (
|
|
230
|
-
| `floor` | number (
|
|
229
|
+
| `pivot` | number (-80 to 0), optional | — | Body anchor (dB). Default: median(considered LRA blocks) from BS.1770 LRA gating in pass 1. |
|
|
230
|
+
| `floor` | number (-100 to 0), optional | — | Silence threshold (dB). Default: min(considered LRA blocks); no floor when no blocks survive gating. |
|
|
231
231
|
| `limitPercentile` | number (0.5 to 1) | `0.995` | Top-1−p fraction of detection samples to brick-wall. Default 0.995 brick-walls the top 0.5%. |
|
|
232
|
-
| `limitDb` | number (
|
|
232
|
+
| `limitDb` | number (-60 to 0), optional | — | Limit-anchor override (dB). Default: auto-derived from quantile(detection histogram, limitPercentile). Set explicitly to fix the limit anchor. |
|
|
233
233
|
| `maxAttempts` | number (min 1) | `10` | Hard cap on iteration attempts. |
|
|
234
|
-
| `targetTp` | number (
|
|
234
|
+
| `targetTp` | number (-24 to 0), optional | — | True-peak target (dBTP). Default: source true peak (peaks unchanged). |
|
|
235
235
|
| `smoothing` | number (0.01 to 200) | `1` | Peak-respecting envelope time constant (ms). |
|
|
236
|
-
| `tolerance` | number (
|
|
237
|
-
| `peakTolerance` | number (
|
|
236
|
+
| `tolerance` | number (0 to 6) | `0.5` | Iteration exit threshold (LUFS dB). |
|
|
237
|
+
| `peakTolerance` | number (0 to 6) | `0.1` | One-sided iteration exit threshold for output true-peak overshoot (dBTP; ceiling — undershoot ignored). |
|
|
238
238
|
|
|
239
239
|
### Normalize
|
|
240
240
|
|
|
@@ -254,8 +254,8 @@ Add silence to start or end of audio
|
|
|
254
254
|
|
|
255
255
|
| Parameter | Type | Default | Description |
|
|
256
256
|
| --- | --- | --- | --- |
|
|
257
|
-
| `before` | number (
|
|
258
|
-
| `after` | number (
|
|
257
|
+
| `before` | number (0 to 300, step 0.001) | `0` | Before |
|
|
258
|
+
| `after` | number (0 to 300, step 0.001) | `0` | After |
|
|
259
259
|
|
|
260
260
|
### Pan
|
|
261
261
|
|
|
@@ -328,7 +328,7 @@ Replace a region of audio with processed content
|
|
|
328
328
|
| Parameter | Type | Default | Description |
|
|
329
329
|
| --- | --- | --- | --- |
|
|
330
330
|
| `insertPath` | string | `""` | Insert File Path |
|
|
331
|
-
| `insertAt` | number (
|
|
331
|
+
| `insertAt` | number (0 to 1000000000) | `0` | Insert At (frames) |
|
|
332
332
|
|
|
333
333
|
### Trim
|
|
334
334
|
|
|
@@ -351,7 +351,7 @@ Measure source true peak (4× upsampled, BS.1770-4 style) and apply a single lin
|
|
|
351
351
|
|
|
352
352
|
| Parameter | Type | Default | Description |
|
|
353
353
|
| --- | --- | --- | --- |
|
|
354
|
-
| `target` | number (
|
|
354
|
+
| `target` | number (-24 to 0) | `-1` | Target true peak (dBTP). Must be < 0. |
|
|
355
355
|
|
|
356
356
|
### VST3
|
|
357
357
|
|
|
@@ -393,7 +393,7 @@ Write audio to a file
|
|
|
393
393
|
| `encoding` | Object, optional | — | Encode through ffmpeg to a non-WAV format. Requires `ffmpegPath`. |
|
|
394
394
|
| `encoding.format` | "wav" \| "flac" \| "mp3" \| "aac" | — | |
|
|
395
395
|
| `encoding.bitrate` | string, optional | — | |
|
|
396
|
-
| `encoding.vbr` | number, optional | — | |
|
|
396
|
+
| `encoding.vbr` | number (0 to 9), optional | — | |
|
|
397
397
|
| `encoding.sampleRate` | number (min 0), optional | — | Output sample rate (Hz). When set, ffmpeg resamples on encode. |
|
|
398
398
|
|
|
399
399
|
## Creating Nodes
|
package/dist/index.js
CHANGED
|
@@ -29843,6 +29843,9 @@ var BufferedAudioNode = class {
|
|
|
29843
29843
|
get id() {
|
|
29844
29844
|
return this.properties.id;
|
|
29845
29845
|
}
|
|
29846
|
+
get packageVersion() {
|
|
29847
|
+
return this.properties.packageVersion;
|
|
29848
|
+
}
|
|
29846
29849
|
get isBypassed() {
|
|
29847
29850
|
return this.properties.bypass === true;
|
|
29848
29851
|
}
|
|
@@ -30118,6 +30121,7 @@ var TransformNode = class extends BufferedAudioNode {
|
|
|
30118
30121
|
var graphNodeSchema = external_exports2.object({
|
|
30119
30122
|
id: external_exports2.string().min(1),
|
|
30120
30123
|
packageName: external_exports2.string().min(1),
|
|
30124
|
+
packageVersion: external_exports2.string().min(1),
|
|
30121
30125
|
nodeName: external_exports2.string().min(1),
|
|
30122
30126
|
parameters: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
|
|
30123
30127
|
options: external_exports2.object({
|
|
@@ -30132,15 +30136,8 @@ external_exports2.object({
|
|
|
30132
30136
|
id: external_exports2.uuid(),
|
|
30133
30137
|
name: external_exports2.string().default("Untitled"),
|
|
30134
30138
|
apiVersion: external_exports2.number().int().min(1),
|
|
30135
|
-
packages: external_exports2.record(external_exports2.string(), external_exports2.string().min(1)),
|
|
30136
30139
|
nodes: external_exports2.array(graphNodeSchema),
|
|
30137
30140
|
edges: external_exports2.array(graphEdgeSchema)
|
|
30138
|
-
}).superRefine((definition, context) => {
|
|
30139
|
-
for (const node of definition.nodes) {
|
|
30140
|
-
if (!Object.prototype.hasOwnProperty.call(definition.packages, node.packageName)) {
|
|
30141
|
-
context.addIssue(`Node "${node.id}" references package "${node.packageName}" which has no entry in the graph packages map`);
|
|
30142
|
-
}
|
|
30143
|
-
}
|
|
30144
30141
|
});
|
|
30145
30142
|
|
|
30146
30143
|
// package.json
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buffered-audio/nodes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"vitest": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@buffered-audio/core": "0.
|
|
48
|
-
"@buffered-audio/utils": "0.6.
|
|
47
|
+
"@buffered-audio/core": "0.11.0",
|
|
48
|
+
"@buffered-audio/utils": "0.6.6",
|
|
49
49
|
"bufferfy": "^4.0.3",
|
|
50
50
|
"wavefile": "^11.0.0",
|
|
51
51
|
"zod": "^4.3.6"
|