@openmixer/omx-contract 1.2.1 → 1.3.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.
@@ -117,5 +117,56 @@
117
117
  "defaultFrom": "desk"
118
118
  }
119
119
  }
120
+ },
121
+ "PARAM_SCALES": {
122
+ "kind": "set",
123
+ "since": "1.3.0",
124
+ "doc": "How a host draws a parameter: linear, logarithmic (a frequency, a time) or in discrete steps. The words omx-plugins' declarations and plugin-hostd's protocol use; a travel names its own with `scale`.",
125
+ "ids": [
126
+ "linear",
127
+ "log",
128
+ "stepped"
129
+ ],
130
+ "default": "linear"
131
+ },
132
+ "EQ_CONTINUOUS_TRAVELS": {
133
+ "kind": "travels",
134
+ "since": "1.3.0",
135
+ "doc": "The EQ's three frequency travels as a host draws them: the band frequency, the high-pass corner and the low-pass corner, EQ_FREQ_RANGE's, HPF_FREQ_RANGE's and LPF_FREQ_RANGE's bounds with no step and a logarithmic scale. The console's EQ quantises frequency to 10 Hz; a frequency drags continuously on a log axis, which is how every host draws it, so this is the form the omx-plugins read. Every number but the step is the source's, held equal by test/continuous-travels.test.mjs. Not rendered to C: no C reader needs a second spelling of the EQ's bounds.",
136
+ "fields": {
137
+ "freqHz": {
138
+ "min": {
139
+ "ref": "EQ_FREQ_RANGE.min"
140
+ },
141
+ "max": {
142
+ "ref": "EQ_FREQ_RANGE.max"
143
+ },
144
+ "step": 0,
145
+ "unit": "Hz",
146
+ "scale": "log"
147
+ },
148
+ "hpfFreqHz": {
149
+ "min": {
150
+ "ref": "HPF_FREQ_RANGE.min"
151
+ },
152
+ "max": {
153
+ "ref": "HPF_FREQ_RANGE.max"
154
+ },
155
+ "step": 0,
156
+ "unit": "Hz",
157
+ "scale": "log"
158
+ },
159
+ "lpfFreqHz": {
160
+ "min": {
161
+ "ref": "LPF_FREQ_RANGE.min"
162
+ },
163
+ "max": {
164
+ "ref": "LPF_FREQ_RANGE.max"
165
+ },
166
+ "step": 0,
167
+ "unit": "Hz",
168
+ "scale": "log"
169
+ }
170
+ }
120
171
  }
121
172
  }
package/data/rates.json CHANGED
@@ -26,5 +26,34 @@
26
26
  "doc": "The rate a unit-range DSP knob is quoted at (R-058): the rate this desk runs (ruling 2026-09-14). A kernel raises the knob to `REF / sr`, so at this rate the exponent is exactly 1 and the response is bit-for-bit the one cut before the law. Emitted to C as `OMX_DSP_KNOB_REFERENCE_RATE`; the reverb damping and FX-delay tone references `#define` from it.",
27
27
  "unit": "Hz",
28
28
  "value": 96000
29
+ },
30
+ "ORACLE_FLOOR_RATES": {
31
+ "kind": "list",
32
+ "since": "1.3.0",
33
+ "doc": "The four rates every kernel oracle runs at, whatever STANDARD_SAMPLE_RATES says: a declared list missing one of them stops a suite instead of testing less (omx-dsp, omx-plugins and omx-clap-host run their oracles at these).",
34
+ "unit": "Hz",
35
+ "values": [
36
+ 44100,
37
+ 48000,
38
+ 96000,
39
+ 192000
40
+ ]
41
+ },
42
+ "RME_RATES": {
43
+ "kind": "list",
44
+ "since": "1.3.0",
45
+ "doc": "The nine rates an RME interface clocks at, 32 to 192 kHz. STANDARD_SAMPLE_RATES is a subset of them; an oracle that runs here also covers 32, 64 and 128 kHz, where a kernel still has to meet its closed form even though the console never asks for them.",
46
+ "unit": "Hz",
47
+ "values": [
48
+ 32000,
49
+ 44100,
50
+ 48000,
51
+ 64000,
52
+ 88200,
53
+ 96000,
54
+ 128000,
55
+ 176400,
56
+ 192000
57
+ ]
29
58
  }
30
59
  }
@@ -78,6 +78,18 @@ export declare const CHORUS_MIX_RANGE: {
78
78
  readonly defaultFrom: "desk";
79
79
  };
80
80
 
81
+ /**
82
+ * The chorus's base delay, ms: the voices swing around it by up to the depth.
83
+ * @see data/kernels/chorus.json
84
+ */
85
+ export declare const CHORUS_BASE_MS: 10;
86
+
87
+ /**
88
+ * The longest delay a chorus voice reaches, rounded up to whole ms: the base delay plus the depth maximum. The delay line is sized from it.
89
+ * @see data/kernels/chorus.json
90
+ */
91
+ export declare const CHORUS_MAX_MS: 22;
92
+
81
93
  /**
82
94
  * 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.
83
95
  * @see data/kernels/comp.json
@@ -255,6 +267,12 @@ export declare const DEESS_RELEASE_RANGE: {
255
267
  */
