@effetune/dsp 0.6.0 → 0.7.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 +7 -7
- package/dist/assets/effetune-dsp.meta.json +12 -12
- package/dist/assets/effetune-dsp.simd.wasm +0 -0
- package/dist/assets/effetune-dsp.wasm +0 -0
- package/dist/assets.js +11 -11
- package/dist/catalog/effects-v1.json +65 -13
- package/dist/effect.js +28 -2
- package/dist/generated-effects.d.ts +6 -6
- package/dist/generated-effects.js +2 -2
- package/dist/graph-engine.js +7 -7
- package/dist/graph.js +4 -4
- package/dist/internal/dsp-params.generated.js +139 -99
- package/dist/internal/ir-asset-payload.js +4 -4
- package/dist/internal/ir-plugin-contract.js +10 -6
- package/dist/preset.js +6 -2
- package/dist/runtime.js +6 -6
- package/dist/schemas/bundle-v1.schema.json +7 -7
- package/dist/schemas/chain-v1.schema.json +67 -15
- package/dist/schemas/graph-v1.schema.json +67 -15
- package/dist/semantics.js +12 -19
- package/dist/telemetry.js +1 -1
- package/dist/worklet.js +11 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- BEGIN DSP-LIBRARY-JAVASCRIPT-SUMMARY -->
|
|
4
4
|
EffeTune DSP provides the same MIT-licensed C++ audio kernels used by EffeTune
|
|
5
5
|
as a self-contained WebAssembly package for Node.js and evergreen browsers.
|
|
6
|
-
Version 0.
|
|
6
|
+
Version 0.7.0 exposes all 92 catalog types through the generic Chain and
|
|
7
7
|
`createEffect` APIs and 92 generated named convenience classes,
|
|
8
8
|
decoded analyzer telemetry, versioned semantic presets, deterministic seeds, and an AudioWorklet wrapper.
|
|
9
9
|
<!-- END DSP-LIBRARY-JAVASCRIPT-SUMMARY -->
|
|
@@ -182,11 +182,11 @@ catalog for all 92 root classes and their `create<Type>()` factories. The
|
|
|
182
182
|
catalog contains channel choices, parameters, required assets, telemetry, and
|
|
183
183
|
latency declarations, but no private implementation mapping.
|
|
184
184
|
|
|
185
|
-
### Modulation
|
|
185
|
+
### Modulation system-preset recipes
|
|
186
186
|
|
|
187
|
-
The application
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
The application exposes these settings as system presets. The following
|
|
188
|
+
JSON-compatible objects are their equivalent public parameter dictionaries.
|
|
189
|
+
Copy one into a named constructor, for example
|
|
190
190
|
`new Chorus(MODULATION_STYLES.Chorus.Flanger)`, or into a Chain effect's
|
|
191
191
|
`parameters` object.
|
|
192
192
|
|
|
@@ -231,8 +231,8 @@ const MODULATION_STYLES = {
|
|
|
231
231
|
"Rotary Slow": { speedState: "Slow", speed: 100, acceleration: 2.2, crossover: 800, rotorBalance: 0, stereoWidth: 75, dopplerDepth: 45, amplitudeDepth: 55, mix: 70 },
|
|
232
232
|
"Rotary Fast": { speedState: "Fast", speed: 100, acceleration: 1.4, crossover: 800, rotorBalance: 0, stereoWidth: 85, dopplerDepth: 65, amplitudeDepth: 70, mix: 78 },
|
|
233
233
|
"Gentle Rotary": { speedState: "Slow", speed: 75, acceleration: 3, crossover: 900, rotorBalance: 0, stereoWidth: 45, dopplerDepth: 25, amplitudeDepth: 30, mix: 55 },
|
|
234
|
-
"
|
|
235
|
-
"
|
|
234
|
+
"Vintage Rotor Slow": { speedState: "Slow", speed: 100, acceleration: 2.8, crossover: 800, rotorBalance: -5, stereoWidth: 80, dopplerDepth: 50, amplitudeDepth: 60, mix: 75 },
|
|
235
|
+
"Vintage Rotor Fast": { speedState: "Fast", speed: 100, acceleration: 1.8, crossover: 800, rotorBalance: -5, stereoWidth: 90, dopplerDepth: 70, amplitudeDepth: 75, mix: 82 }
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
238
|
```
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"abiVersion": 1,
|
|
3
|
-
"sourceDigest": "sha256:
|
|
3
|
+
"sourceDigest": "sha256:df1bbb523b8c25f3733a6a948c648f3cf627b7e73d576b911c409900e81fbea5",
|
|
4
4
|
"emsdkVersion": "6.0.2",
|
|
5
5
|
"g726PerformanceInput": {
|
|
6
6
|
"contract": "g726-production-performance-input-sha256-v2",
|
|
7
7
|
"hashAlgorithm": "SHA-256 over the contract and ordered UTF-8 components as id\\0content\\0; CRLF and CR normalize to LF",
|
|
8
|
-
"digest": "sha256:
|
|
8
|
+
"digest": "sha256:e7e32b3616dc0bafdee4e807e9aceae8d4afe1aeb2bf41346aa0c8255a26a8e7",
|
|
9
9
|
"inputs": [
|
|
10
10
|
{
|
|
11
11
|
"id": "dsp/core/abi.cpp",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
{
|
|
16
16
|
"id": "dsp/core/allocation_guard.cpp",
|
|
17
17
|
"kind": "file",
|
|
18
|
-
"sha256": "sha256:
|
|
18
|
+
"sha256": "sha256:69dd284b57f2704580778028a33d05f683fa8d5674de22b4aa094c2254475049"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"id": "dsp/core/allocation_guard.h",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"id": "dsp/core/arena.cpp",
|
|
27
27
|
"kind": "file",
|
|
28
|
-
"sha256": "sha256:
|
|
28
|
+
"sha256": "sha256:9b2795ac6f44ab7cc7708d6f831f180b4df73ebff438e16745519cf00be4f4be"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "dsp/core/arena.h",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
{
|
|
36
36
|
"id": "dsp/core/engine.cpp",
|
|
37
37
|
"kind": "file",
|
|
38
|
-
"sha256": "sha256:
|
|
38
|
+
"sha256": "sha256:04c3257634399acfadf9ee258be827ee26fce0a86d8189397f0d4bae245b1343"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"id": "dsp/core/engine.h",
|
|
42
42
|
"kind": "file",
|
|
43
|
-
"sha256": "sha256:
|
|
43
|
+
"sha256": "sha256:7a6dab8dcc980bc0535c2571942e0674fe96eba7c3053b6c97460ea2c8807c97"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"id": "dsp/core/registry.cpp",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
{
|
|
96
96
|
"id": "dsp/include/effetune/kernel.h",
|
|
97
97
|
"kind": "file",
|
|
98
|
-
"sha256": "sha256:
|
|
98
|
+
"sha256": "sha256:077893c235793dd2a250404672bbee43f18e91fd0e24753b96fddc846dc853ff"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"id": "dsp/include/effetune/telemetry.h",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
{
|
|
116
116
|
"id": "dsp/plugins/lofi/g726_adpcm_simulator/params.json",
|
|
117
117
|
"kind": "file",
|
|
118
|
-
"sha256": "sha256:
|
|
118
|
+
"sha256": "sha256:128c5eb52ac4eecd786065ecc778005a88fef91fb8fb7ea49e74028415f2b5dc"
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
"id": "dsp/registry.inc#G726ADPCMSimulatorPlugin-entry",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
{
|
|
161
161
|
"id": "tools/dsp-parity/runners.mjs",
|
|
162
162
|
"kind": "file",
|
|
163
|
-
"sha256": "sha256:
|
|
163
|
+
"sha256": "sha256:cd67baecc50e260dddedb992f50de963caecf9ec7c6fc76bbf415b3fd4b478ec"
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"id": "tools/dsp-parity/stimuli.mjs",
|
|
@@ -454,7 +454,7 @@
|
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
456
|
"name": "MultiChannelPanelPlugin",
|
|
457
|
-
"hash":
|
|
457
|
+
"hash": 2638026937,
|
|
458
458
|
"byteCapacity": 0,
|
|
459
459
|
"assets": []
|
|
460
460
|
},
|
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
}
|
|
1000
1000
|
],
|
|
1001
1001
|
"sizes": {
|
|
1002
|
-
"baseline":
|
|
1003
|
-
"simd":
|
|
1002
|
+
"baseline": 1170211,
|
|
1003
|
+
"simd": 1291175
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
Binary file
|
|
Binary file
|
package/dist/assets.js
CHANGED
|
@@ -138,11 +138,11 @@ function inferEta1Format(bytes, reference) {
|
|
|
138
138
|
const topology = header.getUint32(16, true);
|
|
139
139
|
const pathCount = header.getUint32(20, true);
|
|
140
140
|
if (header.getUint32(0, true) !== 0x31415445 ||
|
|
141
|
-
channels < 1 || channels >
|
|
141
|
+
channels < 1 || channels > 16 ||
|
|
142
142
|
frames < 1 || frames > 8388600 ||
|
|
143
143
|
sampleRate < 1 ||
|
|
144
144
|
topology > IR_ASSET_TOPOLOGY.matrix ||
|
|
145
|
-
pathCount >
|
|
145
|
+
pathCount > 16 ||
|
|
146
146
|
header.getUint32(24, true) !== 0 ||
|
|
147
147
|
header.getUint32(28, true) !== 0) {
|
|
148
148
|
throw new AssetError(`Asset ${reference} has an invalid ETA1 header.`);
|
|
@@ -232,8 +232,8 @@ async function resolverResult(resolver, reference, descriptor, effectId) {
|
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
function validatePaths(paths, channels) {
|
|
235
|
-
if (!Array.isArray(paths) || paths.length < 1 || paths.length >
|
|
236
|
-
throw new AssetError('Matrix impulse responses require between 1 and
|
|
235
|
+
if (!Array.isArray(paths) || paths.length < 1 || paths.length > 16) {
|
|
236
|
+
throw new AssetError('Matrix impulse responses require between 1 and 16 paths.');
|
|
237
237
|
}
|
|
238
238
|
const normalized = paths.map(path => {
|
|
239
239
|
if (!isRecord(path) ||
|
|
@@ -247,8 +247,8 @@ function validatePaths(paths, channels) {
|
|
|
247
247
|
const outputSlot = path?.outputSlot;
|
|
248
248
|
const irChannel = path?.irChannel;
|
|
249
249
|
if (![inputSlot, outputSlot, irChannel].every(Number.isSafeInteger) ||
|
|
250
|
-
inputSlot < 0 || inputSlot >
|
|
251
|
-
outputSlot < 0 || outputSlot >
|
|
250
|
+
inputSlot < 0 || inputSlot > 15 ||
|
|
251
|
+
outputSlot < 0 || outputSlot > 15 ||
|
|
252
252
|
irChannel < 0 || irChannel >= channels) {
|
|
253
253
|
throw new AssetError('Matrix impulse-response paths contain an invalid channel or slot.');
|
|
254
254
|
}
|
|
@@ -288,8 +288,8 @@ export function encodeEta1(options) {
|
|
|
288
288
|
throw new AssetError('ETA1 encoding options must be an object.');
|
|
289
289
|
}
|
|
290
290
|
const { channels, sampleRate, topology = 'unspecified', paths } = options;
|
|
291
|
-
if (!Array.isArray(channels) || channels.length < 1 || channels.length >
|
|
292
|
-
throw new AssetError('ETA1 channels must contain between 1 and
|
|
291
|
+
if (!Array.isArray(channels) || channels.length < 1 || channels.length > 16) {
|
|
292
|
+
throw new AssetError('ETA1 channels must contain between 1 and 16 Float32Array values.');
|
|
293
293
|
}
|
|
294
294
|
const frames = channels[0] instanceof Float32Array ? channels[0].length : 0;
|
|
295
295
|
if (frames < 1) {
|
|
@@ -345,7 +345,7 @@ function normalizeFormatMetadata(format, byteLength, reference, options = {}) {
|
|
|
345
345
|
throw new AssetError(`Asset ${reference} must use the ETA1 planar little-endian float32 format.`);
|
|
346
346
|
}
|
|
347
347
|
const { channels, frames, sampleRate } = format;
|
|
348
|
-
if (!Number.isInteger(channels) || channels < 1 || channels >
|
|
348
|
+
if (!Number.isInteger(channels) || channels < 1 || channels > 16 ||
|
|
349
349
|
!Number.isInteger(frames) || frames < 1 || frames > 8388600 ||
|
|
350
350
|
!Number.isInteger(sampleRate) || sampleRate < 1 || sampleRate > 0xffffffff) {
|
|
351
351
|
throw new AssetError(`Asset ${reference} has invalid channel, frame, or sample-rate metadata.`);
|
|
@@ -679,11 +679,11 @@ function prepareFirFilterAsset(effect, resolvedAssets, {
|
|
|
679
679
|
let inputCount;
|
|
680
680
|
if (effect.type === 'FIRCrossover') {
|
|
681
681
|
const bandCount = effect.parameters.bandCount;
|
|
682
|
-
if (
|
|
682
|
+
if ((processingChannels < 4 || processingChannels > 16 || processingChannels % 2 !== 0) ||
|
|
683
683
|
bandCount * 2 > processingChannels ||
|
|
684
684
|
asset.format.channels !== bandCount) {
|
|
685
685
|
throw new AssetError(
|
|
686
|
-
`${effect.id} requires
|
|
686
|
+
`${effect.id} requires an even number of processing channels from 4 to 16 and one filter channel per band.`
|
|
687
687
|
);
|
|
688
688
|
}
|
|
689
689
|
topology = IR_ASSET_TOPOLOGY.matrix;
|
|
@@ -13,9 +13,21 @@
|
|
|
13
13
|
"6",
|
|
14
14
|
"7",
|
|
15
15
|
"8",
|
|
16
|
+
"9",
|
|
17
|
+
"10",
|
|
18
|
+
"11",
|
|
19
|
+
"12",
|
|
20
|
+
"13",
|
|
21
|
+
"14",
|
|
22
|
+
"15",
|
|
23
|
+
"16",
|
|
16
24
|
"34",
|
|
17
25
|
"56",
|
|
18
|
-
"78"
|
|
26
|
+
"78",
|
|
27
|
+
"910",
|
|
28
|
+
"1112",
|
|
29
|
+
"1314",
|
|
30
|
+
"1516"
|
|
19
31
|
],
|
|
20
32
|
"effects": [
|
|
21
33
|
{
|
|
@@ -340,7 +352,7 @@
|
|
|
340
352
|
"count": 1,
|
|
341
353
|
"default": "0011",
|
|
342
354
|
"maximumLength": 3072,
|
|
343
|
-
"pattern": "^(?:p?[0-
|
|
355
|
+
"pattern": "^(?:p?[0-9a-f][0-9a-f])*$"
|
|
344
356
|
}
|
|
345
357
|
],
|
|
346
358
|
"seeded": false,
|
|
@@ -356,8 +368,16 @@
|
|
|
356
368
|
{
|
|
357
369
|
"name": "mute",
|
|
358
370
|
"type": "boolean",
|
|
359
|
-
"count":
|
|
371
|
+
"count": 16,
|
|
360
372
|
"default": [
|
|
373
|
+
false,
|
|
374
|
+
false,
|
|
375
|
+
false,
|
|
376
|
+
false,
|
|
377
|
+
false,
|
|
378
|
+
false,
|
|
379
|
+
false,
|
|
380
|
+
false,
|
|
361
381
|
false,
|
|
362
382
|
false,
|
|
363
383
|
false,
|
|
@@ -371,8 +391,16 @@
|
|
|
371
391
|
{
|
|
372
392
|
"name": "solo",
|
|
373
393
|
"type": "boolean",
|
|
374
|
-
"count":
|
|
394
|
+
"count": 16,
|
|
375
395
|
"default": [
|
|
396
|
+
false,
|
|
397
|
+
false,
|
|
398
|
+
false,
|
|
399
|
+
false,
|
|
400
|
+
false,
|
|
401
|
+
false,
|
|
402
|
+
false,
|
|
403
|
+
false,
|
|
376
404
|
false,
|
|
377
405
|
false,
|
|
378
406
|
false,
|
|
@@ -386,8 +414,16 @@
|
|
|
386
414
|
{
|
|
387
415
|
"name": "volume",
|
|
388
416
|
"type": "number",
|
|
389
|
-
"count":
|
|
417
|
+
"count": 16,
|
|
390
418
|
"default": [
|
|
419
|
+
0,
|
|
420
|
+
0,
|
|
421
|
+
0,
|
|
422
|
+
0,
|
|
423
|
+
0,
|
|
424
|
+
0,
|
|
425
|
+
0,
|
|
426
|
+
0,
|
|
391
427
|
0,
|
|
392
428
|
0,
|
|
393
429
|
0,
|
|
@@ -404,8 +440,16 @@
|
|
|
404
440
|
{
|
|
405
441
|
"name": "delay",
|
|
406
442
|
"type": "number",
|
|
407
|
-
"count":
|
|
443
|
+
"count": 16,
|
|
408
444
|
"default": [
|
|
445
|
+
0,
|
|
446
|
+
0,
|
|
447
|
+
0,
|
|
448
|
+
0,
|
|
449
|
+
0,
|
|
450
|
+
0,
|
|
451
|
+
0,
|
|
452
|
+
0,
|
|
409
453
|
0,
|
|
410
454
|
0,
|
|
411
455
|
0,
|
|
@@ -422,8 +466,16 @@
|
|
|
422
466
|
{
|
|
423
467
|
"name": "link",
|
|
424
468
|
"type": "boolean",
|
|
425
|
-
"count":
|
|
469
|
+
"count": 15,
|
|
426
470
|
"default": [
|
|
471
|
+
false,
|
|
472
|
+
false,
|
|
473
|
+
false,
|
|
474
|
+
false,
|
|
475
|
+
false,
|
|
476
|
+
false,
|
|
477
|
+
false,
|
|
478
|
+
false,
|
|
427
479
|
false,
|
|
428
480
|
false,
|
|
429
481
|
false,
|
|
@@ -4146,7 +4198,7 @@
|
|
|
4146
4198
|
"name": "noiseProfile",
|
|
4147
4199
|
"type": "number",
|
|
4148
4200
|
"count": 1,
|
|
4149
|
-
"default":
|
|
4201
|
+
"default": 10,
|
|
4150
4202
|
"minimum": 0,
|
|
4151
4203
|
"maximum": 10
|
|
4152
4204
|
},
|
|
@@ -5364,7 +5416,7 @@
|
|
|
5364
5416
|
"name": "waveguideGain",
|
|
5365
5417
|
"type": "number",
|
|
5366
5418
|
"count": 1,
|
|
5367
|
-
"default":
|
|
5419
|
+
"default": 26,
|
|
5368
5420
|
"unit": "dB",
|
|
5369
5421
|
"minimum": -36,
|
|
5370
5422
|
"maximum": 36
|
|
@@ -5446,7 +5498,7 @@
|
|
|
5446
5498
|
"name": "waveguideGain",
|
|
5447
5499
|
"type": "number",
|
|
5448
5500
|
"count": 1,
|
|
5449
|
-
"default":
|
|
5501
|
+
"default": 26,
|
|
5450
5502
|
"unit": "dB",
|
|
5451
5503
|
"minimum": -36,
|
|
5452
5504
|
"maximum": 36
|
|
@@ -5973,7 +6025,7 @@
|
|
|
5973
6025
|
"maximum": 100
|
|
5974
6026
|
}
|
|
5975
6027
|
],
|
|
5976
|
-
"seeded":
|
|
6028
|
+
"seeded": false,
|
|
5977
6029
|
"telemetry": [],
|
|
5978
6030
|
"latency": {
|
|
5979
6031
|
"kind": "zero"
|
|
@@ -7067,7 +7119,7 @@
|
|
|
7067
7119
|
}
|
|
7068
7120
|
],
|
|
7069
7121
|
"contractDigests": {
|
|
7070
|
-
"publicCatalogSha256": "
|
|
7071
|
-
"privateLayoutSha256": "
|
|
7122
|
+
"publicCatalogSha256": "0f8926c820f825d87f212d7c7fbfa75044caf7aa912bef6a78cc85f820b899c0",
|
|
7123
|
+
"privateLayoutSha256": "61121eb6aec4b52d5492795c2ac81bd4cecfa119b7bfc4e6956fd2b725690685"
|
|
7072
7124
|
}
|
|
7073
7125
|
}
|
package/dist/effect.js
CHANGED
|
@@ -2,8 +2,8 @@ import { AssetError, ValidationError } from './errors.js';
|
|
|
2
2
|
|
|
3
3
|
export const EFFECT_CHANNELS = Object.freeze([
|
|
4
4
|
'all', 'stereo', 'left', 'right',
|
|
5
|
-
'1', '2', '3', '4', '5', '6', '7', '8',
|
|
6
|
-
'34', '56', '78'
|
|
5
|
+
'1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16',
|
|
6
|
+
'34', '56', '78', '910', '1112', '1314', '1516'
|
|
7
7
|
]);
|
|
8
8
|
|
|
9
9
|
const COMMON_KEYS = new Set(['id', 'enabled', 'channel', 'assets', 'parameters']);
|
|
@@ -86,6 +86,32 @@ export function validateParameterValue(effectType, definition, value) {
|
|
|
86
86
|
return Array.isArray(value) ? Object.freeze([...value]) : value;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
export function canonicalizeProcessingParameters(effectType, parameters) {
|
|
90
|
+
const canonical = { ...parameters };
|
|
91
|
+
if (effectType === 'AutoFilter' &&
|
|
92
|
+
canonical.minimumFrequency > canonical.maximumFrequency) {
|
|
93
|
+
[canonical.minimumFrequency, canonical.maximumFrequency] =
|
|
94
|
+
[canonical.maximumFrequency, canonical.minimumFrequency];
|
|
95
|
+
} else if (effectType === 'Chorus' && canonical.depth > canonical.delay) {
|
|
96
|
+
canonical.depth = canonical.delay;
|
|
97
|
+
} else if (effectType === 'FrequencyShifter' &&
|
|
98
|
+
canonical.minimumShift > canonical.maximumShift) {
|
|
99
|
+
[canonical.minimumShift, canonical.maximumShift] =
|
|
100
|
+
[canonical.maximumShift, canonical.minimumShift];
|
|
101
|
+
} else if (effectType === 'MultibandCompressor' || effectType === 'MultibandExpander' ||
|
|
102
|
+
effectType === 'MultibandBalance' || effectType === 'MultibandTransient' ||
|
|
103
|
+
effectType === 'MultibandSaturation') {
|
|
104
|
+
const count = effectType === 'MultibandTransient' || effectType === 'MultibandSaturation'
|
|
105
|
+
? 2 : 4;
|
|
106
|
+
for (let index = 2; index <= count; index++) {
|
|
107
|
+
const key = `frequency${index}`;
|
|
108
|
+
const previous = canonical[`frequency${index - 1}`];
|
|
109
|
+
if (canonical[key] < previous) canonical[key] = previous;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return canonical;
|
|
113
|
+
}
|
|
114
|
+
|
|
89
115
|
function normalizeBaseAssets(effectType, assets) {
|
|
90
116
|
const assetNames = ASSET_NAMES_BY_EFFECT.get(effectType);
|
|
91
117
|
if (!assetNames) {
|
|
@@ -3,7 +3,7 @@ import { Effect } from './effect.js';
|
|
|
3
3
|
|
|
4
4
|
export type EffectType = "LevelMeter" | "Oscilloscope" | "Spectrogram" | "SpectrumAnalyzer" | "StereoMeter" | "ChannelDivider" | "DCOffset" | "FIRCrossover" | "Matrix" | "MultiChannelPanel" | "Mute" | "PolarityInversion" | "StereoBalance" | "Volume" | "Delay" | "TimeAlignment" | "AutoLeveler" | "BrickwallLimiter" | "Compressor" | "Expander" | "Gate" | "MultibandCompressor" | "MultibandExpander" | "MultibandTransient" | "PowerAmpSag" | "TransientShaper" | "BandPassFilter" | "CombFilter" | "EarphoneCableSim" | "FifteenBandGEQ" | "FifteenBandPEQ" | "FiveBandDynamicEQ" | "FiveBandFIRPEQ" | "FiveBandPEQ" | "GroupDelayEQ" | "GroupDelayPEQ" | "HiPassFilter" | "LoPassFilter" | "LoudnessEqualizer" | "NarrowRange" | "RoomEQ" | "TiltEQ" | "ToneControl" | "AMRadioSimulator" | "BitCrusher" | "BluetoothSBCSimulator" | "CassetteArtifacts" | "DigitalErrorEmulator" | "DSD64IMDSimulator" | "FMRadioSimulator" | "G726ADPCMSimulator" | "GSMFullRateSimulator" | "HumGenerator" | "MDSimulator" | "MP3CodecSimulator" | "NoiseBlender" | "SimpleJitter" | "SWRadioSimulator" | "TapeArtifacts" | "VinylArtifacts" | "VinylSimulator" | "AutoFilter" | "AutoPan" | "Chorus" | "DopplerDistortion" | "FrequencyShifter" | "Phaser" | "PitchShifter" | "RotarySpeaker" | "Tremolo" | "WowFlutter" | "Oscillator" | "HornResonator" | "HornResonatorPlus" | "ModalResonator" | "DattorroPlateReverb" | "FDNReverb" | "IRReverb" | "RSReverb" | "DynamicSaturation" | "Exciter" | "HardClipping" | "HarmonicDistortion" | "MultibandSaturation" | "Saturation" | "SubSynth" | "TubeSimulator" | "CrossfeedFilter" | "MSMatrix" | "MultibandBalance" | "PhaseSelectEQ" | "StereoBlend";
|
|
5
5
|
type RequiredAssetEffectType = "FIRCrossover" | "FiveBandFIRPEQ" | "GroupDelayEQ" | "GroupDelayPEQ" | "RoomEQ" | "IRReverb";
|
|
6
|
-
export type EffectChannel = "all" | "stereo" | "left" | "right" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "34" | "56" | "78";
|
|
6
|
+
export type EffectChannel = "all" | "stereo" | "left" | "right" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "34" | "56" | "78" | "910" | "1112" | "1314" | "1516";
|
|
7
7
|
|
|
8
8
|
export interface CommonEffectOptions {
|
|
9
9
|
readonly id?: string;
|
|
@@ -139,11 +139,11 @@ export declare class Matrix extends Effect {
|
|
|
139
139
|
export declare function createMatrix(options?: MatrixOptions): Matrix;
|
|
140
140
|
|
|
141
141
|
export interface MultiChannelPanelOptions extends CommonEffectOptions {
|
|
142
|
-
readonly mute?: readonly [boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean];
|
|
143
|
-
readonly solo?: readonly [boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean];
|
|
144
|
-
readonly volume?: readonly [number, number, number, number, number, number, number, number];
|
|
145
|
-
readonly delay?: readonly [number, number, number, number, number, number, number, number];
|
|
146
|
-
readonly link?: readonly [boolean, boolean, boolean, boolean, boolean, boolean, boolean];
|
|
142
|
+
readonly mute?: readonly [boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean];
|
|
143
|
+
readonly solo?: readonly [boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean];
|
|
144
|
+
readonly volume?: readonly [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number];
|
|
145
|
+
readonly delay?: readonly [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number];
|
|
146
|
+
readonly link?: readonly [boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean];
|
|
147
147
|
readonly assets?: never;
|
|
148
148
|
}
|
|
149
149
|
|