@openmixer/omx-contract 1.1.0 → 1.2.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.
@@ -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 declare const PAN_RANGE: {
10
+ readonly min: -1;
11
+ readonly max: 1;
12
+ readonly step: 0;
13
+ readonly 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 declare const CHORUS_SPREAD_RANGE: {
15
26
  readonly 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 declare const CHORUS_RATE_RANGE: {
34
+ readonly min: 0.05;
35
+ readonly max: 8;
36
+ readonly step: 0.01;
37
+ readonly unit: "Hz";
38
+ readonly default: 0.6;
39
+ readonly 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 declare const CHORUS_DEPTH_RANGE: {
47
+ readonly min: 0;
48
+ readonly max: 12;
49
+ readonly step: 0.1;
50
+ readonly unit: "ms";
51
+ readonly default: 4;
52
+ readonly 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 declare const CHORUS_VOICES_RANGE: {
60
+ readonly min: 1;
61
+ readonly max: 4;
62
+ readonly step: 1;
63
+ readonly unit: "";
64
+ readonly default: 3;
65
+ readonly 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 declare const CHORUS_MIX_RANGE: {
73
+ readonly min: 0;
74
+ readonly max: 100;
75
+ readonly step: 0.1;
76
+ readonly unit: "%";
77
+ readonly default: 35;
78
+ readonly 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
@@ -259,6 +322,71 @@ export declare const FX_DELAY_PINGPONG_DEFAULT: false;
259
322
  */
260
323
  export declare const DRIVE_BIAS_MAX: 0.7071067811865476;
261
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 declare const DRIVE_AMOUNT_RANGE: {
330
+ readonly min: 0;
331
+ readonly max: 36;
332
+ readonly step: 0.1;
333
+ readonly unit: "dB";
334
+ readonly default: 0;
335
+ readonly 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 declare const DRIVE_CHARACTER_RANGE: {
343
+ readonly min: -1;
344
+ readonly max: 1;
345
+ readonly step: 0.01;
346
+ readonly unit: "";
347
+ readonly default: 0;
348
+ readonly 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 declare const DRIVE_BAND_FREQ_RANGE: {
356
+ readonly min: 20;
357
+ readonly max: 20000;
358
+ readonly step: 1;
359
+ readonly unit: "Hz";
360
+ readonly default: 2000;
361
+ readonly 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 declare const DRIVE_MIX_RANGE: {
369
+ readonly min: 0;
370
+ readonly max: 100;
371
+ readonly step: 0.1;
372
+ readonly unit: "%";
373
+ readonly default: 100;
374
+ readonly 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 declare const DRIVE_TRIM_RANGE: {
382
+ readonly min: -24;
383
+ readonly max: 12;
384
+ readonly step: 0.1;
385
+ readonly unit: "dB";
386
+ readonly default: 0;
387
+ readonly defaultFrom: "desk";
388
+ };
389
+
262
390
  /**
263
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.
264
392
  * @see data/kernels/eq.json
@@ -277,6 +405,72 @@ export declare const ISO_THIRD_OCTAVE_CENTRES_HZ: readonly [20, 25, 31.5, 40, 50
277
405
  */
278
406
  export declare const GEQ_BANDS: 31;
279
407
 
408
+ /**
409
+ * The frequency band a parametric band can be dragged across.
410
+ * @see data/kernels/eq.json
411
+ */
412
+ export declare const EQ_FREQ_RANGE: {
413
+ readonly min: 20;
414
+ readonly max: 20000;
415
+ readonly step: 10;
416
+ readonly unit: "Hz";
417
+ };
418
+
419
+ /**
420
+ * 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.
421
+ * @see data/kernels/eq.json
422
+ */
423
+ export declare const EQ_GAIN_RANGE: {
424
+ readonly min: -15;
425
+ readonly max: 15;
426
+ readonly step: 0.5;
427
+ readonly unit: "dB";
428
+ };
429
+
430
+ /**
431
+ * The Q (resonance) extent of a parametric band.
432
+ * @see data/kernels/eq.json
433
+ */
434
+ export declare const EQ_Q_RANGE: {
435
+ readonly min: 0.3;
436
+ readonly max: 8;
437
+ readonly step: 0.1;
438
+ readonly unit: "";
439
+ };
440
+
441
+ /**
442
+ * 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.
443
+ * @see data/kernels/eq.json
444
+ */
445
+ export declare const EQ_NOTCH_Q_RANGE: {
446
+ readonly min: 0.3;
447
+ readonly max: 116;
448
+ readonly step: 1;
449
+ readonly unit: "";
450
+ };
451
+
452
+ /**
453
+ * Where the HPF cutoff can sit (low end); mirrors the drawn low-frequency handle.
454
+ * @see data/kernels/eq.json
455
+ */
456
+ export declare const HPF_FREQ_RANGE: {
457
+ readonly min: 20;
458
+ readonly max: 1000;
459
+ readonly step: 10;
460
+ readonly unit: "Hz";
461
+ };
462
+
463
+ /**
464
+ * Where the LPF cutoff can sit (high end).
465
+ * @see data/kernels/eq.json
466
+ */
467
+ export declare const LPF_FREQ_RANGE: {
468
+ readonly min: 1000;
469
+ readonly max: 20000;
470
+ readonly step: 10;
471
+ readonly unit: "Hz";
472
+ };
473
+
280
474
  /**
281
475
  * The flanger's jet sweep (§3b).
282
476
  * @see data/kernels/flanger.json
@@ -646,6 +840,152 @@ export declare const REVERB_PLATE_MOD_DEPTH_RANGE: {
646
840
  readonly defaultFrom: "desk";
647
841
  };
648
842
 
843
+ /**
844
+ * 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.
845
+ * @see data/kernels/reverb.json
846
+ */
847
+ export declare const REVERB_MIX_RANGE: {
848
+ readonly min: 0;
849
+ readonly max: 1;
850
+ readonly step: 0;
851
+ readonly unit: "";
852
+ readonly default: 0.3;
853
+ readonly defaultFrom: "desk";
854
+ readonly byKind: {
855
+ readonly fxReturn: 1;
856
+ };
857
+ };
858
+
859
+ /**
860
+ * 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.
861
+ * @see data/kernels/reverb.json
862
+ */
863
+ export declare const REVERB_SIZE_RANGE: {
864
+ readonly min: 0;
865
+ readonly max: 1;
866
+ readonly step: 0;
867
+ readonly unit: "";
868
+ readonly default: 0.7;
869
+ readonly defaultFrom: "desk";
870
+ };
871
+
872
+ /**
873
+ * 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).
874
+ * @see data/kernels/reverb.json
875
+ */
876
+ export declare const REVERB_DAMPING_RANGE: {
877
+ readonly min: 0;
878
+ readonly max: 1;
879
+ readonly step: 0;
880
+ readonly unit: "";
881
+ readonly default: 0.5;
882
+ readonly defaultFrom: "desk";
883
+ };
884
+
885
+ /**
886
+ * 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).
887
+ * @see data/kernels/reverb.json
888
+ */
889
+ export declare const REVERB_WIDTH_RANGE: {
890
+ readonly min: 0;
891
+ readonly max: 1;
892
+ readonly step: 0;
893
+ readonly unit: "";
894
+ readonly default: 1;
895
+ readonly defaultFrom: "desk";
896
+ };
897
+
898
+ /**
899
+ * 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.
900
+ * @see data/kernels/reverb.json
901
+ */
902
+ export declare const REVERB_PREDELAY_RANGE: {
903
+ readonly min: 0;
904
+ readonly max: 100;
905
+ readonly step: 1;
906
+ readonly unit: "ms";
907
+ readonly default: 0;
908
+ readonly defaultFrom: "desk";
909
+ };
910
+
911
+ /**
912
+ * 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.
913
+ * @see data/kernels/reverb.json
914
+ */
915
+ export declare const REVERB_LOWCUT_RANGE: {
916
+ readonly min: 0;
917
+ readonly max: 20000;
918
+ readonly step: 10;
919
+ readonly unit: "Hz";
920
+ readonly default: 0;
921
+ readonly defaultFrom: "desk";
922
+ };
923
+
924
+ /**
925
+ * 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.
926
+ * @see data/kernels/reverb.json
927
+ */
928
+ export declare const REVERB_HIGHCUT_RANGE: {
929
+ readonly min: 0;
930
+ readonly max: 20000;
931
+ readonly step: 10;
932
+ readonly unit: "Hz";
933
+ readonly default: 20000;
934
+ readonly defaultFrom: "desk";
935
+ };
936
+
937
+ /**
938
+ * 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.
939
+ * @see data/kernels/reverb.json
940
+ */
941
+ export declare const REVERB_REVERSE_RANGE: {
942
+ readonly min: 50;
943
+ readonly max: 500;
944
+ readonly step: 10;
945
+ readonly unit: "ms";
946
+ readonly default: 300;
947
+ readonly defaultFrom: "desk";
948
+ };
949
+
950
+ /**
951
+ * 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.
952
+ * @see data/kernels/reverb.json
953
+ */
954
+ export declare const REVERB_HOLD_RANGE: {
955
+ readonly min: 10;
956
+ readonly max: 2000;
957
+ readonly step: 10;
958
+ readonly unit: "ms";
959
+ readonly default: 120;
960
+ readonly defaultFrom: "desk";
961
+ };
962
+
963
+ /**
964
+ * 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.
965
+ * @see data/kernels/reverb.json
966
+ */
967
+ export declare const REVERB_RELEASE_RANGE: {
968
+ readonly min: 1;
969
+ readonly max: 500;
970
+ readonly step: 1;
971
+ readonly unit: "ms";
972
+ readonly default: 20;
973
+ readonly defaultFrom: "desk";
974
+ };
975
+
976
+ /**
977
+ * 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.
978
+ * @see data/kernels/reverb.json
979
+ */
980
+ export declare const REVERB_GATE_THRESHOLD_RANGE: {
981
+ readonly min: -80;
982
+ readonly max: 0;
983
+ readonly step: 1;
984
+ readonly unit: "dBFS";
985
+ readonly default: -40;
986
+ readonly defaultFrom: "desk";
987
+ };
988
+
649
989
  /**
650
990
  * The horn's chorale (slow) rate, Hz.
651
991
  * @see data/kernels/rotary.json
@@ -1049,6 +1389,83 @@ export declare const FDELAY_MOD_READ_ORDER: 3;
1049
1389
  */
1050
1390
  export declare const FDELAY_READ_L1_NORM: 1.25;
1051
1391
 
1392
+ /**
1393
+ * 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.
1394
+ * @see data/primitives.json
1395
+ */
1396
+ export declare const GATE_CONTINUOUS_TRAVELS: {
1397
+ readonly thresholdDb: {
1398
+ readonly min: -80;
1399
+ readonly max: 0;
1400
+ readonly step: 0;
1401
+ readonly unit: "dB";
1402
+ readonly default: -40;
1403
+ readonly defaultFrom: "desk";
1404
+ };
1405
+ readonly rangeDb: {
1406
+ readonly min: -90;
1407
+ readonly max: 0;
1408
+ readonly step: 0;
1409
+ readonly unit: "dB";
1410
+ readonly default: -90;
1411
+ readonly defaultFrom: "desk";
1412
+ };
1413
+ readonly releaseMs: {
1414
+ readonly min: 0;
1415
+ readonly max: 5000;
1416
+ readonly step: 0;
1417
+ readonly unit: "ms";
1418
+ readonly default: 100;
1419
+ readonly defaultFrom: "desk";
1420
+ };
1421
+ readonly ratio: {
1422
+ readonly min: 1;
1423
+ readonly max: 100;
1424
+ readonly step: 0;
1425
+ readonly unit: "";
1426
+ readonly default: 16;
1427
+ readonly defaultFrom: "desk";
1428
+ };
1429
+ };
1430
+
1431
+ /**
1432
+ * 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.
1433
+ * @see data/primitives.json
1434
+ */
1435
+ export declare const COMP_CONTINUOUS_TRAVELS: {
1436
+ readonly thresholdDb: {
1437
+ readonly min: -60;
1438
+ readonly max: 0;
1439
+ readonly step: 0;
1440
+ readonly unit: "dB";
1441
+ readonly default: -18;
1442
+ readonly defaultFrom: "desk";
1443
+ };
1444
+ readonly releaseMs: {
1445
+ readonly min: 5;
1446
+ readonly max: 3000;
1447
+ readonly step: 0;
1448
+ readonly unit: "ms";
1449
+ readonly default: 200;
1450
+ readonly defaultFrom: "desk";
1451
+ };
1452
+ };
1453
+
1454
+ /**
1455
+ * 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.
1456
+ * @see data/primitives.json
1457
+ */
1458
+ export declare const TRIM_TRAVELS: {
1459
+ readonly trimDb: {
1460
+ readonly min: -24;
1461
+ readonly max: 24;
1462
+ readonly step: 0.1;
1463
+ readonly unit: "dB";
1464
+ readonly default: 0;
1465
+ readonly defaultFrom: "desk";
1466
+ };
1467
+ };
1468
+
1052
1469
  /**
1053
1470
  * 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.
1054
1471
  * @see data/rates.json