256
268
  export declare const DEESS_KNEE_DB: 6;
257
269
 
270
+ /**
271
+ * The de-esser's modes, in the order of the integer the kernel reads: split attenuates the detected band only, wideband the whole signal while the sibilance lasts.
272
+ * @see data/kernels/deesser.json
273
+ */
274
+ export declare const DEESS_MODES: readonly ["split", "wideband"];
275
+
258
276
  /**
259
277
  * 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.
260
278
  * @see data/kernels/delay.json
@@ -387,6 +405,18 @@ export declare const DRIVE_TRIM_RANGE: {
387
405
  readonly defaultFrom: "desk";
388
406
  };
389
407
 
408
+ /**
409
+ * The drive's shaper curves, in the order of the integer the kernel reads. Exciter runs the soft shape in a parallel-sum topology.
410
+ * @see data/kernels/drive.json
411
+ */
412
+ export declare const DRIVE_CURVES: readonly ["soft", "tape", "tube", "exciter"];
413
+
414
+ /**
415
+ * Which part of the spectrum the drive's curve is fed, in the order of the integer the kernel reads. The split is complementary, so mix 0 stays bit-identical to the dry signal.
416
+ * @see data/kernels/drive.json
417
+ */
418
+ export declare const DRIVE_BANDS: readonly ["full", "low", "high", "tilt"];
419
+
390
420
  /**
391
421
  * 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.
392
422
  * @see data/kernels/eq.json
@@ -471,6 +501,213 @@ export declare const LPF_FREQ_RANGE: {
471
501
  readonly unit: "Hz";
472
502
  };
473
503
 
504
+ /**
505
+ * The band slots kept for the operator's own hand: the reserve the feedback suppressor and the ring correction may never eat into. Nine is the working set a live EQ actually holds. The budget OPERATOR_EQ_BANDS_RESERVE + FBS_DEFAULT_MAX_AUTO_BANDS + HRP_DEFAULT_MAX_AUTO_BANDS (9 + 6 + 8 = 23) must fit EQ_MAX_BANDS, and `omx-contract validate` refuses data where it does not.
506
+ * @see data/kernels/eq.json
507
+ */
508
+ export declare const OPERATOR_EQ_BANDS_RESERVE: 9;
509
+
510
+ /**
511
+ * The generic EQ band shapes, in the order a picker offers them and in the order of the integer a plugin host sees on a band type port. The id is the name; the position is the value. A bell is the shape a band added by the operator starts as.
512
+ * @see data/kernels/eq.json
513
+ */
514
+ export declare const EQ_BAND_TYPES: readonly ["bell", "lowShelf", "highShelf", "notch", "allpass1", "allpass2"];
515
+
516
+ /**
517
+ * The pass-filter slopes the EQ offers, in dB per octave. The id is the slope: 12 is one maximally flat section, 24 the two-section Butterworth.
518
+ * @see data/kernels/eq.json
519
+ */
520
+ export declare const FILTER_SLOPES: readonly [12, 24];
521
+
522
+ /**
523
+ * How many bands each strip type's EQ starts with (`default`) and may hold (`max`). `channel` is the console's channel strip: it starts with four and the operator adds bands up to EQ_MAX_BANDS (a band added takes the frequency it is added at, so no default is declared for it). `strip` is the omx-strip plugin's EQ and `eq8`, `eq16` and `eq32` the omx-eq plugins, whose bands are fixed. A default may never exceed its maximum, and the default centres of any count come from the one default rule, whatever the strip.
524
+ * @see data/kernels/eq.json
525
+ */
526
+ export declare const EQ_BAND_COUNTS: {
527
+ readonly channel: {
528
+ readonly default: 4;
529
+ readonly max: 24;
530
+ };
531
+ readonly strip: {
532
+ readonly default: 4;
533
+ readonly max: 4;
534
+ };
535
+ readonly eq8: {
536
+ readonly default: 8;
537
+ readonly max: 8;
538
+ };
539
+ readonly eq16: {
540
+ readonly default: 16;
541
+ readonly max: 16;
542
+ };
543
+ readonly eq32: {
544
+ readonly default: 32;
545
+ readonly max: 32;
546
+ };
547
+ };
548
+
549
+ /**
550
+ * What every band of a fresh EQ comes up at, whatever its type and its strip: flat (0 dB) and Q 1. The band frequencies and types come from the default rule.
551
+ * @see data/kernels/eq.json
552
+ */
553
+ export declare const EQ_BAND_DEFAULTS: {
554
+ readonly gainDb: 0;
555
+ readonly q: 1;
556
+ };
557
+
558
+ /**
559
+ * The corners the high-pass and low-pass filters of a fresh EQ are parked at, whatever the strip. Both come up off.
560
+ * @see data/kernels/eq.json
561
+ */
562
+ export declare const EQ_PASS_FILTER_DEFAULTS: {
563
+ readonly hpfFreqHz: 80;
564
+ readonly lpfFreqHz: 18000;
565
+ };
566
+
567
+ /**
568
+ * The default band centres of a four-band EQ, Hz: ISO 266 preferred values, two to two and a half octaves apart. The default rule gives every other band count its centres from the preferred series; four bands start here.
569
+ * @see data/kernels/eq.json
570
+ */
571
+ export declare const EQ_DEFAULT_CENTRES_FOUR_BAND_HZ: readonly [100, 400, 2000, 8000];
572
+
573
+ /**
574
+ * The ISO 266 R20 preferred frequencies from 20 Hz to 20 kHz (61 values, sixth-octave spacing): the finer series the default band rule falls back to where R10 (ISO_THIRD_OCTAVE_CENTRES_HZ, 31 values) has too few to give every band its own centre. R10 is a subset of it.
575
+ * @see data/kernels/eq.json
576
+ */
577
+ export declare const EQ_CENTRE_SERIES_R20_HZ: readonly [20, 22.4, 25, 28, 31.5, 35.5, 40, 45, 50, 56, 63, 71, 80, 90, 100, 112, 125, 140, 160, 180, 200, 224, 250, 280, 315, 355, 400, 450, 500, 560, 630, 710, 800, 900, 1000, 1120, 1250, 1400, 1600, 1800, 2000, 2240, 2500, 2800, 3150, 3550, 4000, 4500, 5000, 5600, 6300, 7100, 8000, 9000, 10000, 11200, 12500, 14000, 16000, 18000, 20000];
578
+
579
+ /**
580
+ * How far (bins) around bin/2 and bin/3 PSHR (`omx_fbs_pshr`) scans for a sub-harmonic line. A true half/third partial lands mid-bin in the worst case (bin/2 and bin/3 are rarely integers) and spectral leakage smears it one bin further; ±2 covers both. Measured on the #116 live-music corpus: every false positive's sub-line sat inside this window. Deliberately NOT wider — at low bins the window is already a large fraction of an octave, and widening it would start reading unrelated program lines as "sub-harmonics" of real feedback.
581
+ * @see data/kernels/fbs.json
582
+ */
583
+ export declare const SUBHARMONIC_RADIUS_BINS: 2;
584
+
585
+ /**
586
+ * PAPR's guard band: bins either side of the peak left out of the floor average (its own skirt).
587
+ * @see data/kernels/fbs.json
588
+ */
589
+ export declare const FBS_PAPR_GUARD_BINS: 2;
590
+
591
+ /**
592
+ * PNPR's neighbourhood radius in bins, and the guard inside it that belongs to the peak's own skirt: a pure tone is compared with bins 2 and 3 away on each side.
593
+ * @see data/kernels/fbs.json
594
+ */
595
+ export declare const FBS_PNPR_RADIUS_BINS: 3;
596
+
597
+ /**
598
+ * The guard inside PNPR's neighbourhood radius that belongs to the peak's own skirt, in bins.
599
+ * @see data/kernels/fbs.json
600
+ */
601
+ export declare const FBS_PNPR_GUARD_BINS: 1;
602
+
603
+ /**
604
+ * How many harmonics PHPR reads above the candidate: 2f, 3f and 4f.
605
+ * @see data/kernels/fbs.json
606
+ */
607
+ export declare const FBS_PHPR_HARMONICS: 3;
608
+
609
+ /**
610
+ * PSHR skips sub-window bins within this many of the candidate, so a low bin never measures its own skirt as a sub-harmonic.
611
+ * @see data/kernels/fbs.json
612
+ */
613
+ export declare const FBS_PSHR_SELF_SKIP_BINS: 3;
614
+
615
+ /**
616
+ * The magnitude floor of every detector dB reading (−240 dB): a zero bin stays finite.
617
+ * @see data/kernels/fbs.json
618
+ */
619
+ export declare const FBS_FLOOR_LIN: 1e-12;
620
+
621
+ /**
622
+ * Tracked candidate bins per armed channel. A candidate that finds no free slot is COUNTED and reported, never dropped silently; the identity corpus peaks at 34.
623
+ * @see data/kernels/fbs.json
624
+ */
625
+ export declare const FBS_TRACK_SLOTS: 512;
626
+
627
+ /**
628
+ * Minimum PSHR (`omx_fbs_pshr`) (dB) for a candidate frame to count as sub-harmonic-CLEAN. Evidence-set on the #116 corpus, margin on both sides: the four live false positives (musical overtones at 1 869.1 / 832.0 / 263.7 / 228.5 Hz) read PSHR between −10.2 and +8.8 dB across their windows — never a 5-frame sub-clean stretch, and the single closest approach (+8.8) is isolated between frames at ≈ −1 and −10 — while the committed #106 injected ramp reads ≥ +12.2 dB from its second frame on (its frame 0 sits at +9.4, costing exactly one frame of confirm latency, pinned in the corpus test). A static program line at f/2 of REAL feedback also clears this fast: the runaway gains several dB per hop on anything static, so the deferral is transient.
629
+ * @see data/kernels/fbs.json
630
+ */
631
+ export declare const PSHR_MIN_DB: 10;
632
+
633
+ /**
634
+ * How many of a candidate bin's most recent dB readings feed the growth-slope estimate (the engine's least-squares slope) — set equal to DEFAULT_THRESHOLDS's `persistFrames` so growth is judged over the SAME window persistence already demands (the full run since the bin became a candidate, not a shorter or longer slice of it). Long enough that a couple of noisy/vibrato frames can't fake a trend by themselves.
635
+ * @see data/kernels/fbs.json
636
+ */
637
+ export declare const GROWTH_WINDOW_FRAMES: 5;
638
+
639
+ /**
640
+ * The DEEP plateau tier's dwell: ~2 s at the watcher's 10 Hz — the TIME that buys the deeper floor its music safety (see DetectThresholds.deepPlateauFloorDb).
641
+ * @see data/kernels/fbs.json
642
+ */
643
+ export declare const DEEP_PLATEAU_FRAMES: 20;
644
+
645
+ /**
646
+ * Minimum least-squares slope, in dB PER FRAME, over GROWTH_WINDOW_FRAMES for a bin to count as "running away" rather than merely holding level. Set with real margin on BOTH sides — comfortably above measurement jitter on a held tone or a quiet/broadband mix (well under 0.2 dB/frame in practice) and comfortably below a genuine feedback ramp, which climbs several dB across a handful of ~20 ms hops as it heads toward clipping. Issue #91's acceptance bar is "arming must never burst-alarm on non-growing content", so this errs conservative (under-fire a marginal ramp) rather than tight (risk a false alarm) — the ramp gate (`omx_fbs_is_growing`) also requires the window's end to sit above its start, a cheap belt-and-braces check against a fit dragged positive by one mid-window wobble.
647
+ * @see data/kernels/fbs.json
648
+ */
649
+ export declare const GROWTH_MIN_DB_PER_FRAME: 0.8;
650
+
651
+ /**
652
+ * Largest single-frame DIP (dB) a run-away window may contain. Real feedback climbs every hop; a small allowance covers measurement jitter and the −0.3 dB-ish wobble frames seen on live captures, while any real drop (a note ending, tremolo) breaks the run.
653
+ * @see data/kernels/fbs.json
654
+ */
655
+ export declare const GROWTH_MAX_DIP_DB: 0.5;
656
+
657
+ /**
658
+ * Minimum END-TO-END rise (dB) across the window. The live-music corpus (issue #106) showed sustained melody notes drifting up ~4–5 dB over a window without ever being feedback; a loop past unity gains several dB per hop and clears 6 dB in a window trivially. Below this the tone is holding level, not running away.
659
+ * @see data/kernels/fbs.json
660
+ */
661
+ export declare const GROWTH_MIN_TOTAL_RISE_DB: 6;
662
+
663
+ /**
664
+ * Cap on the share of the window's total rise a SINGLE frame may carry. Feedback is exponential in amplitude ⇒ linear in dB ⇒ its rise is distributed roughly evenly across the window; a musical attack / re-articulation puts almost the whole rise in one hop (the exact shape behind every one of issue #106's 72 live false positives). One half is generous to real ramps (an even N-frame ramp puts 1/(N−1) per hop) and fatal to steps. A side effect worth knowing: a 2-sample window can never pass (one hop IS the whole rise), so confirmation always rests on at least three frames of actual ramp evidence.
665
+ * @see data/kernels/fbs.json
666
+ */
667
+ export declare const GROWTH_MAX_SINGLE_FRAME_SHARE: 0.5;
668
+
669
+ /**
670
+ * How many CONSECUTIVE frames the ramp gate (`omx_fbs_is_growing`) must hold before a bin confirms — the time-domain tiebreak for the one shape a single window cannot judge (issue #106): a smooth musical crescendo. Within one window a +6 dB swell (live corpus: a C6 at 1 049 Hz, `[-53.7, -51.4, -50.4, -48, -47.3]`) is indistinguishable from slow feedback — the difference is only visible on the NEXT hop, where a crescendo peaks and plateaus (the window's rise collapses) while feedback keeps climbing. Requiring the gate to hold twice in a row costs a clean ramp nothing — its gate is already true while persistence is still arming — and blocks the swell that peaks the very frame it would have confirmed.
671
+ * @see data/kernels/fbs.json
672
+ */
673
+ export declare const GROWTH_CONFIRM_FRAMES: 2;
674
+
675
+ /**
676
+ * The corpus-tuned SAFE DEFAULT — today's exact gates, assembled byte-for-byte from the exported consts above (which stay the authoritative literal source, so the corpus test's import type { MagnitudeSeries } from './spectrum-bands.js'; imports remain the single truth). This is the ANCHOR the whole sensitivity mapping pins to: thresholdsFor`(0, 'live')` and `(0, 'fixed')` both deep-equal this object, so an untouched channel runs the identical detector it does now. `plateauFloorDb` is omitted ⇒ the #140 plateau route is OFF at the default.
677
+ * @see data/kernels/fbs.json
678
+ */
679
+ export declare const DEFAULT_THRESHOLDS: {
680
+ readonly paprDb: 18;
681
+ readonly pnprDb: 12;
682
+ readonly phprDb: 9;
683
+ readonly persistFrames: 5;
684
+ readonly growthConfirmFrames: 2;
685
+ readonly subCleanFrames: 5;
686
+ readonly growthMinTotalRiseDb: 6;
687
+ readonly growthMaxSingleFrameShare: 0.5;
688
+ readonly growthMinDbPerFrame: 0.8;
689
+ readonly growthMaxDipDb: 0.5;
690
+ readonly pshrMinDb: 10;
691
+ };
692
+
693
+ /**
694
+ * THE NOTCH DEPTH LAW: the deepest cut any machine planter may propose from one reading, in dB. A number, not a literal at the call site, because two planters now lean on it. FBS derives a candidate's depth from the peak-to-average ratio around its bin and stops here; Room Analysis derives a mode's depth from its height above the median curve and is held to the SAME ceiling (2026-09-08-room-analysis.md §4 — "never more than the FBS notch depth law"). Written twice as `18` those two bounds would be equal by coincidence and could drift apart in silence. It is a CEILING ON THE PROPOSAL, not the final gain: a band that lands as a rampable BELL is bounded again by `EQ_GAIN_RANGE`, which is tighter. A planter must honour both and REPORT when either bit, never quietly deliver a shallower cut than it was asked for.
695
+ * @see data/kernels/fbs.json
696
+ */
697
+ export declare const FBS_MAX_NOTCH_DEPTH_DB: 18;
698
+
699
+ /**
700
+ * Default planted-notch width (Q) — the dbx-AFS-style ultra-narrow notch the corrector plants. `addBand`'s per-shape clamp holds it at 116 for a fixed notch and narrows it to 8 for a live bell, so this is the declared starting point rather than the width every notch ends up with.
701
+ * @see data/kernels/fbs.json
702
+ */
703
+ export declare const FBS_DEFAULT_NOTCH_Q: 116;
704
+
705
+ /**
706
+ * Default per-channel cap on auto-planted bands — a full pool plants nothing and raises a pool-full alert instead (predictability over silent eviction).
707
+ * @see data/kernels/fbs.json
708
+ */
709
+ export declare const FBS_DEFAULT_MAX_AUTO_BANDS: 6;
710
+
474
711
  /**
475
712
  * The flanger's jet sweep (§3b).
476
713
  * @see data/kernels/flanger.json
@@ -523,6 +760,18 @@ export declare const FLANGER_MIX_RANGE: {
523
760
  readonly defaultFrom: "desk";
524
761
  };
525
762
 
763
+ /**
764
+ * The flanger's base delay, ms: the sweep rides on it up to the depth.
765
+ * @see data/kernels/flanger.json
766
+ */
767
+ export declare const FLANGER_BASE_MS: 0.5;
768
+
769
+ /**
770
+ * The longest delay a flanger sweep reaches, rounded up to whole ms: the base delay plus the depth maximum. The delay line is sized from it.
771
+ * @see data/kernels/flanger.json
772
+ */
773
+ export declare const FLANGER_MAX_MS: 6;
774
+
526
775
  /**
527
776
  * 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).
528
777
  * @see data/kernels/gate.json
@@ -602,6 +851,12 @@ export declare const GATE_LIMITS: {
602
851
  };
603
852
  };
604
853
 
854
+ /**
855
+ * Where the gate listens: its own input (self), or the key it is handed (sidechain), in the order of the integer the key port carries.
856
+ * @see data/kernels/gate.json
857
+ */
858
+ export declare const GATE_KEY_SOURCES: readonly ["self", "sidechain"];
859
+
605
860
  /**
606
861
  * 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).
607
862
  * @see data/kernels/geq.json
@@ -633,6 +888,66 @@ export declare const GEQ_PROTO_DB: 12;
633
888
  */
