@openmixer/omx-contract 1.0.0 → 1.2.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 +10 -6
- package/data/kernels/balance.json +19 -0
- package/data/kernels/chorus.json +48 -0
- package/data/kernels/deesser.json +93 -0
- package/data/kernels/drive.json +90 -0
- package/data/kernels/eq.json +60 -0
- package/data/kernels/flanger.json +51 -0
- package/data/kernels/geq.json +33 -0
- package/data/kernels/phaser.json +109 -0
- package/data/kernels/reverb.json +135 -0
- package/data/kernels/rotary.json +186 -0
- package/data/kernels/tremolo.json +54 -0
- package/data/primitives.json +74 -0
- package/dist/ts/omx-contract.d.ts +1051 -80
- package/dist/ts/omx-contract.js +1063 -91
- package/include/omxcontract/omx_contract_limits.h +317 -0
- package/lib/data.mjs +2 -25
- package/lib/fmt.mjs +1 -3
- package/lib/semver.mjs +17 -16
- package/lib/validate.mjs +1 -16
- package/package.json +1 -1
- package/render/c.mjs +6 -16
- package/render/doors.mjs +2 -3
- package/render/ts.mjs +1 -2
- package/schema/omx-contract.schema.json +6 -36
- package/share/omx-contract/omx-contract.json +1149 -61
- package/data/plugins/delay.json +0 -48
- package/include/omxcontract/params/omx_delay_params.h +0 -47
- package/include/omxcontract/params/omx_plugin_param.h +0 -25
package/dist/ts/omx-contract.js
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
// Copyright (C) 2026 Pau Aliagas <linuxnow@gmail.com>
|
|
3
3
|
// GENERATED by `omx-contract render --target ts` from FreeMixer/omx-contract's data/ — do not edit.
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* The PAN travel — −1 (hard left) … 0 (center) … +1 (hard right). A property of the pan law itself, not of any desk, so it is declared once. Continuous: a pan position has no quantum, and panGains clamps to these bounds.
|
|
7
|
+
* @see data/kernels/balance.json
|
|
8
|
+
*/
|
|
9
|
+
export const PAN_RANGE = {
|
|
10
|
+
"min": -1,
|
|
11
|
+
"max": 1,
|
|
12
|
+
"step": 0,
|
|
13
|
+
"unit": ""
|
|
14
|
+
};
|
|
15
|
+
|
|
5
16
|
/**
|
|
6
17
|
* The chorus's right-leg phase offset, in TURNS of its one oscillator (§2, §3a; the native-FX catalogue's M32 Dimension row). The right leg's voice k reads the LFO at k/N + spread: 0 is both legs one phase (the stage without the field, bit for bit), 0.25 quadrature, 0.5 the Dimension's opposed sweep. A fraction of a cycle carries no engineering symbol, so the unit is ''.
|
|
7
18
|
* @see data/kernels/chorus.json
|
|
@@ -15,6 +26,58 @@ export const CHORUS_SPREAD_RANGE = {
|
|
|
15
26
|
"defaultFrom": "desk"
|
|
16
27
|
};
|
|
17
28
|
|
|
29
|
+
/**
|
|
30
|
+
* The chorus sweep's speed (§3a). Above ~3 Hz it stops being a chorus and becomes a vibrato.
|
|
31
|
+
* @see data/kernels/chorus.json
|
|
32
|
+
*/
|
|
33
|
+
export const CHORUS_RATE_RANGE = {
|
|
34
|
+
"min": 0.05,
|
|
35
|
+
"max": 8,
|
|
36
|
+
"step": 0.01,
|
|
37
|
+
"unit": "Hz",
|
|
38
|
+
"default": 0.6,
|
|
39
|
+
"defaultFrom": "desk"
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The chorus's peak-to-peak excursion above its declared 10 ms base (§3a).
|
|
44
|
+
* @see data/kernels/chorus.json
|
|
45
|
+
*/
|
|
46
|
+
export const CHORUS_DEPTH_RANGE = {
|
|
47
|
+
"min": 0,
|
|
48
|
+
"max": 12,
|
|
49
|
+
"step": 0.1,
|
|
50
|
+
"unit": "ms",
|
|
51
|
+
"default": 4,
|
|
52
|
+
"defaultFrom": "desk"
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The chorus's tap count — one oscillator read at k/N (§3a).
|
|
57
|
+
* @see data/kernels/chorus.json
|
|
58
|
+
*/
|
|
59
|
+
export const CHORUS_VOICES_RANGE = {
|
|
60
|
+
"min": 1,
|
|
61
|
+
"max": 4,
|
|
62
|
+
"step": 1,
|
|
63
|
+
"unit": "",
|
|
64
|
+
"default": 3,
|
|
65
|
+
"defaultFrom": "desk"
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The chorus's wet/dry, as an instance of DRIVE_MIX_RANGE — the same percent travel, its own come-up value: 35 %, a colour under the dry on a strip (§3a). The REVERB_LOWCUT_RANGE-over- REVERB_CUT_RANGE shape: one travel, one declared default per field that reads it.
|
|
70
|
+
* @see data/kernels/chorus.json
|
|
71
|
+
*/
|
|
72
|
+
export const CHORUS_MIX_RANGE = {
|
|
73
|
+
"min": 0,
|
|
74
|
+
"max": 100,
|
|
75
|
+
"step": 0.1,
|
|
76
|
+
"unit": "%",
|
|
77
|
+
"default": 35,
|
|
78
|
+
"defaultFrom": "desk"
|
|
79
|
+
};
|
|
80
|
+
|
|
18
81
|
/**
|
|
19
82
|
* The legal range of each compressor field (engineering units). The widget clamps drags to these, `normalizeComp` enforces them, the row's codec refuses by them and the travel sheet publishes them. `default`/`defaultFrom` are the come-up values `defaultCompState` seeds a fresh strip with, read BACK from here rather than restated there.
|
|
20
83
|
* @see data/kernels/comp.json
|
|
@@ -95,6 +158,103 @@ export const PROGRAM_RELEASE = {
|
|
|
95
158
|
}
|
|
96
159
|
};
|
|
97
160
|
|
|
161
|
+
/**
|
|
162
|
+
* The detector band's CENTRE, in Hz. Sibilance lives at 5–10 kHz on most voices; 7 kHz with the default width covers 4 950–9 900 Hz, which is where an "s" and a "t" sit on a close vocal mic. The travel is wider than the come-up on both sides on purpose: a bright female vocal wants the band up near 9 kHz and a chesty male one down at 5, and a surface narrower than the row removes reach the console genuinely has (the same reasoning core's `REVERB_CUT_RANGE` records).
|
|
163
|
+
* @see data/kernels/deesser.json
|
|
164
|
+
*/
|
|
165
|
+
export const DEESS_FREQ_RANGE = {
|
|
166
|
+
"min": 2000,
|
|
167
|
+
"max": 16000,
|
|
168
|
+
"step": 10,
|
|
169
|
+
"unit": "Hz",
|
|
170
|
+
"default": 7000,
|
|
171
|
+
"defaultFrom": "desk"
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The band's WIDTH, in OCTAVES around the centre: the edges are `f / 2^(w/2)` and `f · 2^(w/2)`, which is what makes the centre the geometric middle at every width. Octaves and not a Q, because a Q is a property of one section and this band is TWO (a highpass and a lowpass, `mix_deesser.h`) — an operator asked to dial a Q would be dialling a number neither filter carries. One octave is the classic de-esser band: wide enough for a sibilant that moves with the vowel, narrow enough that a 1 kHz vowel sits 27.8 dB down the skirt.
|
|
176
|
+
* @see data/kernels/deesser.json
|
|
177
|
+
*/
|
|
178
|
+
export const DEESS_WIDTH_RANGE = {
|
|
179
|
+
"min": 0.25,
|
|
180
|
+
"max": 4,
|
|
181
|
+
"step": 0.05,
|
|
182
|
+
"unit": "oct",
|
|
183
|
+
"default": 1,
|
|
184
|
+
"defaultFrom": "desk"
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Where reduction starts — the level of the BAND, not of the strip, which is why the come-up is so much lower than the compressor's. A vocal peaking −12 dBFS carries roughly −30 dBFS in a one-octave band at 7 kHz on its sibilants and under −40 on its vowels, so −30 sits between the two and the stage opens on an "s" and stays shut on an "ah".
|
|
189
|
+
* @see data/kernels/deesser.json
|
|
190
|
+
*/
|
|
191
|
+
export const DEESS_THRESHOLD_RANGE = {
|
|
192
|
+
"min": -60,
|
|
193
|
+
"max": 0,
|
|
194
|
+
"step": 0.5,
|
|
195
|
+
"unit": "dB",
|
|
196
|
+
"default": -30,
|
|
197
|
+
"defaultFrom": "desk"
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* How hard the band is held once it is over the threshold. 4:1 is the textbook de-esser ratio: firm on the "s", short of a limiter.
|
|
202
|
+
* @see data/kernels/deesser.json
|
|
203
|
+
*/
|
|
204
|
+
export const DEESS_RATIO_RANGE = {
|
|
205
|
+
"min": 1,
|
|
206
|
+
"max": 20,
|
|
207
|
+
"step": 0.1,
|
|
208
|
+
"unit": "",
|
|
209
|
+
"default": 4,
|
|
210
|
+
"defaultFrom": "desk"
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* The FLOOR on the reduction, in dB and never positive — the deepest cut the stage may reach however loud the sibilant is (`mix_deesser.h`'s clamp, §4c). 12 dB tames a hard sibilant; past that a voice starts to lisp, and a de-esser with NO floor turns a shouted "s" into a hole. The ceiling is 0, which switches the reduction off without switching the stage off — a legitimate thing to want while dialling the band in by ear.
|
|
215
|
+
* @see data/kernels/deesser.json
|
|
216
|
+
*/
|
|
217
|
+
export const DEESS_RANGE_RANGE = {
|
|
218
|
+
"min": -24,
|
|
219
|
+
"max": 0,
|
|
220
|
+
"step": 0.5,
|
|
221
|
+
"unit": "dB",
|
|
222
|
+
"default": -12,
|
|
223
|
+
"defaultFrom": "desk"
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* The detector's ATTACK, in ms. A sibilant's onset is a few milliseconds; 1 ms catches it without the detector chattering on the band's own waveform.
|
|
228
|
+
* @see data/kernels/deesser.json
|
|
229
|
+
*/
|
|
230
|
+
export const DEESS_ATTACK_RANGE = {
|
|
231
|
+
"min": 0.1,
|
|
232
|
+
"max": 50,
|
|
233
|
+
"step": 0.1,
|
|
234
|
+
"unit": "ms",
|
|
235
|
+
"default": 1,
|
|
236
|
+
"defaultFrom": "desk"
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* The detector's RELEASE, in ms. 60 ms is long enough not to modulate inside one "s" and short enough to be open again for the next syllable.
|
|
241
|
+
* @see data/kernels/deesser.json
|
|
242
|
+
*/
|
|
243
|
+
export const DEESS_RELEASE_RANGE = {
|
|
244
|
+
"min": 5,
|
|
245
|
+
"max": 500,
|
|
246
|
+
"step": 1,
|
|
247
|
+
"unit": "ms",
|
|
248
|
+
"default": 60,
|
|
249
|
+
"defaultFrom": "desk"
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The knee, in dB — a CONSTANT of the stage and not a row field (`2026-09-22-native-deesser-stage.md` §4b): a de-esser without a soft knee latches audibly on the first sibilant of a phrase, and no other value of this number is a de-esser anyone would dial. The controller pushes it to the node and this is the same number; a second spelling would be a picture that disagrees with the audio about where the reduction starts.
|
|
254
|
+
* @see data/kernels/deesser.json
|
|
255
|
+
*/
|
|
256
|
+
export const DEESS_KNEE_DB = 6;
|
|
257
|
+
|
|
98
258
|
/**
|
|
99
259
|
* The FX delay's time travel. `max` is the NATIVE ring's ceiling — the same number as `OMX_FXDELAY_MAX_MS` in `omx_delay.h`, pinned to it by `output-delay-ceiling.test.ts`. Distinct from the per-route ALIGNMENT delay (`OUTPUT_DELAY_RANGE`, 1 s, `OMX_DELAY_MAX_MS`): one is a musical echo with feedback and mix, the other is a pure latency. Two facts, two rings, two ceilings — sharing the word "delay" is why they keep being confused for each other.
|
|
100
260
|
* @see data/kernels/delay.json
|
|
@@ -162,6 +322,71 @@ export const FX_DELAY_PINGPONG_DEFAULT = false;
|
|
|
162
322
|
*/
|
|
163
323
|
export const DRIVE_BIAS_MAX = 0.7071067811865476;
|
|
164
324
|
|
|
325
|
+
/**
|
|
326
|
+
* The PRE-CURVE gain, in dB. 0 dB is unity into the curve, so a stage switched on at its defaults changes almost nothing — which is what an `on` switch should mean. The ceiling is where every curve is saturating hard on any signal a console carries.
|
|
327
|
+
* @see data/kernels/drive.json
|
|
328
|
+
*/
|
|
329
|
+
export const DRIVE_AMOUNT_RANGE = {
|
|
330
|
+
"min": 0,
|
|
331
|
+
"max": 36,
|
|
332
|
+
"step": 0.1,
|
|
333
|
+
"unit": "dB",
|
|
334
|
+
"default": 0,
|
|
335
|
+
"defaultFrom": "desk"
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The EVEN/ODD harmonic balance. −1 is pure odd (the curve itself), +1 is pure even, 0 an equal blend — the kernel splits its own distortion residue into an odd and an even half and fades between them, so the two ends are exact rather than approximate (`mix_drive.h`, measured: H2 at −317 dBc at −1, H3 at −118 dBc at +1). Unitless, and signed by construction. NOT NORMALIZED_RANGE: this is a BALANCE with a meaningful centre, and a 0..1 travel would put its centre at 0.5 and its neutral nowhere.
|
|
340
|
+
* @see data/kernels/drive.json
|
|
341
|
+
*/
|
|
342
|
+
export const DRIVE_CHARACTER_RANGE = {
|
|
343
|
+
"min": -1,
|
|
344
|
+
"max": 1,
|
|
345
|
+
"step": 0.01,
|
|
346
|
+
"unit": "",
|
|
347
|
+
"default": 0,
|
|
348
|
+
"defaultFrom": "desk"
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* The band split / tilt corner, in Hz. ONE travel for all three band modes, because the C imposes one constraint on all of them: it is the corner of a single biquad, and the split's other half is `x − LP(x)`. The full audio band, not the channel filters' narrower HPF/LPF pair — the same reasoning REVERB_CUT_RANGE records: a surface narrower than the row removes reach the console genuinely has.
|
|
353
|
+
* @see data/kernels/drive.json
|
|
354
|
+
*/
|
|
355
|
+
export const DRIVE_BAND_FREQ_RANGE = {
|
|
356
|
+
"min": 20,
|
|
357
|
+
"max": 20000,
|
|
358
|
+
"step": 1,
|
|
359
|
+
"unit": "Hz",
|
|
360
|
+
"default": 2000,
|
|
361
|
+
"defaultFrom": "desk"
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* The wet/dry, as a PERCENT — the unit a drive control is read in on every desk that has one. Deliberately not NORMALIZED_RANGE (which is unitless 0..1): a mix a surface must label "0.35" when the operator thinks in "35 %" is a control whose declaration is fighting its reader. The kernel divides by 100 where it resolves the atom, in one place. The come-up is 100 %, not the reverb's modest 30: a saturator's insert use is IN the path. The `exciter` curve seeds itself lower (DRIVE_EXCITER_SEED), because that is a property of the TOPOLOGY and not of the travel.
|
|
366
|
+
* @see data/kernels/drive.json
|
|
367
|
+
*/
|
|
368
|
+
export const DRIVE_MIX_RANGE = {
|
|
369
|
+
"min": 0,
|
|
370
|
+
"max": 100,
|
|
371
|
+
"step": 0.1,
|
|
372
|
+
"unit": "%",
|
|
373
|
+
"default": 100,
|
|
374
|
+
"defaultFrom": "desk"
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* The POST-stage make-up, in dB. Symmetric enough either way that an operator can null the stage in and out against the bypass, which is how a colour stage is actually judged.
|
|
379
|
+
* @see data/kernels/drive.json
|
|
380
|
+
*/
|
|
381
|
+
export const DRIVE_TRIM_RANGE = {
|
|
382
|
+
"min": -24,
|
|
383
|
+
"max": 12,
|
|
384
|
+
"step": 0.1,
|
|
385
|
+
"unit": "dB",
|
|
386
|
+
"default": 0,
|
|
387
|
+
"defaultFrom": "desk"
|
|
388
|
+
};
|
|
389
|
+
|
|
165
390
|
/**
|
|
166
391
|
* The maximum number of parametric bands a channel EQ may hold — the operator can add up to this many. Generated into `omx_contract_limits.h` as `OMX_EQ_MAX_BANDS`, which `omx_biquad.h` reads (`output-delay-ceiling.test.ts` reads the header): the native lane allocates exactly this many biquad slots per channel and silently clamps above it, so the model, the wire, and the DSP agree by test, not by memory.
|
|
167
392
|
* @see data/kernels/eq.json
|
|
@@ -212,6 +437,124 @@ export const ISO_THIRD_OCTAVE_CENTRES_HZ = [
|
|
|
212
437
|
*/
|
|
213
438
|
export const GEQ_BANDS = 31;
|
|
214
439
|
|
|
440
|
+
/**
|
|
441
|
+
* The frequency band a parametric band can be dragged across.
|
|
442
|
+
* @see data/kernels/eq.json
|
|
443
|
+
*/
|
|
444
|
+
export const EQ_FREQ_RANGE = {
|
|
445
|
+
"min": 20,
|
|
446
|
+
"max": 20000,
|
|
447
|
+
"step": 10,
|
|
448
|
+
"unit": "Hz"
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* The parametric-band gain travel, in dB. The ± scalar `clampEqGain` enforces is READ off this (`core/src/eq.ts` derives `EQ_GAIN_LIMIT_DB` from `max`), so the bound is stated once and a surface cannot draw a wider knob than the clamp will honour.
|
|
453
|
+
* @see data/kernels/eq.json
|
|
454
|
+
*/
|
|
455
|
+
export const EQ_GAIN_RANGE = {
|
|
456
|
+
"min": -15,
|
|
457
|
+
"max": 15,
|
|
458
|
+
"step": 0.5,
|
|
459
|
+
"unit": "dB"
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* The Q (resonance) extent of a parametric band.
|
|
464
|
+
* @see data/kernels/eq.json
|
|
465
|
+
*/
|
|
466
|
+
export const EQ_Q_RANGE = {
|
|
467
|
+
"min": 0.3,
|
|
468
|
+
"max": 8,
|
|
469
|
+
"step": 0.1,
|
|
470
|
+
"unit": ""
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* The Q extent of a NOTCH band. Wider than EQ_Q_RANGE on purpose (#116, operator decision): an ultra-narrow surgical cut is the notch shape's whole point — the FBS ring-out pool plants dbx-AFS-style ring killers at Q ≈ 116 (~1/80 octave), inaudible on program yet fatal to a single ringing frequency. Gain-carrying shapes stay bounded at EQ_Q_RANGE — a Q-116 bell is a resonator, not an EQ move.
|
|
475
|
+
* @see data/kernels/eq.json
|
|
476
|
+
*/
|
|
477
|
+
export const EQ_NOTCH_Q_RANGE = {
|
|
478
|
+
"min": 0.3,
|
|
479
|
+
"max": 116,
|
|
480
|
+
"step": 1,
|
|
481
|
+
"unit": ""
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Where the HPF cutoff can sit (low end); mirrors the drawn low-frequency handle.
|
|
486
|
+
* @see data/kernels/eq.json
|
|
487
|
+
*/
|
|
488
|
+
export const HPF_FREQ_RANGE = {
|
|
489
|
+
"min": 20,
|
|
490
|
+
"max": 1000,
|
|
491
|
+
"step": 10,
|
|
492
|
+
"unit": "Hz"
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Where the LPF cutoff can sit (high end).
|
|
497
|
+
* @see data/kernels/eq.json
|
|
498
|
+
*/
|
|
499
|
+
export const LPF_FREQ_RANGE = {
|
|
500
|
+
"min": 1000,
|
|
501
|
+
"max": 20000,
|
|
502
|
+
"step": 10,
|
|
503
|
+
"unit": "Hz"
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* The flanger's jet sweep (§3b).
|
|
508
|
+
* @see data/kernels/flanger.json
|
|
509
|
+
*/
|
|
510
|
+
export const FLANGER_RATE_RANGE = {
|
|
511
|
+
"min": 0.05,
|
|
512
|
+
"max": 5,
|
|
513
|
+
"step": 0.01,
|
|
514
|
+
"unit": "Hz",
|
|
515
|
+
"default": 0.25,
|
|
516
|
+
"defaultFrom": "desk"
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* The flanger's peak-to-peak excursion above its declared 0.5 ms base (§3b).
|
|
521
|
+
* @see data/kernels/flanger.json
|
|
522
|
+
*/
|
|
523
|
+
export const FLANGER_DEPTH_RANGE = {
|
|
524
|
+
"min": 0,
|
|
525
|
+
"max": 5,
|
|
526
|
+
"step": 0.1,
|
|
527
|
+
"unit": "ms",
|
|
528
|
+
"default": 2,
|
|
529
|
+
"defaultFrom": "desk"
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* The flanger's SIGNED resonance (§3b). The ±0.95 clamp is DECLARED here — a PATCH asking for 1.0 is answered by this travel — and the kernel's own clamp is the enforcement half.
|
|
534
|
+
* @see data/kernels/flanger.json
|
|
535
|
+
*/
|
|
536
|
+
export const FLANGER_FEEDBACK_RANGE = {
|
|
537
|
+
"min": -0.95,
|
|
538
|
+
"max": 0.95,
|
|
539
|
+
"step": 0.01,
|
|
540
|
+
"unit": "",
|
|
541
|
+
"default": 0.6,
|
|
542
|
+
"defaultFrom": "desk"
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* The flanger's wet/dry, as an instance of DRIVE_MIX_RANGE: 50 %, equal dry and wet, where the comb is deepest (§3b).
|
|
547
|
+
* @see data/kernels/flanger.json
|
|
548
|
+
*/
|
|
549
|
+
export const FLANGER_MIX_RANGE = {
|
|
550
|
+
"min": 0,
|
|
551
|
+
"max": 100,
|
|
552
|
+
"step": 0.1,
|
|
553
|
+
"unit": "%",
|
|
554
|
+
"default": 50,
|
|
555
|
+
"defaultFrom": "desk"
|
|
556
|
+
};
|
|
557
|
+
|
|
215
558
|
/**
|
|
216
559
|
* The legal range of each gate field (engineering units). The widget clamps drags to these, `normalizeGate` enforces them, the row's codec refuses by them and the travel sheet publishes them — one source of truth. `rangeDb` reaches GATE_RANGE_FLOOR_DB, shown as "−∞" in readouts (a gate fully closed is silence).
|
|
217
560
|
* @see data/kernels/gate.json
|
|
@@ -291,6 +634,37 @@ export const GATE_LIMITS = {
|
|
|
291
634
|
}
|
|
292
635
|
};
|
|
293
636
|
|
|
637
|
+
/**
|
|
638
|
+
* One graphic-EQ fader's travel: EQ_GAIN_RANGE by reference (a graphic fader is an EQ gain), with the come-up value it needs as a row field — flat, 0 dB (graphic-eq-31 spec §3).
|
|
639
|
+
* @see data/kernels/geq.json
|
|
640
|
+
*/
|
|
641
|
+
export const GEQ_BAND_RANGE = {
|
|
642
|
+
"min": -15,
|
|
643
|
+
"max": 15,
|
|
644
|
+
"step": 0.5,
|
|
645
|
+
"unit": "dB",
|
|
646
|
+
"default": 0,
|
|
647
|
+
"defaultFrom": "desk"
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* The graphic EQ's band Q: the ISO third-octave bandwidth, `2^(1/6)/(2^(1/3) − 1) ≈ 4.318`, to one decimal as the M32 GEQ carries it. Read by the `geq31` preset and the graphic EQ's section design (graphic-eq-31 spec §3).
|
|
652
|
+
* @see data/kernels/geq.json
|
|
653
|
+
*/
|
|
654
|
+
export const GEQ_BAND_Q = 4.3;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* The prototype gain the `true` solve's first interaction matrix is evaluated at (spec §2, §3): the middle of the travel's magnitude, where a matched-Z section's dB response per dB of gain is closest to its average.
|
|
658
|
+
* @see data/kernels/geq.json
|
|
659
|
+
*/
|
|
660
|
+
export const GEQ_PROTO_DB = 12;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* The ceiling on a section gain the `true` solve may ask for (spec §3): above the travel's worst case (26.0 dB, the alternating ±15 set) with margin. A solve past it clamps and the row says so (`designClamped`), never silently.
|
|
664
|
+
* @see data/kernels/geq.json
|
|
665
|
+
*/
|
|
666
|
+
export const GEQ_DESIGN_GAIN_MAX_DB = 30;
|
|
667
|
+
|
|
294
668
|
/**
|
|
295
669
|
* The precision limiter's travels (`2026-09-27-precision-limiter.md` §2), rendered into `omx_contract_limits.h` as `OMX_LIMITER_*` by `harness/contract-limits-gen.mjs`, so `mix_limiter.h` reads them and never restates one (R-094). The ceiling is a TRUE peak in dBFS (the ×4 detector); the look-ahead sets the declared latency; the release is the envelope's time constant on the gain depth.
|
|
296
670
|
* @see data/kernels/limiter.json
|
|
@@ -323,57 +697,567 @@ export const LIMITER_LIMITS = {
|
|
|
323
697
|
};
|
|
324
698
|
|
|
325
699
|
/**
|
|
326
|
-
*
|
|
327
|
-
* @see data/kernels/
|
|
700
|
+
* The phaser's sweep speed (§3). `omx_lfo_inc` freezes at Nyquist; this travel stays far below.
|
|
701
|
+
* @see data/kernels/phaser.json
|
|
328
702
|
*/
|
|
329
|
-
export const
|
|
330
|
-
"
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
"
|
|
336
|
-
"min": -50,
|
|
337
|
-
"max": 50,
|
|
338
|
-
"default": 0
|
|
339
|
-
},
|
|
340
|
-
"mix": {
|
|
341
|
-
"min": 0,
|
|
342
|
-
"max": 100,
|
|
343
|
-
"default": 100
|
|
344
|
-
}
|
|
703
|
+
export const PHASER_RATE_RANGE = {
|
|
704
|
+
"min": 0.05,
|
|
705
|
+
"max": 5,
|
|
706
|
+
"step": 0.01,
|
|
707
|
+
"unit": "Hz",
|
|
708
|
+
"default": 0.5,
|
|
709
|
+
"defaultFrom": "desk"
|
|
345
710
|
};
|
|
346
711
|
|
|
347
712
|
/**
|
|
348
|
-
*
|
|
349
|
-
* @see data/kernels/
|
|
713
|
+
* The phaser's lowest centre frequency; the sweep runs upward from it (§3).
|
|
714
|
+
* @see data/kernels/phaser.json
|
|
350
715
|
*/
|
|
351
|
-
export const
|
|
352
|
-
"
|
|
353
|
-
"
|
|
354
|
-
"
|
|
716
|
+
export const PHASER_BASE_RANGE = {
|
|
717
|
+
"min": 50,
|
|
718
|
+
"max": 2000,
|
|
719
|
+
"step": 1,
|
|
720
|
+
"unit": "Hz",
|
|
721
|
+
"default": 200,
|
|
722
|
+
"defaultFrom": "desk"
|
|
355
723
|
};
|
|
356
724
|
|
|
357
725
|
/**
|
|
358
|
-
*
|
|
359
|
-
* @see data/kernels/
|
|
726
|
+
* The sweep's span above `base`, in octaves; 0 is a static phaser at `base` (§3).
|
|
727
|
+
* @see data/kernels/phaser.json
|
|
360
728
|
*/
|
|
361
|
-
export const
|
|
729
|
+
export const PHASER_DEPTH_RANGE = {
|
|
362
730
|
"min": 0,
|
|
363
|
-
"max":
|
|
364
|
-
"step": 1,
|
|
731
|
+
"max": 6,
|
|
732
|
+
"step": 0.1,
|
|
733
|
+
"unit": "oct",
|
|
734
|
+
"default": 4,
|
|
735
|
+
"defaultFrom": "desk"
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* The phaser's section count per leg — EVEN, 2 … 12 (§2: two sections per notch). Its ends are the kernel's state capacity (`OMX_PHASER_MAX_STAGES` reads `OMX_PHASER_STAGES_RANGE_MAX`); the row moves it through the closed member set PHASER_STAGE_COUNTS, which is derived from it.
|
|
740
|
+
* @see data/kernels/phaser.json
|
|
741
|
+
*/
|
|
742
|
+
export const PHASER_STAGES_RANGE = {
|
|
743
|
+
"min": 2,
|
|
744
|
+
"max": 12,
|
|
745
|
+
"step": 2,
|
|
746
|
+
"unit": "",
|
|
747
|
+
"default": 6,
|
|
748
|
+
"defaultFrom": "desk"
|
|
749
|
+
};
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* The member set the `stages` field accepts: PHASER_STAGES_RANGE walked by its step.
|
|
753
|
+
* @see data/kernels/phaser.json
|
|
754
|
+
*/
|
|
755
|
+
export const PHASER_STAGE_COUNTS = [
|
|
756
|
+
2,
|
|
757
|
+
4,
|
|
758
|
+
6,
|
|
759
|
+
8,
|
|
760
|
+
10,
|
|
761
|
+
12
|
|
762
|
+
];
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* The phaser's SIGNED resonance (§3). ±0.9, tighter than the flanger's ±0.95: the loop runs through a time-varying chain. Declared here (the refusal half); the kernel's clamp is the enforcement half.
|
|
766
|
+
* @see data/kernels/phaser.json
|
|
767
|
+
*/
|
|
768
|
+
export const PHASER_FEEDBACK_RANGE = {
|
|
769
|
+
"min": -0.9,
|
|
770
|
+
"max": 0.9,
|
|
771
|
+
"step": 0.01,
|
|
772
|
+
"unit": "",
|
|
773
|
+
"default": 0.4,
|
|
774
|
+
"defaultFrom": "desk"
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* The phaser's wet/dry, as an instance of DRIVE_MIX_RANGE: 50 %, where the notch is complete (§3).
|
|
779
|
+
* @see data/kernels/phaser.json
|
|
780
|
+
*/
|
|
781
|
+
export const PHASER_MIX_RANGE = {
|
|
782
|
+
"min": 0,
|
|
783
|
+
"max": 100,
|
|
784
|
+
"step": 0.1,
|
|
365
785
|
"unit": "%",
|
|
366
|
-
"default":
|
|
786
|
+
"default": 50,
|
|
367
787
|
"defaultFrom": "desk"
|
|
368
788
|
};
|
|
369
789
|
|
|
370
790
|
/**
|
|
371
|
-
* The
|
|
372
|
-
* @see data/kernels/
|
|
791
|
+
* The phaser's continuous travels by row field — the ONE map its control bounds and its row travels both read (§3). `stages` is not here: it moves through PHASER_STAGE_COUNTS.
|
|
792
|
+
* @see data/kernels/phaser.json
|
|
373
793
|
*/
|
|
374
|
-
export const
|
|
375
|
-
"
|
|
376
|
-
"min":
|
|
794
|
+
export const PHASER_TRAVELS = {
|
|
795
|
+
"rateHz": {
|
|
796
|
+
"min": 0.05,
|
|
797
|
+
"max": 5,
|
|
798
|
+
"step": 0.01,
|
|
799
|
+
"unit": "Hz",
|
|
800
|
+
"default": 0.5,
|
|
801
|
+
"defaultFrom": "desk"
|
|
802
|
+
},
|
|
803
|
+
"baseHz": {
|
|
804
|
+
"min": 50,
|
|
805
|
+
"max": 2000,
|
|
806
|
+
"step": 1,
|
|
807
|
+
"unit": "Hz",
|
|
808
|
+
"default": 200,
|
|
809
|
+
"defaultFrom": "desk"
|
|
810
|
+
},
|
|
811
|
+
"depthOct": {
|
|
812
|
+
"min": 0,
|
|
813
|
+
"max": 6,
|
|
814
|
+
"step": 0.1,
|
|
815
|
+
"unit": "oct",
|
|
816
|
+
"default": 4,
|
|
817
|
+
"defaultFrom": "desk"
|
|
818
|
+
},
|
|
819
|
+
"feedback": {
|
|
820
|
+
"min": -0.9,
|
|
821
|
+
"max": 0.9,
|
|
822
|
+
"step": 0.01,
|
|
823
|
+
"unit": "",
|
|
824
|
+
"default": 0.4,
|
|
825
|
+
"defaultFrom": "desk"
|
|
826
|
+
},
|
|
827
|
+
"mix": {
|
|
828
|
+
"min": 0,
|
|
829
|
+
"max": 100,
|
|
830
|
+
"step": 0.1,
|
|
831
|
+
"unit": "%",
|
|
832
|
+
"default": 50,
|
|
833
|
+
"defaultFrom": "desk"
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* PITCH_LIMITS, moved from openmixer.
|
|
839
|
+
* @see data/kernels/pitch.json
|
|
840
|
+
*/
|
|
841
|
+
export const PITCH_LIMITS = {
|
|
842
|
+
"semitones": {
|
|
843
|
+
"min": -12,
|
|
844
|
+
"max": 12,
|
|
845
|
+
"default": 0
|
|
846
|
+
},
|
|
847
|
+
"cents": {
|
|
848
|
+
"min": -50,
|
|
849
|
+
"max": 50,
|
|
850
|
+
"default": 0
|
|
851
|
+
},
|
|
852
|
+
"mix": {
|
|
853
|
+
"min": 0,
|
|
854
|
+
"max": 100,
|
|
855
|
+
"default": 100
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* PITCH_KERNEL, moved from openmixer.
|
|
861
|
+
* @see data/kernels/pitch.json
|
|
862
|
+
*/
|
|
863
|
+
export const PITCH_KERNEL = {
|
|
864
|
+
"windowMs": 40,
|
|
865
|
+
"prefilterCeilingHz": 20000,
|
|
866
|
+
"prefilterQ": 0.7071067811865476
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* PLATE's tank MODULATION DEPTH, in percent of Dattorro's own excursion (±8 samples at his 29 761 Hz tuning rate, scaled to the live rate the way the tank lengths are). 100 is the depth the plate has always run at, so the come-up is bit-identical to the plate before the field; 0 brings back the unmodulated tank's ring; 400 is the wide, chorused EMT-style swing. The rate stays 1 Hz. Only PLATE reads it (`2026-09-26-native-fx-catalogue.md` §2, Reverb).
|
|
871
|
+
* @see data/kernels/reverb.json
|
|
872
|
+
*/
|
|
873
|
+
export const REVERB_PLATE_MOD_DEPTH_RANGE = {
|
|
874
|
+
"min": 0,
|
|
875
|
+
"max": 400,
|
|
876
|
+
"step": 1,
|
|
877
|
+
"unit": "%",
|
|
878
|
+
"default": 100,
|
|
879
|
+
"defaultFrom": "desk"
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* The REVERB's wet/dry. An insert keeps the dry signal (0.3); an `fxReturn` is wet-only (1), so the return carries only the effect. Both numbers live HERE and nowhere else: the row's `mix` limit, `ReverbController`'s seed and its fresh state read them through limitForKind.
|
|
884
|
+
* @see data/kernels/reverb.json
|
|
885
|
+
*/
|
|
886
|
+
export const REVERB_MIX_RANGE = {
|
|
887
|
+
"min": 0,
|
|
888
|
+
"max": 1,
|
|
889
|
+
"step": 0,
|
|
890
|
+
"unit": "",
|
|
891
|
+
"default": 0.3,
|
|
892
|
+
"defaultFrom": "desk",
|
|
893
|
+
"byKind": {
|
|
894
|
+
"fxReturn": 1
|
|
895
|
+
}
|
|
896
|
+
};
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* The reverb's SIZE/DAMPING/WIDTH — each a NORMALIZED_RANGE instance with its own come-up value, matching `DEFAULT_REVERB_STATE`. Three separate constants rather than one shared default on `NORMALIZED_RANGE`: that range is the bare 0..1 REPRESENTATION, reused by fields across the whole console whose come-up values disagree (a fader position is not a reverb's damping), so a default belongs on the NAMED field, never on the shape it borrows.
|
|
900
|
+
* @see data/kernels/reverb.json
|
|
901
|
+
*/
|
|
902
|
+
export const REVERB_SIZE_RANGE = {
|
|
903
|
+
"min": 0,
|
|
904
|
+
"max": 1,
|
|
905
|
+
"step": 0,
|
|
906
|
+
"unit": "",
|
|
907
|
+
"default": 0.7,
|
|
908
|
+
"defaultFrom": "desk"
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* The reverb's DAMPING — a NORMALIZED_RANGE instance with its own come-up value, matching `DEFAULT_REVERB_STATE`. Declared with SIZE and WIDTH (see REVERB_SIZE_RANGE for why each is a named constant rather than a default on the shared 0..1 shape).
|
|
913
|
+
* @see data/kernels/reverb.json
|
|
914
|
+
*/
|
|
915
|
+
export const REVERB_DAMPING_RANGE = {
|
|
916
|
+
"min": 0,
|
|
917
|
+
"max": 1,
|
|
918
|
+
"step": 0,
|
|
919
|
+
"unit": "",
|
|
920
|
+
"default": 0.5,
|
|
921
|
+
"defaultFrom": "desk"
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* The reverb's stereo WIDTH — a NORMALIZED_RANGE instance with its own come-up value, matching `DEFAULT_REVERB_STATE`. Declared with SIZE and DAMPING (see REVERB_SIZE_RANGE for why each is a named constant rather than a default on the shared 0..1 shape).
|
|
926
|
+
* @see data/kernels/reverb.json
|
|
927
|
+
*/
|
|
928
|
+
export const REVERB_WIDTH_RANGE = {
|
|
929
|
+
"min": 0,
|
|
930
|
+
"max": 1,
|
|
931
|
+
"step": 0,
|
|
932
|
+
"unit": "",
|
|
933
|
+
"default": 1,
|
|
934
|
+
"defaultFrom": "desk"
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* The reverb's PRE-DELAY travel — the gap before the first reflection, in milliseconds. Declared here so the unit crosses with the bounds: a `finiteNumber(0, 100)` codec publishes `unit: ''`, and a surface binding that draws a millisecond control it cannot label. The panel knowing better than the wire is the wrong way round.
|
|
939
|
+
* @see data/kernels/reverb.json
|
|
940
|
+
*/
|
|
941
|
+
export const REVERB_PREDELAY_RANGE = {
|
|
942
|
+
"min": 0,
|
|
943
|
+
"max": 100,
|
|
944
|
+
"step": 1,
|
|
945
|
+
"unit": "ms",
|
|
946
|
+
"default": 0,
|
|
947
|
+
"defaultFrom": "desk"
|
|
948
|
+
};
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* The reverb's LOW cut, as an instance of REVERB_CUT_RANGE — same bounds, its own come-up value. `0` reads as "none" (`mix_reverb.h`), which is also `DEFAULT_REVERB_STATE`'s seed, so a fresh reverb's low cut and its declared default are the same fact stated once. Split from REVERB_CUT_RANGE rather than adding `default` there: the low and high cut share ONE travel (the C imposes one constraint on both) but do NOT share one come-up value, and a `default` on the shared range could only be honest for one of the two fields that read it.
|
|
952
|
+
* @see data/kernels/reverb.json
|
|
953
|
+
*/
|
|
954
|
+
export const REVERB_LOWCUT_RANGE = {
|
|
955
|
+
"min": 0,
|
|
956
|
+
"max": 20000,
|
|
957
|
+
"step": 10,
|
|
958
|
+
"unit": "Hz",
|
|
959
|
+
"default": 0,
|
|
960
|
+
"defaultFrom": "desk"
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* The reverb's HIGH cut, as an instance of REVERB_CUT_RANGE — same bounds, its own come-up value. The top of the travel reads as "open" (`mix_reverb.h`), matching `DEFAULT_REVERB_STATE`'s seed.
|
|
965
|
+
* @see data/kernels/reverb.json
|
|
966
|
+
*/
|
|
967
|
+
export const REVERB_HIGHCUT_RANGE = {
|
|
968
|
+
"min": 0,
|
|
969
|
+
"max": 20000,
|
|
970
|
+
"step": 10,
|
|
971
|
+
"unit": "Hz",
|
|
972
|
+
"default": 20000,
|
|
973
|
+
"defaultFrom": "desk"
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* REVERSE's MIRROR WINDOW — how long a slice of the wet is played backward, in milliseconds (`2026-07-15-native-delay-reverb.md`, Amendment 2026-09-17 §B). A DECLARED travel and never derived from `size`'s RT60: an RT60 of seconds cannot be buffered at 192 kHz, and a window silently clamped to fit is the silent-clamp defect. The ceiling is what `mix_reverb.h`'s pool budgets a ring for (`OMX_REVERB_REVERSE_MAX_MS`), so the console offers exactly the travel the kernel accepts — nothing wider, nothing narrower.
|
|
978
|
+
* @see data/kernels/reverb.json
|
|
979
|
+
*/
|
|
980
|
+
export const REVERB_REVERSE_RANGE = {
|
|
981
|
+
"min": 50,
|
|
982
|
+
"max": 500,
|
|
983
|
+
"step": 10,
|
|
984
|
+
"unit": "ms",
|
|
985
|
+
"default": 300,
|
|
986
|
+
"defaultFrom": "desk"
|
|
987
|
+
};
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* GATED's HOLD — how long the wet stays at full level after the key falls away, in milliseconds. The Phil-Collins tail is cut where the operator puts the cut, so this is the control that decides the effect's length; `size` still decides what is being cut off.
|
|
991
|
+
* @see data/kernels/reverb.json
|
|
992
|
+
*/
|
|
993
|
+
export const REVERB_HOLD_RANGE = {
|
|
994
|
+
"min": 10,
|
|
995
|
+
"max": 2000,
|
|
996
|
+
"step": 10,
|
|
997
|
+
"unit": "ms",
|
|
998
|
+
"default": 120,
|
|
999
|
+
"defaultFrom": "desk"
|
|
1000
|
+
};
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* GATED's RELEASE — how long the held wet takes to reach zero, in milliseconds. A straight line down, short by design: a long release is a reverb tail again, which is the thing a gated reverb exists to remove.
|
|
1004
|
+
* @see data/kernels/reverb.json
|
|
1005
|
+
*/
|
|
1006
|
+
export const REVERB_RELEASE_RANGE = {
|
|
1007
|
+
"min": 1,
|
|
1008
|
+
"max": 500,
|
|
1009
|
+
"step": 1,
|
|
1010
|
+
"unit": "ms",
|
|
1011
|
+
"default": 20,
|
|
1012
|
+
"defaultFrom": "desk"
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* GATED's ARM THRESHOLD — the level the reverb's own mono feed must reach to arm the hold, in dBFS. Declared, because the alternative is a hidden onset detector: the kernel compares `|input|` against exactly this number and nothing else.
|
|
1017
|
+
* @see data/kernels/reverb.json
|
|
1018
|
+
*/
|
|
1019
|
+
export const REVERB_GATE_THRESHOLD_RANGE = {
|
|
1020
|
+
"min": -80,
|
|
1021
|
+
"max": 0,
|
|
1022
|
+
"step": 1,
|
|
1023
|
+
"unit": "dBFS",
|
|
1024
|
+
"default": -40,
|
|
1025
|
+
"defaultFrom": "desk"
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* The horn's chorale (slow) rate, Hz.
|
|
1030
|
+
* @see data/kernels/rotary.json
|
|
1031
|
+
*/
|
|
1032
|
+
export const ROTARY_HORN_SLOW_RANGE = {
|
|
1033
|
+
"min": 0.1,
|
|
1034
|
+
"max": 2,
|
|
1035
|
+
"step": 0.01,
|
|
1036
|
+
"unit": "Hz",
|
|
1037
|
+
"default": 0.8,
|
|
1038
|
+
"defaultFrom": "desk"
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* The horn's tremolo (fast) rate, Hz.
|
|
1043
|
+
* @see data/kernels/rotary.json
|
|
1044
|
+
*/
|
|
1045
|
+
export const ROTARY_HORN_FAST_RANGE = {
|
|
1046
|
+
"min": 3,
|
|
1047
|
+
"max": 10,
|
|
1048
|
+
"step": 0.01,
|
|
1049
|
+
"unit": "Hz",
|
|
1050
|
+
"default": 6.8,
|
|
1051
|
+
"defaultFrom": "desk"
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* The drum's chorale (slow) rate, Hz.
|
|
1056
|
+
* @see data/kernels/rotary.json
|
|
1057
|
+
*/
|
|
1058
|
+
export const ROTARY_DRUM_SLOW_RANGE = {
|
|
1059
|
+
"min": 0.1,
|
|
1060
|
+
"max": 2,
|
|
1061
|
+
"step": 0.01,
|
|
1062
|
+
"unit": "Hz",
|
|
1063
|
+
"default": 0.7,
|
|
1064
|
+
"defaultFrom": "desk"
|
|
1065
|
+
};
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* The drum's tremolo (fast) rate, Hz.
|
|
1069
|
+
* @see data/kernels/rotary.json
|
|
1070
|
+
*/
|
|
1071
|
+
export const ROTARY_DRUM_FAST_RANGE = {
|
|
1072
|
+
"min": 3,
|
|
1073
|
+
"max": 10,
|
|
1074
|
+
"step": 0.01,
|
|
1075
|
+
"unit": "Hz",
|
|
1076
|
+
"default": 5.9,
|
|
1077
|
+
"defaultFrom": "desk"
|
|
1078
|
+
};
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* The scale on every speed-change time constant (`ROTARY_*_ACCEL_MS`/`_DECEL_MS`): 2 is twice as slow.
|
|
1082
|
+
* @see data/kernels/rotary.json
|
|
1083
|
+
*/
|
|
1084
|
+
export const ROTARY_ACCEL_RANGE = {
|
|
1085
|
+
"min": 0.25,
|
|
1086
|
+
"max": 4,
|
|
1087
|
+
"step": 0.01,
|
|
1088
|
+
"unit": "x",
|
|
1089
|
+
"default": 1,
|
|
1090
|
+
"defaultFrom": "desk"
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* The drum/horn balance, percent: −100 drum only, +100 horn only; the law attenuates, never boosts.
|
|
1095
|
+
* @see data/kernels/rotary.json
|
|
1096
|
+
*/
|
|
1097
|
+
export const ROTARY_BALANCE_RANGE = {
|
|
1098
|
+
"min": -100,
|
|
1099
|
+
"max": 100,
|
|
1100
|
+
"step": 1,
|
|
1101
|
+
"unit": "%",
|
|
1102
|
+
"default": 0,
|
|
1103
|
+
"defaultFrom": "desk"
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* The rotary's wet/dry, as an instance of DRIVE_MIX_RANGE: 100 %, because a rotary on an insert IS the sound (it replaces the cabinet) and an `fxReturn` wants it wet too (§3).
|
|
1108
|
+
* @see data/kernels/rotary.json
|
|
1109
|
+
*/
|
|
1110
|
+
export const ROTARY_MIX_RANGE = {
|
|
1111
|
+
"min": 0,
|
|
1112
|
+
"max": 100,
|
|
1113
|
+
"step": 0.1,
|
|
1114
|
+
"unit": "%",
|
|
1115
|
+
"default": 100,
|
|
1116
|
+
"defaultFrom": "desk"
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* The rotary's numeric travels, field → declaration: the ONE map the row's state, its bounds, its OPTIONS and its controller read (`speed` is a member set, ROTARY_SPEEDS, beside it).
|
|
1121
|
+
* @see data/kernels/rotary.json
|
|
1122
|
+
*/
|
|
1123
|
+
export const ROTARY_TRAVELS = {
|
|
1124
|
+
"hornSlowHz": {
|
|
1125
|
+
"min": 0.1,
|
|
1126
|
+
"max": 2,
|
|
1127
|
+
"step": 0.01,
|
|
1128
|
+
"unit": "Hz",
|
|
1129
|
+
"default": 0.8,
|
|
1130
|
+
"defaultFrom": "desk"
|
|
1131
|
+
},
|
|
1132
|
+
"hornFastHz": {
|
|
1133
|
+
"min": 3,
|
|
1134
|
+
"max": 10,
|
|
1135
|
+
"step": 0.01,
|
|
1136
|
+
"unit": "Hz",
|
|
1137
|
+
"default": 6.8,
|
|
1138
|
+
"defaultFrom": "desk"
|
|
1139
|
+
},
|
|
1140
|
+
"drumSlowHz": {
|
|
1141
|
+
"min": 0.1,
|
|
1142
|
+
"max": 2,
|
|
1143
|
+
"step": 0.01,
|
|
1144
|
+
"unit": "Hz",
|
|
1145
|
+
"default": 0.7,
|
|
1146
|
+
"defaultFrom": "desk"
|
|
1147
|
+
},
|
|
1148
|
+
"drumFastHz": {
|
|
1149
|
+
"min": 3,
|
|
1150
|
+
"max": 10,
|
|
1151
|
+
"step": 0.01,
|
|
1152
|
+
"unit": "Hz",
|
|
1153
|
+
"default": 5.9,
|
|
1154
|
+
"defaultFrom": "desk"
|
|
1155
|
+
},
|
|
1156
|
+
"accel": {
|
|
1157
|
+
"min": 0.25,
|
|
1158
|
+
"max": 4,
|
|
1159
|
+
"step": 0.01,
|
|
1160
|
+
"unit": "x",
|
|
1161
|
+
"default": 1,
|
|
1162
|
+
"defaultFrom": "desk"
|
|
1163
|
+
},
|
|
1164
|
+
"balance": {
|
|
1165
|
+
"min": -100,
|
|
1166
|
+
"max": 100,
|
|
1167
|
+
"step": 1,
|
|
1168
|
+
"unit": "%",
|
|
1169
|
+
"default": 0,
|
|
1170
|
+
"defaultFrom": "desk"
|
|
1171
|
+
},
|
|
1172
|
+
"mix": {
|
|
1173
|
+
"min": 0,
|
|
1174
|
+
"max": 100,
|
|
1175
|
+
"step": 0.1,
|
|
1176
|
+
"unit": "%",
|
|
1177
|
+
"default": 100,
|
|
1178
|
+
"defaultFrom": "desk"
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* The complementary split's low-pass corner, Hz: the Leslie 122's passive crossover.
|
|
1184
|
+
* @see data/kernels/rotary.json
|
|
1185
|
+
*/
|
|
1186
|
+
export const ROTARY_CROSSOVER_HZ = 800;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* The shortest Doppler read, ms — above the order-3 read's one-sample reach at every rate.
|
|
1190
|
+
* @see data/kernels/rotary.json
|
|
1191
|
+
*/
|
|
1192
|
+
export const ROTARY_BASE_MS = 0.1;
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* The horn's Doppler excursion `D_horn`, ms: a 0.15 m radius over 343 m/s.
|
|
1196
|
+
* @see data/kernels/rotary.json
|
|
1197
|
+
*/
|
|
1198
|
+
export const ROTARY_HORN_DOPPLER_MS = 0.44;
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* The drum's Doppler excursion `D_drum`, ms: its baffle turns over a fixed woofer.
|
|
1202
|
+
* @see data/kernels/rotary.json
|
|
1203
|
+
*/
|
|
1204
|
+
export const ROTARY_DRUM_DOPPLER_MS = 0.29;
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* The horn's amplitude swing `m_horn` (a −6 dB directivity dip), a ratio.
|
|
1208
|
+
* @see data/kernels/rotary.json
|
|
1209
|
+
*/
|
|
1210
|
+
export const ROTARY_HORN_AM = 0.5;
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* The drum baffle's amplitude swing `m_drum`, a ratio.
|
|
1214
|
+
* @see data/kernels/rotary.json
|
|
1215
|
+
*/
|
|
1216
|
+
export const ROTARY_DRUM_AM = 0.3;
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* The horn rotor's speed-up time constant, ms (at `accel` 1).
|
|
1220
|
+
* @see data/kernels/rotary.json
|
|
1221
|
+
*/
|
|
1222
|
+
export const ROTARY_HORN_ACCEL_MS = 330;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* The horn rotor's slow-down time constant, ms (at `accel` 1).
|
|
1226
|
+
* @see data/kernels/rotary.json
|
|
1227
|
+
*/
|
|
1228
|
+
export const ROTARY_HORN_DECEL_MS = 500;
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* The drum rotor's speed-up time constant, ms (at `accel` 1).
|
|
1232
|
+
* @see data/kernels/rotary.json
|
|
1233
|
+
*/
|
|
1234
|
+
export const ROTARY_DRUM_ACCEL_MS = 1700;
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* The drum rotor's slow-down time constant, ms (at `accel` 1).
|
|
1238
|
+
* @see data/kernels/rotary.json
|
|
1239
|
+
*/
|
|
1240
|
+
export const ROTARY_DRUM_DECEL_MS = 1800;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Below this rate, Hz, a rotor coasting toward `stop` is snapped to exactly 0.
|
|
1244
|
+
* @see data/kernels/rotary.json
|
|
1245
|
+
*/
|
|
1246
|
+
export const ROTARY_STOP_EPS = 0.0001;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* One inline ring per rotor per leg, floats — at least the 192 kHz need of the horn's sweep.
|
|
1250
|
+
* @see data/kernels/rotary.json
|
|
1251
|
+
*/
|
|
1252
|
+
export const ROTARY_RING_FLOATS = 256;
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* The legal range of each transient-designer field (engineering units), transient spec §3. Every kind comes up flat: no per-kind default differs. `harness/contract-limits-gen.mjs` emits each as `OMX_TRANSIENT_<FIELD>_{MIN,MAX,DEFAULT}` for `mix_transient.h`'s resolve; the row publishes them on OPTIONS when it lands (issue #921).
|
|
1256
|
+
* @see data/kernels/transient.json
|
|
1257
|
+
*/
|
|
1258
|
+
export const TRANSIENT_LIMITS = {
|
|
1259
|
+
"attackDb": {
|
|
1260
|
+
"min": -24,
|
|
377
1261
|
"max": 24,
|
|
378
1262
|
"step": 0.1,
|
|
379
1263
|
"unit": "dB",
|
|
@@ -439,62 +1323,73 @@ export const TRANSIENT_REF_DB = 6;
|
|
|
439
1323
|
export const TRANSIENT_FLOOR_LIN = 0.00001;
|
|
440
1324
|
|
|
441
1325
|
/**
|
|
442
|
-
* The
|
|
443
|
-
*
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
"
|
|
449
|
-
"
|
|
450
|
-
"
|
|
451
|
-
"
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
1326
|
+
* The tremolo's LFO rate (the catalogue row's 0.1..20 Hz); 4 Hz is the classic amp tremolo.
|
|
1327
|
+
* @see data/kernels/tremolo.json
|
|
1328
|
+
*/
|
|
1329
|
+
export const TREMOLO_RATE_RANGE = {
|
|
1330
|
+
"min": 0.1,
|
|
1331
|
+
"max": 20,
|
|
1332
|
+
"step": 0.01,
|
|
1333
|
+
"unit": "Hz",
|
|
1334
|
+
"default": 4,
|
|
1335
|
+
"defaultFrom": "desk"
|
|
1336
|
+
};
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* The tremolo's modulation depth: the gain's trough is `1 − mix·depth`.
|
|
1340
|
+
* @see data/kernels/tremolo.json
|
|
1341
|
+
*/
|
|
1342
|
+
export const TREMOLO_DEPTH_RANGE = {
|
|
1343
|
+
"min": 0,
|
|
1344
|
+
"max": 100,
|
|
1345
|
+
"step": 0.1,
|
|
1346
|
+
"unit": "%",
|
|
1347
|
+
"default": 50,
|
|
1348
|
+
"defaultFrom": "desk"
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* The tremolo's wet/dry, as an instance of DRIVE_MIX_RANGE: 100 %. The kernel folds the wet/dry into its one gain, so a strip tremolo IS the sound (as the rotary's mix 100 % is).
|
|
1353
|
+
* @see data/kernels/tremolo.json
|
|
1354
|
+
*/
|
|
1355
|
+
export const TREMOLO_MIX_RANGE = {
|
|
1356
|
+
"min": 0,
|
|
1357
|
+
"max": 100,
|
|
1358
|
+
"step": 0.1,
|
|
1359
|
+
"unit": "%",
|
|
1360
|
+
"default": 100,
|
|
1361
|
+
"defaultFrom": "desk"
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* The tremolo's numeric travels, field → declaration: the ONE map the row's state, its bounds, its OPTIONS and its controller read (`mode` is a member set, TREMOLO_MODES, beside it).
|
|
1366
|
+
* @see data/kernels/tremolo.json
|
|
1367
|
+
*/
|
|
1368
|
+
export const TREMOLO_TRAVELS = {
|
|
1369
|
+
"rateHz": {
|
|
1370
|
+
"min": 0.1,
|
|
1371
|
+
"max": 20,
|
|
1372
|
+
"step": 0.01,
|
|
1373
|
+
"unit": "Hz",
|
|
1374
|
+
"default": 4,
|
|
1375
|
+
"defaultFrom": "desk"
|
|
1376
|
+
},
|
|
1377
|
+
"depth": {
|
|
1378
|
+
"min": 0,
|
|
1379
|
+
"max": 100,
|
|
1380
|
+
"step": 0.1,
|
|
1381
|
+
"unit": "%",
|
|
1382
|
+
"default": 50,
|
|
1383
|
+
"defaultFrom": "desk"
|
|
1384
|
+
},
|
|
1385
|
+
"mix": {
|
|
1386
|
+
"min": 0,
|
|
1387
|
+
"max": 100,
|
|
1388
|
+
"step": 0.1,
|
|
1389
|
+
"unit": "%",
|
|
1390
|
+
"default": 100,
|
|
1391
|
+
"defaultFrom": "desk"
|
|
1392
|
+
}
|
|
498
1393
|
};
|
|
499
1394
|
|
|
500
1395
|
/**
|
|
@@ -533,6 +1428,83 @@ export const FDELAY_MOD_READ_ORDER = 3;
|
|
|
533
1428
|
*/
|
|
534
1429
|
export const FDELAY_READ_L1_NORM = 1.25;
|
|
535
1430
|
|
|
1431
|
+
/**
|
|
1432
|
+
* The gate's threshold, range, release and ratio as a plugin host draws them: GATE_LIMITS' bounds, units and defaults with no step. The console's row quantises these four to whole steps (1 dB, 10 ms, 1:1), and a travel whose step is 1 or more reads as an integer control; the omx-strip plugin has always offered them continuous, so it reads this table instead. Every number but the step is GATE_LIMITS', held equal by test/continuous-travels.test.mjs. Not rendered to C: no C reader needs a second spelling of the gate's bounds.
|
|
1433
|
+
* @see data/primitives.json
|
|
1434
|
+
*/
|
|
1435
|
+
export const GATE_CONTINUOUS_TRAVELS = {
|
|
1436
|
+
"thresholdDb": {
|
|
1437
|
+
"min": -80,
|
|
1438
|
+
"max": 0,
|
|
1439
|
+
"step": 0,
|
|
1440
|
+
"unit": "dB",
|
|
1441
|
+
"default": -40,
|
|
1442
|
+
"defaultFrom": "desk"
|
|
1443
|
+
},
|
|
1444
|
+
"rangeDb": {
|
|
1445
|
+
"min": -90,
|
|
1446
|
+
"max": 0,
|
|
1447
|
+
"step": 0,
|
|
1448
|
+
"unit": "dB",
|
|
1449
|
+
"default": -90,
|
|
1450
|
+
"defaultFrom": "desk"
|
|
1451
|
+
},
|
|
1452
|
+
"releaseMs": {
|
|
1453
|
+
"min": 0,
|
|
1454
|
+
"max": 5000,
|
|
1455
|
+
"step": 0,
|
|
1456
|
+
"unit": "ms",
|
|
1457
|
+
"default": 100,
|
|
1458
|
+
"defaultFrom": "desk"
|
|
1459
|
+
},
|
|
1460
|
+
"ratio": {
|
|
1461
|
+
"min": 1,
|
|
1462
|
+
"max": 100,
|
|
1463
|
+
"step": 0,
|
|
1464
|
+
"unit": "",
|
|
1465
|
+
"default": 16,
|
|
1466
|
+
"defaultFrom": "desk"
|
|
1467
|
+
}
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* The compressor's threshold and release as a plugin host draws them: COMP_LIMITS' bounds, units and defaults with no step. The console's row quantises them to whole steps (1 dB, 10 ms), and a travel whose step is 1 or more reads as an integer control; the omx-strip plugin has always offered them continuous, so it reads this table instead. Every number but the step is COMP_LIMITS', held equal by test/continuous-travels.test.mjs. Not rendered to C: no C reader needs a second spelling of the compressor's bounds.
|
|
1472
|
+
* @see data/primitives.json
|
|
1473
|
+
*/
|
|
1474
|
+
export const COMP_CONTINUOUS_TRAVELS = {
|
|
1475
|
+
"thresholdDb": {
|
|
1476
|
+
"min": -60,
|
|
1477
|
+
"max": 0,
|
|
1478
|
+
"step": 0,
|
|
1479
|
+
"unit": "dB",
|
|
1480
|
+
"default": -18,
|
|
1481
|
+
"defaultFrom": "desk"
|
|
1482
|
+
},
|
|
1483
|
+
"releaseMs": {
|
|
1484
|
+
"min": 5,
|
|
1485
|
+
"max": 3000,
|
|
1486
|
+
"step": 0,
|
|
1487
|
+
"unit": "ms",
|
|
1488
|
+
"default": 200,
|
|
1489
|
+
"defaultFrom": "desk"
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* The digital input trim as a travel: openmixer's TRIM_RANGE (packages/declarations, -24..+24 dB in 0.1 dB steps, spelled minDb/maxDb/stepDb there and OMX_TRIM_RANGE_*_DB in omx-dsp's header), coming up at 0 dB, the trim a channel has when none is set. The omx-strip plugin's trim reads it. A table with the one field `trimDb`, the name the trim row and the plugin store; not rendered to C, which already spells TRIM_RANGE its own way.
|
|
1495
|
+
* @see data/primitives.json
|
|
1496
|
+
*/
|
|
1497
|
+
export const TRIM_TRAVELS = {
|
|
1498
|
+
"trimDb": {
|
|
1499
|
+
"min": -24,
|
|
1500
|
+
"max": 24,
|
|
1501
|
+
"step": 0.1,
|
|
1502
|
+
"unit": "dB",
|
|
1503
|
+
"default": 0,
|
|
1504
|
+
"defaultFrom": "desk"
|
|
1505
|
+
}
|
|
1506
|
+
};
|
|
1507
|
+
|
|
536
1508
|
/**
|
|
537
1509
|
* The standard sample rates (Hz) the desk recognises — the pro-audio superset. One source of truth for the clock controller's `clock.allowed-rates` seed, the force row's validation ceiling and the device-rate probe fallback. What the operator is OFFERED is always the DEVICE's own `supportedRates` (`2026-07-15-clock-rate-honest-force-rate.md`) — this is the ceiling a write is refused by, never a menu.
|
|
538
1510
|
* @see data/rates.json
|