Files
Claude 022dc7948f V10.8.89 GLOBAL ENV: GLO > ENV, the four stages of every track's envelope scaled at once
Juan: "me gustaria agregar una pagina en home o global, una pagina que se llame global envelope que cada
etapa del adsr en off deje como estan los canales y cada uno aumenta proporcionalmente por ejemplo el decay
en todas las pistas".

- GLO > ENV (a fourth tab after SETUP; MIXER -> SETUP -> ENV -> PADS): GLOBAL ENVELOPE, KNOB 1..4 ATK DEC
  SUS REL, -19..19, the middle OFF. Each step is one step of ENV's own knob (times 1 ms..10 s over 127), so
  every track gets the same factor whatever its value: right up to x3.97, left down to x0.25; SUS scales the
  level by the factor (clamped). The card shows OFF / x1.55 / x0.48 (ENV's names and icons).
- What it moves (mod.c genv_mod, after LIFE's routes in mod_begin, per block, put back by mod_end): the ENV
  page's envelope of every track (synth amplitude, ENV DEST through it, FM6 through its ENV mapping, a kit's
  ENV) and a DRUM kit's hits' DECAY (P_E3, DECAY's steps x1.5: the kit's 9 octaves over 127). ENV 2, filter
  and FM6 operator envelopes untouched.
- OFF: mod_begin's early way out as before, nothing runs, the sound bit for bit (245 golden renders unchanged).
- Saved with the project: FUNC 'G' 'E' block after 'C' 'K', written only when a knob is off OFF; projects of
  before load OFF; CLEAR PROJECT sets OFF; autosave sees it (eq_v's store, now 8 halfwords).
- Flash: EQ_DESC / eq_v shared with the new four (one table, one store), ENV's existing label strings,
  G.COMP's dead PAGES row reused. No ADSR picture (default title + scope), for the reserve.
- tests/genv_test.c (CI voice-user-check): OFF bit for bit on ANALOG and DRUM, DECAY x2.06 doubles the decay
  on both (2.12 / 1.91), SUSTAIN, the page and its texts, project round trip. ui_test: GLO chain 8 pages.
  ui_render: glo_genv, glo_genv_set. Manuals (EN/ES): GLO tables and a GLOBAL ENVELOPE section.

Flash: 8208 B free (was 8820, reserve 8192). RAM .data+.bss 97948 (+8). RAM code 39332/42496. Pool spare
8192. No pinned sound function moved; genv_mod placed after the tables (new sound function, no repin).
CPU: target_budget mod_begin 291 -> 300 insns, loop cost 199 unchanged; cpu_lines 101 core 0 61/80 % ->
61/79 %, core 1 42/42 % unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-12-05 22:55:53 +00:00
..