634
889
  export declare const GEQ_DESIGN_GAIN_MAX_DB: 30;
635
890
 
891
+ /**
892
+ * The largest automatic cut HRP may place on one harmonic, as a POSITIVE dB magnitude. Well inside the ±15 dB an operator band may hold (core's `EQ_GAIN_LIMIT_DB`): an automatic correction the operator did not ask for gets far less authority than one they dialled themselves.
893
+ * @see data/kernels/hrp.json
894
+ */
895
+ export declare const HRP_MAX_CUT_DB: 6;
896
+
897
+ /**
898
+ * How many simultaneous musical voices the detector may report on one channel. PINNED to `OMX_HRP_MAX_VOICES` in `pipewire-native/src/hrp_pitch.h` — the C voice set is a FIXED-SIZE array, so a TS number above the macro promises voices the analyser structurally cannot return, and one below it silently drops notes the C already found. `core/src/output-delay-ceiling.test.ts` reads the header and holds the pair equal. EIGHT (operator sizing, 2026-09-01): a guitar sounds six strings, a piano or string-section voicing sits at eight. It is a SEARCH ceiling, not a cost — the detector abandons a round as soon as no credible candidate remains, so monophonic material costs what it always did.
899
+ * @see data/kernels/hrp.json
900
+ */
901
+ export declare const HRP_MAX_VOICES: 8;
902
+
903
+ /**
904
+ * The Q of an HRP correction band — one declared number, operator-adjustable later. A musical cut, not a ring killer: FBS's default notch Q is ~116 because a howl is a single frequency, whereas a partial that is too loud is a note an instrument is playing and a surgical null on it would be heard as a hole. 5 sits mid-band in the 4…6 range a musical subtractive cut occupies, and inside EQ_Q_RANGE — the gain-carrying shapes' extent — so it survives the store's clamp unchanged. Deliberately NOT derived from the harmonic index. A derivation invented with no measurement behind it is a second declaration wearing a formula; this is revisited when the analyse-only surface shows what real corrections look like.
905
+ * @see data/kernels/hrp.json
906
+ */
907
+ export declare const HRP_BAND_Q: 5;
908
+
909
+ /**
910
+ * How far a partial must stand above its LEARNED BASELINE before HRP calls it a resonance (increment 8, §23–§24: `deviation = measured − baseline[note][harmonic]`). A partial level tells you nothing on its own; what marks a resonance is a partial louder than THIS instrument normally measures at THIS note. Three decibels is the same order as the feedback detector's peak-to-neighbour gate and for the same reason: below it, an ordinary performance's variation — a bow dug in, a verse sung harder — would be flattened, and flattening expression is not correcting a room. (Before the learned model existed this same threshold gated the placeholder neighbour rule; the number and its reasoning carried over.)
911
+ * @see data/kernels/hrp.json
912
+ */
913
+ export declare const HRP_EXCESS_THRESHOLD_DB: 3;
914
+
915
+ /**
916
+ * How far ONE reconcile pass may move an HRP band's gain, in dB — §48's gain smoothing, done at the control level because the native cascade applies pushed coefficients verbatim and §48 forbids interpolating there. An unbounded gain step is a waveform discontinuity — the click heard when a correction entered or left at full depth (found live, 2026-08-20, the evening increment 9 raised the enter/leave rate). Bounded, a correction ENTERS by deepening from silence and LEAVES by walking to exactly 0 dB — the provable parked identity (`eqBandIsIdentity`) — from which removal is bit-identical. Two decibels per pass at the corrector's 10 Hz cadence walks the full HRP_MAX_CUT_DB travel in ~300 ms: the same order as the tracker's stability hold and FBS's lift steps, while each individual move stays below audibility on a Q-5 bell.
917
+ * @see data/kernels/hrp.json
918
+ */
919
+ export declare const HRP_GAIN_STEP_DB: 2;
920
+
921
+ /**
922
+ * How close two correction candidates must sit, in cents, to count as the SAME spectral region (§30): within it, the stronger candidate is selected and the weaker discarded rather than two near-identical filters being planted. One semitone, and the number follows from HRP_BAND_Q: a Q-5 bell's −3 dB half-width is ~170 cents, so two cuts a semitone apart overlap over most of their travel — the second one deepens the first far more than it shapes anything of its own. The spec orders the threshold configurable and tested (§30's last line): declared once here, a parameter everywhere below.
923
+ * @see data/kernels/hrp.json
924
+ */
925
+ export declare const HRP_COLLISION_CENTS: 100;
926
+
927
+ /**
928
+ * The ATTRIBUTION window (§11): two partials closer than this are one spectral event as far as the desk can tell — the same ±1 bin `omx_hrp_bin_peak` reads over, expressed musically so it holds across the range. A different law from HRP_COLLISION_CENTS (§30's SELECTION window, which stays above it): this one is the analyser's resolution, that one the corrector's. Generated into `omx_contract_limits.h` as `OMX_HRP_ATTRIBUTION_CENTS`; `hrp_attribute.h` reads it.
929
+ * @see data/kernels/hrp.json
930
+ */
931
+ export declare const HRP_ATTRIBUTION_CENTS: 60;
932
+
933
+ /**
934
+ * How many bands HRP may plant on ONE channel — its half of the machine budget, and the number that makes the budget FORECASTABLE rather than emergent. Without it the count is whatever the material happens to provoke: the placement law is sparse, so a clean note plants two bands and a resonant room plants nine, and nobody can answer "will this fit?" until it does not. With FBS senior (§9.3(b)) that discovery would happen at showtime, to the junior planter, silently. Declared instead, the whole sum is arithmetic an operator can read before a note is played: operator bands + FBS maxAutoBands + HRP maxAutoBands <= EQ_MAX_BANDS EIGHT — ONE CORRECTION PER VOICE at full polyphony (operator sizing, 2026-09-01). The detector's ceiling is HRP_MAX_VOICES voices, a guitar's six strings and a piano/string voicing's eight, and a budget below the voice count would decide by arithmetic which of the notes actually sounding may be corrected — a limit nobody could read off the desk. Scarcity is handled where it belongs instead: the candidates from every voice meet in ONE globally ranked list (spec §29) and the head of it is what gets planted. It is NOT a claim to seniority, and it is larger than FBS's six. Seniority is the ALLOCATION ORDER — `HrpPlanter` takes only `EQ_MAX_BANDS − others.length`, the remainder after the operator and every other machine — so a bigger junior default cannot reach a senior slot; it only means HRP asks for more of what is left. `eq-budget-fits.test.ts` asserts both halves. The per-channel DEFAULT; the row's travel is HRP_AUTO_BANDS_RANGE, so a channel that needs more can have more, as an explicit decision with a visible cost.
935
+ * @see data/kernels/hrp.json
936
+ */
937
+ export declare const HRP_DEFAULT_MAX_AUTO_BANDS: 8;
938
+
939
+ /**
940
+ * How much of the computed correction HRP applies: 0 = analyse only, 1 = the full cut. It comes up at 0.5, half the computed cut.
941
+ * @see data/kernels/hrp.json
942
+ */
943
+ export declare const HRP_AMOUNT_RANGE: {
944
+ readonly min: 0;
945
+ readonly max: 1;
946
+ readonly step: 0;
947
+ readonly unit: "";
948
+ readonly default: 0.5;
949
+ };
950
+
636
951
  /**
637
952
  * 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.
638
953
  * @see data/kernels/limiter.json
@@ -664,6 +979,12 @@ export declare const LIMITER_LIMITS: {
664
979
  };
665
980
  };
666
981
 
982
+ /**
983
+ * The input cap a summing bus can be sized to — **the engine's declared input ceiling**, read from `@freemixer/declarations` rather than re-typed here. A gig with more than this many inputs needs more than one engine node; below it a bus is sized to `min(N, BUS_INPUT_CAP)`. It was a literal 64 until 2026-09-15, said to mirror the engine's `MAX_BUS_INPUTS` — and it did, but that 64 was the PipeWire builtin mixer's single-tier fan-in (8 × 8), never the engine's bound: the native node has allocated `OMX_MAX_STRIPS` (128) strips all along. Two literals agreeing by hand is how the console came to refuse a 96-channel desk it could carry. `native-input-ceiling.test.ts` holds this to the C header; spec `docs/design/specs/2026-09-14-console-allocation.md` §9 carries the ruling and the measured cost of width.
984
+ * @see data/kernels/mixmatrix.json
985
+ */
986
+ export declare const BUS_INPUT_CAP: 128;
987
+
667
988
  /**
668
989
  * The phaser's sweep speed (§3). `omx_lfo_inc` freezes at Nyquist; this travel stays far below.
669
990
  * @see data/kernels/phaser.json
@@ -795,6 +1116,12 @@ export declare const PHASER_TRAVELS: {
795
1116
  };
796
1117
  };
797
1118
 
1119
+ /**
1120
+ * The highest frequency the phaser's all-pass sweep reaches, Hz.
1121
+ * @see data/kernels/phaser.json
1122
+ */
1123
+ export declare const PHASER_F_TOP_HZ: 16000;
1124
+
798
1125
  /**
799
1126
  * PITCH_LIMITS, moved from openmixer.
800
1127
  * @see data/kernels/pitch.json
@@ -986,6 +1313,18 @@ export declare const REVERB_GATE_THRESHOLD_RANGE: {
986
1313
  readonly defaultFrom: "desk";
987
1314
  };
988
1315
 
1316
+ /**
1317
+ * The reverb's algorithms, in the order of the integer the kernel reads. Reverse and gated are the room network handed a window and a gate.
1318
+ * @see data/kernels/reverb.json
1319
+ */
1320
+ export declare const REVERB_ALGORITHMS: readonly ["room", "plate", "hall", "reverse", "gated"];
1321
+
1322
+ /**
1323
+ * The gated reverb's gate attack, ms: the time the gate takes to open on a hit.
1324
+ * @see data/kernels/reverb.json
1325
+ */
1326
+ export declare const REVERB_GATE_ATTACK_MS: 1.5;
1327
+
989
1328
  /**
990
1329
  * The horn's chorale (slow) rate, Hz.
991
1330
  * @see data/kernels/rotary.json
@@ -1212,6 +1551,24 @@ export declare const ROTARY_STOP_EPS: 0.0001;
1212
1551
  */
