Files
JIANT/firmware
Claude d03b4046e2 V10.8.71: FX > OTT, JIANT BYTE's two-band compressor on each track
Juan approved the port. BYTE 43923fd4 (Juan's GPL code), on FM's tracks,
FX chain, UI, project and preset formats and editor protocol:
- fx.c ott_block, after DIST in mix_part: a one-pole split at X-OVER,
  each band's block peak followed in log2 at TIME, the gains computed
  once a block and ramped across the next. DEPTH 0: not called, the
  track bit for bit. Under the overload guard (voice.c) half the depth;
  past 90 % average load none. The sound is never cut.
- The gain law is BYTE v1.1b4's, from the spec (Juan: "at 100 it barely
  changes the sound"): up to +28 dB upward below -12 dBFS, about 10:1
  downward above -15 dBFS, DEPTH squared, TIME 72 by default (attack
  ~1.5 ms, release ~40 ms), an 8:1 limiter over -3 dBFS. A -40 dBFS
  sine comes out at -13.5 dBFS, a -6 dBFS one at -10.1.
- FX > TRACK's fourth page OTT: DEPTH TIME UP/DN X-OVER (page ids
  0xB0..0xB3: BYTE's 0xD0 is DRONE CLAY's here). Its name large
  (page_big), LOW and HIGH: the level in dim grey cells (gx_col), the
  gain on the thermal ramp by its amount, with its dB. HOME's ECO tags
  a track with OTT on, in the same thermal colour.
- Kept with a project ('O' 'T' after 'G' 'T') and a user preset (byte
  138 'O', the four before it). Each value is stored less its default,
  so TIME, UP/DN and X-OVER are kept at DEPTH 0 too (BYTE's pending
  fix). Older files load with OTT off.
- Editor protocol 1.4: special ids P_COUNT + 0..3 (123..126) for OTT
  through TRACK_PARAM (31) and DESC; UI caps bit 4. BYTE's 0xD0..0xD3
  are not 7-bit bytes, and 0x50..0x53 are FM parameters. GET / SET,
  DUMP and the pushes are unchanged.
- GLO's map names A4 RESOUND, as G4 UNDO.

Flash (V10.8.70: 228 B free; OTT costs ~1.9 KB):
- str_cat and fmt_cat: one helper for the UI's 143 appends and 32
  number appends (-680 B image, -64 B BT);
- project.c: one writer and one reader for the array blocks
  (proj_blk, proj_at, proj_get: -500 B);
- more name tables packed with str_nth; the three note-name tables
  are one list;
- fam_on, home_is, ui_timers: one helper each;
- DRONE CLAY's main-loop side built for size; a note's start, a
  FILL, a CLAY strike and other once-an-event sound functions
  built for size (size_fns.py event_size).
Image 176 B free, BT 88 B free, RAM .data+.bss 1072 B free, pool spare
8224 B, RAM code 40200 of 42496 B. audio.c is V23's; the V23 renders
are present. REPIN=keep; a plain build passes.

CPU (tests/cpu_lines_test.py), each scene's worst block on core 0 and
core 1, V10.8.70 -> V10.8.71 OTT off -> every track at DEPTH 100:
  101 78/44 -> 79/44 -> 83/47    102 61/28 -> 62/28 -> 66/31
  103 80/14 -> 81/14 -> 84/14    104 46/14 -> 46/14 -> 49/14
  105 65/41 -> 66/41 -> 69/44    106 52/35 -> 53/36 -> 56/39
  107 58/11 -> 58/11 -> 62/11    108 51/29 -> 51/29 -> 55/32
  0c  70/58 -> 70/58 -> 74/62
With OTT off the sound's code sits up to 28 B off its old 32-byte
lines (the layout moved). The same build without the per-event minsize
measures the same.

tests/ott_test.c (in CI), cpu_lines_test.c CL_OTT, app_contract (the
special ids), ui_test (the FX chain of 20, GLO's RESOUND).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-28 12:39:39 +00:00
..