1213
1552
  export declare const ROTARY_RING_FLOATS: 256;
1214
1553
 
1554
+ /**
1555
+ * The rotary speaker's speed settings, in the order of the integer the kernel reads: the rotors stopped, at their chorale (slow) rate, or at their tremolo (fast) rate.
1556
+ * @see data/kernels/rotary.json
1557
+ */
1558
+ export declare const ROTARY_SPEEDS: readonly ["stop", "slow", "fast"];
1559
+
1560
+ /**
1561
+ * The RTA's target bin resolution — generated into `omx_contract_limits.h` as `OMX_RTA_TARGET_BIN_HZ`, which `mix_dsp.h` reads; `rta-window-derivation.test.ts` reads it back from the header.
1562
+ * @see data/kernels/rta.json
1563
+ */
1564
+ export declare const RTA_TARGET_BIN_HZ: 5.9;
1565
+
1566
+ /**
1567
+ * The largest RTA FFT the native ring holds — generated into `omx_contract_limits.h` as `OMX_RTA_FFT_SIZE_MAX`.
1568
+ * @see data/kernels/rta.json
1569
+ */
1570
+ export declare const RTA_FFT_SIZE_MAX: 32768;
1571
+
1215
1572
  /**
1216
1573
  * 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).
1217
1574
  * @see data/kernels/transient.json
@@ -1353,6 +1710,12 @@ export declare const TREMOLO_TRAVELS: {
1353
1710
  };
1354
1711
  };
1355
1712
 
1713
+ /**
1714
+ * What the tremolo's one oscillator modulates, in the order of the integer the kernel reads: the level of both legs in phase (tremolo), or the balance law's position with the legs in opposition (pan).
1715
+ * @see data/kernels/tremolo.json
1716
+ */
1717
+ export declare const TREMOLO_MODES: readonly ["tremolo", "pan"];
1718
+
1356
1719
  /**
1357
1720
  * The Q of a second-order Butterworth section, 1/√2 — maximally flat, the one value every Butterworth biquad in the tree designs at: the LR4 crossover section, the pitch pre-filter and the drive's tilt / band / HF sections, in TS and (as `OMX_BUTTERWORTH_Q`) in C (§7, the scalar door).
1358
1721
  * @see data/primitives.json
@@ -1466,6 +1829,40 @@ export declare const TRIM_TRAVELS: {
1466
1829
  };
1467
1830
  };
1468
1831
 
1832
+ /**
1833
+ * How a host draws a parameter: linear, logarithmic (a frequency, a time) or in discrete steps. The words omx-plugins' declarations and plugin-hostd's protocol use; a travel names its own with `scale`.
1834
+ * @see data/primitives.json
1835
+ */
1836
+ export declare const PARAM_SCALES: readonly ["linear", "log", "stepped"];
1837
+
1838
+ /**
1839
+ * The EQ's three frequency travels as a host draws them: the band frequency, the high-pass corner and the low-pass corner, EQ_FREQ_RANGE's, HPF_FREQ_RANGE's and LPF_FREQ_RANGE's bounds with no step and a logarithmic scale. The console's EQ quantises frequency to 10 Hz; a frequency drags continuously on a log axis, which is how every host draws it, so this is the form the omx-plugins read. Every number but the step is the source's, held equal by test/continuous-travels.test.mjs. Not rendered to C: no C reader needs a second spelling of the EQ's bounds.
1840
+ * @see data/primitives.json
1841
+ */
1842
+ export declare const EQ_CONTINUOUS_TRAVELS: {
1843
+ readonly freqHz: {
1844
+ readonly min: 20;
1845
+ readonly max: 20000;
1846
+ readonly step: 0;
1847
+ readonly unit: "Hz";
1848
+ readonly scale: "log";
1849
+ };
1850
+ readonly hpfFreqHz: {
1851
+ readonly min: 20;
1852
+ readonly max: 1000;
1853
+ readonly step: 0;
1854
+ readonly unit: "Hz";
1855
+ readonly scale: "log";
1856
+ };
1857
+ readonly lpfFreqHz: {
1858
+ readonly min: 1000;
1859
+ readonly max: 20000;
1860
+ readonly step: 0;
1861
+ readonly unit: "Hz";
1862
+ readonly scale: "log";
1863
+ };
1864
+ };
1865
+
1469
1866
  /**
1470
1867
  * 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.
1471
1868
  * @see data/rates.json
@@ -1486,3 +1883,22 @@ export declare const RT_HARD_TARGET: {
1486
1883
  * @see data/rates.json
1487
1884
  */
1488
1885
  export declare const DSP_KNOB_REFERENCE_RATE: 96000;
1886
+
1887
+ /**
1888
+ * The four rates every kernel oracle runs at, whatever STANDARD_SAMPLE_RATES says: a declared list missing one of them stops a suite instead of testing less (omx-dsp, omx-plugins and omx-clap-host run their oracles at these).
1889
+ * @see data/rates.json
1890
+ */
1891
+ export declare const ORACLE_FLOOR_RATES: readonly [44100, 48000, 96000, 192000];
1892
+
1893
+ /**
1894
+ * The nine rates an RME interface clocks at, 32 to 192 kHz. STANDARD_SAMPLE_RATES is a subset of them; an oracle that runs here also covers 32, 64 and 128 kHz, where a kernel still has to meet its closed form even though the console never asks for them.
1895
+ * @see data/rates.json
1896
+ */
1897
+ export declare const RME_RATES: readonly [32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000];
1898
+
1899
+ /** The default band centres (Hz) of an EQ with `count` bands: THE one rule, for every strip, host and count. */
1900
+ export declare function eqDefaultCentres(count: number): number[];
1901
+ /** The default band types, by EQ_BAND_TYPES id: a low shelf, bells, a high shelf (a single band is a bell). */
1902
+ export declare function eqDefaultTypes(count: number): string[];
1903
+ /** Every default band of an EQ with `count` bands: type, centre, gain and Q. */
1904
+ export declare function eqDefaultBands(count: number): { type: string; freqHz: number; gainDb: number; q: number }[];