From 022dc7948fa92044916ff9104db9e85c4ce8eb89 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 5 Dec 2026 22:55:53 +0000 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh --- .github/workflows/voice-user-check.yml | 2 + docs/MANUAL.es.md | 39 +++++- docs/MANUAL.md | 35 +++++- firmware/src/mod.c | 31 ++++- firmware/src/params.c | 58 +++++++-- firmware/src/project.c | 23 +++- firmware/src/ui_lens.c | 6 +- tests/genv_test.c | 165 +++++++++++++++++++++++++ tests/ui_render.c | 12 +- tests/ui_test.c | 10 +- tools/audio_map.txt | 35 +++--- 11 files changed, 365 insertions(+), 51 deletions(-) create mode 100644 tests/genv_test.c diff --git a/.github/workflows/voice-user-check.yml b/.github/workflows/voice-user-check.yml index 79f2ea52..0acbfb62 100644 --- a/.github/workflows/voice-user-check.yml +++ b/.github/workflows/voice-user-check.yml @@ -225,6 +225,8 @@ jobs: build/song-check/stepfx | tee build/song-check/stepfx.log cc -O1 -w -Wno-implicit-function-declaration -Ibuild/gen -Ifirmware/src -Itests tests/pads_test.c -lm -o build/song-check/pads build/song-check/pads | tee build/song-check/pads.log + cc -O1 -w -Wno-implicit-function-declaration -Ibuild/gen -Ifirmware/src -Itests tests/genv_test.c -lm -o build/song-check/genv # (V10.8.89) GLO > GLOBAL ENVELOPE + build/song-check/genv | tee build/song-check/genv.log cc -O1 -w -Wno-implicit-function-declaration -Ibuild/gen -Ifirmware/src -Itests tests/clay_test.c -lm -o build/song-check/clay build/song-check/clay | tee build/song-check/clay.log cc -O1 -w -Wno-implicit-function-declaration -Ibuild/gen -Ifirmware/src -Itests tests/clay_engines_test.c -lm -o build/song-check/clay-engines diff --git a/docs/MANUAL.es.md b/docs/MANUAL.es.md index 0158e5fe..f7a22e14 100644 --- a/docs/MANUAL.es.md +++ b/docs/MANUAL.es.md @@ -197,7 +197,7 @@ Los nombres de abajo son los que usa el firmware (la pantalla HARDWARE CALIBRATI | **FX** | La sección FX: desde otro lado, la última página mostrada; adentro, el módulo siguiente: **TRACK → BUSES → DELAY → REVERB → CHORUS → SLICER → PUNCH IN → MASTER** (MASTER · TAPE · EQ), en ronda. | Capa de **FX punch-in**. | | **SCL** | La sección SCL (0.9.2: propia, separada de ARP): **KEY → CHORD → SCENE** (V10.24). | Capa **SCL**: las teclas fijan la tónica. | | **EDIT** | La sección EDIT: desde otro lado, la última página mostrada (una memoria para los sintes y una para FM6 y otra para DRUM); adentro el grupo siguiente: **SOUND → TONE → FOCUS** (FM6: SOUND → TONE → OPERATOR; DRUM: KIT → SOUND → LEVELS → TONE). Siempre EDIT (0.9.2: borrar un paso es SEQ + G5, renombrar SAVE + C5). Un paso mantenido + EDIT sigue borrando los locks de ese paso. | Capa **EDIT**: INIT, RECALL, mutes de los sonidos de DRUM-X, SELECT los dados de sonido. Mantenido + KNOB 1–4: **MOMENTARY** (la página de abajo, vuelve al soltar). | -| **GLO** | La sección GLO: desde otro lado, la última página mostrada; adentro **PADS → MIX → SETUP**, en ronda (al prender MIXER; PADS, las teclas como pads, primero, donde estuvo LIVE hasta la V10.8.3; G.COMP se fue en la V10.8.21; SETUP junta GLOBAL, SYSTEM y KEY SPLIT). | Capa **GLO**: mutes, solos, niveles, tap tempo, UNDO. | +| **GLO** | La sección GLO: desde otro lado, la última página mostrada; adentro **PADS → MIX → SETUP → ENV**, en ronda (al prender MIXER; PADS, las teclas como pads, primero, donde estuvo LIVE hasta la V10.8.3; G.COMP se fue en la V10.8.21; SETUP junta GLOBAL, SYSTEM y KEY SPLIT; ENV, V10.8.89, el GLOBAL ENVELOPE). | Capa **GLO**: mutes, solos, niveles, tap tempo, UNDO. | | **SAVE** | La sección SAVE: desde otro lado, la última página mostrada, y USER o PART SLOTS llegan con su **SAVE ya elegido** (SAVE, OCT+, OCT+ como antes); adentro **TOOLS → SONG → PROJECT → SOUND**, en ronda (V10.2: primero el tema; al prender TIMELINE; V10.7.22: TOOLS, con CLEAR PROJECT, es la primera página, un paso de SELECT a la izquierda de TIMELINE). | Capa **SAVE**: tocar/guardar secciones en vivo; C5 NAME. | | **ARP** | La sección ARP (ARP · ARP 2, un grupo): desde otro lado, la última página mostrada; adentro, vuelve a ARP. Un acorde mantenido + ARP al grabar por pasos lo sigue arpegiando. | (sin capa) | | **SEQ** | La sección SEQ: desde otro lado, la última página mostrada (al encender STEP, el piano roll); adentro el grupo siguiente (V10.6): **STEP → PATTERN → EUCLID → PLAYHEADS → STRETCH → COMP → AUTO → TRACK GEN**, en ronda. | Capa **SEQ TOOLS** (en todas las páginas SEQ); G5 CLR STEP. | @@ -425,7 +425,7 @@ la misma de la 0.9.1, con sus perillas y su dibujo (los que dibujaban las lentes | **EDIT** (DRUM) | **KIT**: KIT · KIT 2 · KIT 3 · KIT 4 — **SOUND**: SOUND · SOUND 2 · SOUND 3 · SOUND 4 — **LEVELS**: LEVELS · LEVELS 2 — **TONE**: X-MOD · FILTER · STEREO · PLAY | 14 | | **SEQ** | (V10.6) **STEP**: STEP — **PATTERN**: LENGTH · RHYTHM · TRACK — **EUCLID**: EUCLID · MODES · MUTATE — **PLAYHEADS**: PLAYHEADS — **STRETCH**: STRETCH — **COMP**: COMP · COMP 2 — **AUTO**: AUTOMATION · AUTO LIST · LYRIC STEP (VOICE) — **TRACK GEN**: TRACK GEN | 15 | | **FX** | **TRACK**: SENDS · DIST · AUTO PAN — **BUSES**: BUSES — **DELAY**: DLY · DLY 2 · DLY 3 — **REVERB**: REVERB · REVERB 2 · GATE — **CHORUS**: CHORUS — **SLICER**: SLICER · SL BUS · SL BUS 2 · SL PITCH — **PUNCH IN**: PUNCH IN — **MASTER**: MASTER · TAPE · EQ | 18 | -| **GLO** | **PADS**: PADS — **MIX**: MIXER · SENDS — **SETUP**: GLOBAL · SYSTEM · KEY SPLIT · KEY SPLIT 2 | 7 | +| **GLO** | **PADS**: PADS — **MIX**: MIXER · SENDS — **SETUP**: GLOBAL · SYSTEM · KEY SPLIT · KEY SPLIT 2 — **ENV**: GLOBAL ENVELOPE | 8 | | **ENV** | **ENV**: ENV · ENV DEST · ENV 2 — **STAGE**: STAGE — **TRACKS**: TRACKS (codex/coherence: al final; TRACKS DEST, gemela de ENV DEST, ya no está) | 5 | | **LFO** | **MOD**: MOD — **LFO**: LFO · LFO DEST — **MSEQ**: MSEQ · MSEQ 2 | 5 | | **SCL** | **KEY**: SCL — **CHORD**: CHORD — **SCENE**: SCENE (V10.24) | 3 | @@ -571,7 +571,7 @@ PHASE −1, como desde 0.6.51: todo proyecto abre como estaba. | SWARM, SWARM 2 (V10.6z6) | SIDE (FAR / NEAR) | los RATE, MOVE, TONE / NOISE, MOD de ese lado | | (SWARM 2: NOW, el morph y su fuente) | EXT con SOURCE SWARM | | FOCUS (0.8.5) | PARAM (E1–E8) | su valor | SRC (el slot de MOD sobre él) | AMT | los sintes (no FM6, DRUM) | -**GLO** (PADS, GLOBAL y SYSTEM son globales; MIXER es por pista) +**GLO** (PADS, GLOBAL, SYSTEM y GLOBAL ENVELOPE son globales; MIXER es por pista) | Página | KNOB 1 | KNOB 2 | KNOB 3 | KNOB 4 | | --- | --- | --- | --- | --- | @@ -582,6 +582,7 @@ PHASE −1, como desde 0.6.51: todo proyecto abre como estaba. | SENDS (0.8.5) | CHORUS | DLY | REV | — (los de la pista seleccionada, como FX > SENDS) | | GLOBAL | BPM | SWING | CLOCK | TUNE | | SYSTEM | TRACKS | LOAD | ROUTE | CPU (%) | +| GLOBAL ENVELOPE (V10.8.89) | ATK (**OFF**, x0.25 … x3.97) | DEC (igual) | SUS (igual, el nivel) | REL (igual) | **SAVE** @@ -2505,7 +2506,7 @@ pequeña curva de respuesta donde iría la barra. ### PADS (GLO › PADS) Las teclas se vuelven pads, uno por pista, como en una MPC: tocás los patrones con los dedos, con el transporte parado -o andando. Es la primera página de GLO (un toque de GLO desde SETUP, o SELECT a la izquierda de MIXER; GLO sigue +o andando. Es la primera página de GLO (un toque de GLO desde ENV, o SELECT a la izquierda de MIXER; GLO sigue abriendo en el MIXER). - **Teclas blancas 1–6** (F3 … D4): los pads de T1–T6 (T5 y T6 solo con TRACKS 6). Las otras teclas blancas todavía @@ -2542,6 +2543,36 @@ set no tiene que cambiar lo que hacen tus dedos. Al prender: PLAY, RESTART, 1/16 En PLAY parado no corren la automatización, C.LEN, PLAYHEADS ni la grabación (son del transporte). Con un clock externo (GLOBAL CLOCK USB o TRS) y su transporte parado, los pads tocan al tempo interno (GLOBAL BPM). +### GLOBAL ENVELOPE (GLO › ENV, V10.8.89) + +Alargá o acortá las envolventes de todas las pistas a la vez, sin tocar lo que tiene cada pista: una perilla alarga +todos los decays, otra acorta todos los releases. Es la última solapa de GLO: un toque de GLO desde SETUP (MIXER → +SETUP → ENV → PADS), o SELECT pasando KEY SPLIT 2. + +| KNOB 1 | KNOB 2 | KNOB 3 | KNOB 4 | +| --- | --- | --- | --- | +| ATK (ataque) | DEC (decay) | SUS (sustain) | REL (release) | + +- Cada perilla tiene 19 pasos a cada lado del medio. El medio es **OFF**: las pistas suenan exactamente como están, bit + por bit (no corre nada). +- **A la derecha** esa etapa se alarga en todas las pistas, hasta **x3.97** (unas cuatro veces); **a la izquierda** se + acorta, hasta **x0.25** (la cuarta parte). La tarjeta muestra el factor: x1.55, x2.06, x0.48 … Cada paso es un paso + de la perilla del propio ENV (los tiempos de ENV van de 1 ms a 10 s en 127 pasos), así que todas las pistas reciben + el mismo factor, tengan el valor que tengan: DECAY en x2.06 (10 pasos a la derecha) duplica el decay de todas. +- **SUS** multiplica el nivel de sustain de cada pista por su factor (x0.25 … x3.97), hasta el tope. +- **Qué cambia**: la envolvente de la página ENV de cada pista — la envolvente de amplitud de un sinte (y ENV DEST, que + va con ella), FM6 a través de la envolvente que toma de ENV, el ENV de un kit DRUM — y los golpes de un kit DRUM: su + DECAY sigue a la perilla DEC (x2.06: cada golpe suena más o menos el doble). **Qué no toca**: ENV 2, las envolventes + propias de los filtros y las de cada operador de FM6 (solo la de amplitud y el DECAY del kit, así el carácter del + sonido queda). +- Funciona como una modulación: ninguna perilla de pista se mueve (ENV sigue mostrando el valor propio de cada pista) y + al volver a OFF todo queda como estaba. Una etapa que ya está en su punta (DECAY 127) no puede ir más allá; en 0 no + se acorta más. +- Un cambio se oye en el bloque siguiente (~1,5 ms); un golpe de batería que ya está sonando puede quedarse con el + decay con el que arrancó. +- **Se guarda con el proyecto** (el bloque 'G' 'E' de FUNC). Los proyectos de antes cargan con OFF; CLEAR PROJECT lo + pone en OFF. + ### Secuencias en vivo: GLO › LIVE (0.9.11) (V10.8.3: estas páginas se fueron de GLO, por la flash del modo tema; JAM toca las secuencias en vivo y GLO › PADS diff --git a/docs/MANUAL.md b/docs/MANUAL.md index 174b6e31..eb81b7bb 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -186,7 +186,7 @@ The names below are the ones the firmware uses (the HARDWARE CALIBRATION screen | **FX** | The FX section: from elsewhere the page last shown; inside, the next module: **TRACK → BUSES → DELAY → REVERB → CHORUS → SLICER → PUNCH IN → MASTER** (MASTER · TAPE · EQ), round. | **Punch-in FX** layer. | | **SCL** | The SCL section (0.9.2: its own, ARP apart): **KEY → CHORD → SCENE** (V10.24). | **SCL** layer: keys set the root. | | **EDIT** | The EDIT section: from elsewhere the page last shown (one memory for the synths, one each for FM6 and DRUM); inside the next group: **SOUND → TONE → FOCUS** (FM6: SOUND → TONE → OPERATOR; DRUM: KIT → SOUND → LEVELS → TONE). Always EDIT (0.9.2: clearing a step is SEQ + G5, renaming SAVE + C5). A step held + EDIT still clears that step's locks. | **EDIT** layer: INIT, RECALL, DRUM-X sound mutes, SELECT the sound dice. Held + KNOB 1–4: **MOMENTARY** (the page under, put back when let go). | -| **GLO** | The GLO section: from elsewhere the page last shown; inside **PADS → MIX → SETUP**, round (at power-on MIXER; PADS, the keys as pads, first, where LIVE was until V10.8.3; G.COMP gone in V10.8.21; SETUP holds GLOBAL, SYSTEM and KEY SPLIT). | **GLO** layer: mutes, solos, levels, tap tempo, UNDO. | +| **GLO** | The GLO section: from elsewhere the page last shown; inside **PADS → MIX → SETUP → ENV**, round (at power-on MIXER; PADS, the keys as pads, first, where LIVE was until V10.8.3; G.COMP gone in V10.8.21; SETUP holds GLOBAL, SYSTEM and KEY SPLIT; ENV, V10.8.89, the GLOBAL ENVELOPE). | **GLO** layer: mutes, solos, levels, tap tempo, UNDO. | | **SAVE** | The SAVE section: from elsewhere the page last shown, and USER or PART SLOTS come with their **SAVE already picked** (SAVE, OCT+, OCT+ as before); inside **TOOLS → SONG → PROJECT → SOUND**, round (V10.2: the song first; at power-on TIMELINE; V10.7.22: TOOLS, with CLEAR PROJECT, the first page, one SELECT left of TIMELINE). | **SAVE** layer: play/store parts live; C5 NAME. | | **ARP** | The ARP section (ARP · ARP 2, one group): from elsewhere the page last shown; inside, back to ARP. A chord held + ARP during step recording still arpeggiates it. | (no layer) | | **SEQ** | The SEQ section: from elsewhere the page last shown (at power-on STEP, the piano roll); inside the next group (V10.6): **STEP → PATTERN → EUCLID → PLAYHEADS → STRETCH → COMP → AUTO → TRACK GEN**, round. | **SEQ TOOLS** layer (on every SEQ page); G5 CLR STEP. | @@ -405,7 +405,7 @@ it was in 0.9.1, with its knobs and its picture (the ones 0.8.5's lenses drew). | **EDIT** (DRUM) | **KIT**: KIT · KIT 2 · KIT 3 · KIT 4 — **SOUND**: SOUND · SOUND 2 · SOUND 3 · SOUND 4 — **LEVELS**: LEVELS · LEVELS 2 — **TONE**: X-MOD · FILTER · STEREO · PLAY | 14 | | **SEQ** | (V10.6) **STEP**: STEP — **PATTERN**: LENGTH · RHYTHM · TRACK — **EUCLID**: EUCLID · MODES · MUTATE — **PLAYHEADS**: PLAYHEADS — **STRETCH**: STRETCH — **COMP**: COMP · COMP 2 — **AUTO**: AUTOMATION · AUTO LIST · LYRIC STEP (VOICE) — **TRACK GEN**: TRACK GEN | 15 | | **FX** | **TRACK**: SENDS · DIST · AUTO PAN — **BUSES**: BUSES — **DELAY**: DLY · DLY 2 · DLY 3 — **REVERB**: REVERB · REVERB 2 · GATE — **CHORUS**: CHORUS — **SLICER**: SLICER · SL BUS · SL BUS 2 · SL PITCH — **PUNCH IN**: PUNCH IN — **MASTER**: MASTER · TAPE · EQ | 18 | -| **GLO** | **PADS**: PADS — **MIX**: MIXER · SENDS — **SETUP**: GLOBAL · SYSTEM · KEY SPLIT · KEY SPLIT 2 | 7 | +| **GLO** | **PADS**: PADS — **MIX**: MIXER · SENDS — **SETUP**: GLOBAL · SYSTEM · KEY SPLIT · KEY SPLIT 2 — **ENV**: GLOBAL ENVELOPE | 8 | | **ENV** | **ENV**: ENV · ENV DEST · ENV 2 — **STAGE**: STAGE — **TRACKS**: TRACKS (codex/coherence: last; TRACKS DEST gone, ENV DEST's twin) | 5 | | **LFO** | **MOD**: MOD — **LFO**: LFO · LFO DEST — **MSEQ**: MSEQ · MSEQ 2 | 5 | | **SCL** | **KEY**: SCL — **CHORD**: CHORD — **SCENE**: SCENE (V10.24) | 3 | @@ -547,7 +547,7 @@ since 0.6.51: every project opens as it was. | SWARM, SWARM 2 (V10.6z6) | SIDE (FAR / NEAR) | that side's RATE, MOVE, TONE / NOISE, MOD | | (SWARM 2: NOW, the morph and its source) | EXT with SOURCE SWARM | | FOCUS (0.8.5) | PARAM (E1–E8) | its value | SRC (the MOD slot on it) | AMT | the synths (not FM6, DRUM) | -**GLO** (PADS, GLOBAL and SYSTEM are global; MIXER is per track) +**GLO** (PADS, GLOBAL, SYSTEM and GLOBAL ENVELOPE are global; MIXER is per track) | Page | KNOB 1 | KNOB 2 | KNOB 3 | KNOB 4 | | --- | --- | --- | --- | --- | @@ -559,6 +559,7 @@ since 0.6.51: every project opens as it was. | G.COMP, G.COMP 2 (were COMPS; gone in V10.8.21) | the global lane's step components (V10.37: right after MIX) | | | | | GLOBAL | BPM | SWING | CLOCK | TUNE | | SYSTEM | TRACKS | LOAD | ROUTE | CPU (%) | +| GLOBAL ENVELOPE (V10.8.89) | ATK (**OFF**, x0.25 … x3.97) | DEC (same) | SUS (same, the level) | REL (same) | **SAVE** @@ -2375,7 +2376,7 @@ curve where the bar would be. ### PADS (GLO › PADS) The keys become pads, one per track, as on an MPC: you play the patterns with your fingers, with the transport stopped -or running. GLO's first page (a GLO tap from SETUP, or SELECT left of MIXER; GLO still opens on the MIXER). +or running. GLO's first page (a GLO tap from ENV, or SELECT left of MIXER; GLO still opens on the MIXER). - **White keys 1–6** (F3 … D4) are the pads of T1–T6 (T5 and T6 only with TRACKS 6). The other white keys do nothing yet; they stay dark. @@ -2409,6 +2410,32 @@ mid-set must not change what your fingers do. At power-on they are PLAY, RESTART Not in stopped PLAY: automation, C.LEN, PLAYHEADS and recording (they belong to the transport). With an external clock (GLOBAL CLOCK USB or TRS) and its transport stopped, the pads play at the internal tempo (GLOBAL BPM). +### GLOBAL ENVELOPE (GLO › ENV, V10.8.89) + +Lengthen or shorten the envelopes of every track at once, without touching any track's own settings: one knob makes +every decay longer, another every release shorter. GLO's last tab: a GLO tap from SETUP (MIXER → SETUP → ENV → PADS), +or SELECT on past KEY SPLIT 2. + +| KNOB 1 | KNOB 2 | KNOB 3 | KNOB 4 | +| --- | --- | --- | --- | +| ATK (attack) | DEC (decay) | SUS (sustain) | REL (release) | + +- Each knob has 19 steps on each side of the middle. The middle is **OFF**: the tracks sound exactly as they are, bit + for bit (nothing runs). +- **Right** makes that stage longer on every track, up to **x3.97** (about four times); **left** makes it shorter, down + to **x0.25** (a quarter). The card shows the factor: x1.55, x2.06, x0.48 … Each step is one step of ENV's own knob + (ENV's times go from 1 ms to 10 s over 127 steps), so every track gets the same factor whatever its own value: DECAY + at x2.06 (10 steps right) doubles every track's decay. +- **SUS** multiplies each track's sustain level by its factor (x0.25 … x3.97), up to the top. +- **What it changes**: the ENV page's envelope of every track — a synth's amplitude envelope (and ENV DEST, which rides + it), FM6 through the envelope it takes from ENV, a DRUM kit's ENV — and a DRUM kit's hits: their DECAY follows the + DEC knob (x2.06: every hit rings about twice as long). **What it leaves alone**: ENV 2, the filters' own envelopes + and FM6's per-operator envelopes (only the amplitude envelope and a kit's DECAY, so the sound's character stays). +- It works like a modulation: no track's knob moves (ENV still shows each track's own value) and back at OFF + everything is as it was. A stage already at its end (DECAY 127) cannot go further; at 0 it cannot go shorter. +- A change is heard on the next block (~1.5 ms); a drum hit already ringing may keep the decay it started with. +- **Saved with the project** (FUNC's 'G' 'E' block). Projects from before load with it OFF; CLEAR PROJECT sets it OFF. + ### Live sequences: GLO › LIVE (0.9.11) (V10.8.3: these pages left GLO, for the song mode's flash; JAM plays the sequences live and GLO › PADS takes their diff --git a/firmware/src/mod.c b/firmware/src/mod.c index 0a5f8e5b..3513368d 100644 --- a/firmware/src/mod.c +++ b/firmware/src/mod.c @@ -388,7 +388,9 @@ static __attribute__((noinline)) void life_mod(track_t *t, int32_t *off) off[j] += (((x * a) >> 6) * (pd->max - pd->min)) >> 15; } } -static void (*const volatile LIFE_MOD)(track_t *, int32_t *) = life_mod; /* (mod_begin's RAM copy: its reach) */ +static void genv_mod(track_t *t, int32_t *off); +static void (*const volatile LIFE_MOD)(track_t *, int32_t *) = genv_mod; /* (mod_begin's RAM copy: its reach; V10.8.89: + * genv_mod, life_mod first) */ /* (BYTE's 1adbf0a6) a per-block destination id moved by x, Q15 of its range: its slot among the block's, kept to put back */ static void clay_off(const track_t *t, mod_t *mp, int32_t *off, uint32_t id, int32_t x) @@ -408,6 +410,28 @@ static void clay_off(const track_t *t, mod_t *mp, int32_t *off, uint32_t id, int } off[j] += (x * (id == P_LRATE ? 127 : pd->max - pd->min)) >> 15; } +/* (V10.8.89) GLO > GLOBAL ENVELOPE (params.c genv_v) on track t, once a part's block while a knob is off its middle: ATK + * DEC REL each moved by its knob's steps (their times x 10000^(k/127)), SUS times that factor (GENV_F), and a kit's DECAY + * (P_E3: its hits') moved by DECAY's steps x1.5 (the kit's 9 octaves over 127 against ENV's 13.3: the same factor), added + * to what the slots move them by (clay_off: d steps of the 0..127 range, d * 258 + 1 above 0), put back by mod_end. A + * parameter with no room left among the block's stays as it is */ +static __attribute__((noinline)) void genv_mod(track_t *t, int32_t *off) +{ + uint32_t k; + life_mod(t, off); /* (LIFE's and a punch-in key's routes; none on: nothing) */ + if (!GENV_ON) + return; + for (k = 0; k < 5u; k++) { + int32_t g = genv_v[k & 3u], v = t->p[P_ATK + (k & 3u)], f = GENV_F[g < 0 ? -g : g], d = v + g; + if (k == 2u) + d = g > 0 ? (v * f + 32) >> 6 : (v * 64 + f / 2) / f; + d = clamp(d, 0, 127) - v; + if (k == 4u) + d = t->engine == ENGI_DRUM ? genv_v[1] + (genv_v[1] >> 1) : 0; + if (d) + clay_off(t, &MOD, off, k < 4u ? P_ATK + k : P_E3, d * 258 + (d > 0)); + } +} /* (FM) a destination's knob: CUTOFF on the engines whose filter is the track's (as the matrix), ANALOG's its E5 */ static uint32_t clay_param(const track_t *t, uint32_t d) { @@ -463,7 +487,7 @@ static __attribute__((noinline)) int mod_begin(track_t *t) for (k = 0; k < NMSLOT; k++) if (p[P_M1SRC + 3u * k] && p[P_M1DST + 3u * k] && p[P_M1AMT + 3u * k]) break; - if (k == NMSLOT && !mx_trk && !life_on && !pkr_v && !cl) + if (k == NMSLOT && !mx_trk && !life_on && !pkr_v && !cl && !GENV_ON) /* (V10.8.89: GLOBAL ENV) */ return 0; lfo = mulq15(t->lfo_val, t->lfo_fade); /* (the LFO of the block before: track_render ticks it) */ for (j = k; j < NMSLOT; j++) @@ -522,7 +546,8 @@ static __attribute__((noinline)) int mod_begin(track_t *t) if (cl) /* (V10.8.21, BYTE's) DRONE CLAY's four (out of mod_begin's * budget: its own function) */ clay_mod(mp, t, tr, off); - if (life_on || pkr_v) /* (V10.7.62) LIFE's routes; (V10.7.66) a punch-in key's */ + if (life_on || pkr_v || GENV_ON) /* (V10.7.62) LIFE's routes; (V10.7.66) a punch-in key's; (V10.8.89) + * GLOBAL ENVELOPE's (genv_mod, life_mod first) */ LIFE_MOD(t, off); for (j = 0; j < mp->nk; j++) { uint32_t id = mp->kid[j]; diff --git a/firmware/src/params.c b/firmware/src/params.c index 415d0d58..5c108bec 100644 --- a/firmware/src/params.c +++ b/firmware/src/params.c @@ -597,6 +597,32 @@ static int32_t semi_snap(int32_t v) best = C[i]; return best; } +/* (V10.8.89, the owner: "una página GLOBAL ENVELOPE ... cada etapa del ADSR en off deje como están los canales y cada uno + * aumenta proporcionalmente, por ejemplo el decay en todas las pistas") GLO > GLOBAL ENVELOPE: KNOB 1..4 ATTACK DECAY + * SUSTAIN RELEASE, -19 .. 19 each, 0 (the middle) OFF: every track's ENV as it is. Each step one of the times' own steps + * (ENV's knobs: 1 ms .. 10 s, x10000 over 127, so +k is every time x 10000^(k/127)): +19 x3.97, -19 x0.25, the same factor + * on every track whatever its own value; SUSTAIN its level times that factor (up to the top). The ENV page's envelope of + * every track (a synth's amplitude, and ENV DEST through it; a kit's ENV) and a kit's hits' DECAY (DECAY x1.5 in the kit's + * own steps: 9 octaves over 127); ENV 2, the filters' and the operators' own envelopes as they are. Applied a block at a + * time in the matrix's place (mod.c genv_mod, mod_begin): every knob OFF, nothing runs, the sound bit for bit. Kept with + * the project ('G' 'E', project.c; absent: OFF) */ +#define ID_GE0 0xB4u /* (past OTT's ids, under DRONE CLAY's) */ +#define GE_MAX 19 +_Static_assert(P_COUNT < ID_GE0 && ID_GE0 + 4u <= ID_CL0, "GLOBAL ENV's ids between the parameters and CLAY's"); +#define ID_EQ0 0xE0u +static const param_desc_t EQ_DESC[8] __attribute__((section(".rodata.tape"))) = { /* (V10.8.89: GLOBAL ENVELOPE's after + * the EQ's, ENV's names and icons; flash: one table, one store) */ + PD("LOW", F_INT, -12, 12, 0), PD("LO MID", F_INT, -12, 12, 0), PD("HI MID", F_INT, -12, 12, 0), PD("HIGH", F_INT, -12, 12, 0), + PD("ATK", F_INT, -GE_MAX, GE_MAX, 0), PD("DEC", F_INT, -GE_MAX, GE_MAX, 0), PD("SUS", F_INT, -GE_MAX, GE_MAX, 0), + PD("REL", F_INT, -GE_MAX, GE_MAX, 0)}; +#define GENV_DESC (EQ_DESC + 4) +static union { int16_t v[8]; uint32_t w[4]; } eqg __attribute__((section(".bss.tape"))); /* (out of the merged statics, as + * fx.c's djf) the master's EQ, then GLOBAL ENVELOPE's four */ +#define eq_v eqg.v +#define genv_v (eqg.v + 4) +#define GENV_ON (eqg.w[2] | eqg.w[3]) /* (a knob of GLOBAL ENVELOPE off its middle) */ +static const uint8_t GENV_F[GE_MAX + 1] __attribute__((section(".rodata.tape"))) = /* 10000^(k/127), Q6 */ + {64, 69, 74, 80, 86, 92, 99, 106, 114, 123, 132, 142, 153, 164, 177, 190, 204, 220, 236, 254}; static void param_format(const param_desc_t *d, int32_t v, char *val, const char **unit) { *unit = ""; @@ -627,6 +653,17 @@ static void param_format(const param_desc_t *d, int32_t v, char *val, const char d = &SEMI; v = 64 - v; } + if (d >= GENV_DESC && d < GENV_DESC + 4) { /* (V10.8.89) GLOBAL ENV: OFF, else its factor x0.25 .. x3.97 */ + int32_t f = GENV_F[v < 0 ? -v : v]; + fmt_named = 1; + str_cpy(val, "OFF", 6); + if (v) { + val[0] = 'x'; + val[1] = '0'; /* (x0.25: under 1 its 0) */ + fmt_fix(val + 1 + (v < 0), v > 0 ? (f * 100 + 32) >> 6 : (6400 + f / 2) / f, 2); + } + return; + } if (d == &VCONS_DESC) { /* (V10.6y) VOICE's CONS: 50 .. 400 % */ fmt_int(val, (int32_t)vcons_q6(v) * 100 / 64); *unit = "%"; @@ -829,10 +866,6 @@ static const param_desc_t VIS_DESC[4] = {PD("DENSITY", F_PCT, 0, 100, 0), PD("WO PEN("PALETTE", N_VPAL, 0), PD("REACT", F_PCT, 0, 100, 0)}; static int16_t vis_v[4] __attribute__((section(".bss.tape"))); static uint16_t vis_seed __attribute__((section(".bss.tape"))); /* (0: not set yet: vis_fig sets the knobs' defaults) */ -#define ID_EQ0 0xE0u -static const param_desc_t EQ_DESC[4] __attribute__((section(".rodata.tape"))) = { - PD("LOW", F_INT, -12, 12, 0), PD("LO MID", F_INT, -12, 12, 0), PD("HI MID", F_INT, -12, 12, 0), PD("HIGH", F_INT, -12, 12, 0)}; -static int16_t eq_v[4] __attribute__((section(".bss.tape"))); /* (out of the merged statics, as fx.c's djf) */ /* (V10.8.71, JIANT BYTE 43923fd4's, GPL) FX > OTT, a track each (fx.c ott_block): DEPTH (0: off, the track's chain as * before, bit for bit, not run), TIME (the envelopes' release, the attack's index 50 under it; V10.8.72: 48, ~32 ms back and 1 ms up, pumping with * the kick; a V10.8.71 file's TIME, kept less its default, comes 24 lower), UP/DN (- less upward, + less downward), X-OVER (the two bands' split). Not track parameters (as DIST's NOISE): kept with the project ('O' 'T', @@ -841,7 +874,7 @@ static int16_t eq_v[4] __attribute__((section(".bss.tape"))); /* (out of the m * Studio protocol as it was) */ #define ID_OT0 0xB0u enum { OT_DEPTH, OT_TIME, OT_UPDN, OT_XO, OT_N }; -_Static_assert(P_COUNT < ID_OT0 && ID_OT0 + OT_N <= ID_CL0 && MOT_DJF < ID_OT0, "OTT's ids between the parameters and CLAY's"); +_Static_assert(P_COUNT < ID_OT0 && ID_OT0 + OT_N <= ID_GE0 && MOT_DJF < ID_OT0, "OTT's ids between the parameters and GLOBAL ENV's"); static const param_desc_t OTT_DESC[OT_N] __attribute__((section(".rodata.tape"))) = { PD("DEPTH", F_PCT, 0, 100, 0), PD("TIME", F_TIME, 30, 100, 48), PD("UP/DN", F_BIPCT, -64, 63, 0), PD("X-OVER", F_CUTOFF, 15, 100, 37)}; @@ -956,8 +989,9 @@ static const page_t PAGES[] = { {"KEY SPLIT 2", FAM_GLO, SC_GLOBAL, GR_SPLIT2, {0xFF, 0xFF, 0xFF, 0xFF}}, {"LYRIC STEP", FAM_SEQ, SC_TRACK, GR_LYRSTEP, {0xFF,0xFF,0xFF,0xFF}}, {"TRACK GEN", FAM_SEQ, SC_TRACK, GR_TRACKGEN, {0xFF,0xFF,0xFF,0xFF}}, /* (codex/coherence: was GENERATE, beside HOME's GENE) */ - {"" /* G.COMP */, FAM_GLO, SC_GLOBAL, GR_GCOMP, {0xFF, 0xFF, 0xFF, 0xFF}}, /* (0.9.9-seq2f) the global lane's step: ACTION - * LENGTH CONDITION VALUE (ui_input.c gco_knob) */ + {"GLOBAL ENVELOPE", FAM_GLO, SC_GLOBAL, GR_NONE, {ID_GE0, ID_GE0 + 1u, ID_GE0 + 2u, ID_GE0 + 3u}}, /* (V10.8.89) GLO > + * GLOBAL ENVELOPE, in G.COMP's row (gone; the index kept): (0.9.9-seq2f) + * the global lane's step: ACTION LENGTH CONDITION VALUE */ {"" /* G.COMP 2 */, FAM_GLO, SC_GLOBAL, GR_GCOMP, {0xFF, 0xFF, 0xFF, 0xFF}}, /* .. its TRACKS, MONO / POLY (codex/coherence: * G.COMP, was COMPS, SEQ > COMP's name and an S) */ {"PRESETS", FAM_SAVE, SC_GLOBAL, GR_BROWSE, {0xFF, 0xFF, 0xFF, 0xFF}}, /* browser: PRESETS knob / KNOB 1 */ @@ -1080,9 +1114,10 @@ static __attribute__((noinline)) const param_desc_t *page_desc_v(uint32_t id, in *valp = &mx_ui[id - ID_MX0]; return &MX_DESC[id - ID_MX0]; } - if (id >= ID_EQ0 && id < ID_EQ0 + 4u) { /* (p9) the master's EQ */ - *valp = &eq_v[id - ID_EQ0]; - return &EQ_DESC[id - ID_EQ0]; + if (id - ID_EQ0 < 4u || id - ID_GE0 < 4u) { /* (p9) the master's EQ; (V10.8.89) GLO > GLOBAL ENVELOPE */ + uint32_t k = id - ID_EQ0 < 4u ? id - ID_EQ0 : id - ID_GE0 + 4u; + *valp = eq_v + k; + return EQ_DESC + k; } if (id == ID_TAPE || id == ID_TWOW) { *valp = &tape_v[id - ID_TAPE]; @@ -1138,7 +1173,8 @@ static const param_desc_t *page_desc(const page_t *pg, uint32_t slot, int16_t ** *valp = &trks_ui; return &TRKS_DESC; } - if ((id >= ID_TAPE && id <= ID_LMODE) || (id >= ID_EQ0 && id < ID_EQ0 + 4u) || (id >= ID_MX0 && id < ID_MX0 + 4u)) /* (0.9.18) the LFO's MODE and PHASE; + if ((id >= ID_TAPE && id <= ID_LMODE) || (id >= ID_EQ0 && id < ID_EQ0 + 4u) || (id >= ID_MX0 && id < ID_MX0 + 4u) || + id - ID_GE0 < 4u) /* (0.9.18) the LFO's MODE and PHASE; * (snd8) the master's TAPE; (p9) its EQ */ return page_desc_v(id, valp); if (ENGINES[eng_idx(TSEL->eng_req)] == &ENG_DRUM && pg->fam == FAM_EDIT && pg->scope == SC_ENGINE && diff --git a/firmware/src/project.c b/firmware/src/project.c index 7da92fdd..c35cd1a7 100644 --- a/firmware/src/project.c +++ b/firmware/src/project.c @@ -150,6 +150,9 @@ typedef struct { uint8_t cln[NTRK][16]; /* (V10.8.79) DRONE CLAY's lines (clay.c CL_LN: each MOD's 32 steps, the keys'): * FUNC's 'C' 'K' block after MATH USER's (the last: an older firmware stops * before it), when one is set; absent: none, the EUCLIDs */ + int8_t ge[4]; /* (V10.8.89) GLO > GLOBAL ENVELOPE (params.c genv_v, -19 .. 19): FUNC's 'G' 'E' + * block after 'C' 'K' (the last: an older firmware stops before it), when + * one is off its middle; absent (every project of before): OFF */ uint8_t lf[4]; /* (V10.7.62) LIFE (params.c life_v, 0..100): FUNC's 'L' 'F' block after * MACROS', when any is set; absent: all 0 (off) */ uint32_t sum; @@ -659,7 +662,8 @@ static uint32_t proj_packed_size(const project_t *q) n = proj_blk(0, n, 0, q->dnz, sizeof q->dnz); /* (V10.8.36) DIST NOISE, CHORUS MIX; (V10.8.37) KEY TRK */ n = proj_blk(0, n, 0, q->gt, sizeof q->gt); /* (V10.8.44) GATE */ n = proj_blk(0, n, 0, q->ott, sizeof q->ott); /* (V10.8.71) OTT */ - return proj_blk(0, proj_mu_blk(0, n), 0, q->cln, sizeof q->cln); /* (V10.8.75) MATH USER; (V10.8.79) CLAY's lines */ + n = proj_blk(0, proj_mu_blk(0, n), 0, q->cln, sizeof q->cln); /* (V10.8.75) MATH USER; (V10.8.79) CLAY's lines */ + return proj_blk(0, n, 0, q->ge, sizeof q->ge); /* (V10.8.89) GLOBAL ENVELOPE */ } static int proj_split_ok(const uint8_t *s) { @@ -862,7 +866,8 @@ static int proj_pack(project_store_t *out, const project_t *q) pos = proj_blk(b, pos, PB('O', 'T'), q->ott, sizeof q->ott); /* (V10.8.71) the tracks' OTT (the last: an older * firmware stops before it) */ pos = proj_mu_blk(b, pos); /* (V10.8.75) MATH USER's formulas (the last) */ - pos = proj_blk(b, pos, PB('C', 'K'), q->cln, sizeof q->cln); /* (V10.8.79) DRONE CLAY's lines (the last) */ + pos = proj_blk(b, pos, PB('C', 'K'), q->cln, sizeof q->cln); /* (V10.8.79) DRONE CLAY's lines */ + pos = proj_blk(b, pos, PB('G', 'E'), q->ge, sizeof q->ge); /* (V10.8.89) GLOBAL ENVELOPE (the last) */ memcpy(b + PROJC_PFX_OFF, q->pfx_lane, sizeof q->pfx_lane); b[PROJC_PFX_OFF + sizeof q->pfx_lane] = q->pfx_ltgt > 2u ? 0u : q->pfx_ltgt; for (i = 0; i < 4u; i++) @@ -1244,6 +1249,8 @@ static int proj_unpack_c(project_t *q, const uint8_t *b) } memset(q->cln, 0, sizeof q->cln); /* (V10.8.79) DRONE CLAY's lines: as saved, else none */ pos = proj_get(q->cln, b, pos, room, PB('C', 'K'), sizeof q->cln); + memset(q->ge, 0, sizeof q->ge); /* (V10.8.89) GLOBAL ENVELOPE: as saved, else OFF */ + pos = proj_get(q->ge, b, pos, room, PB('G', 'E'), sizeof q->ge); proj_new_tracks(q, nt); /* (a FUNC of fewer tracks: the rest at power-on) */ for (t = nt; t < NTRK; t++) memcpy(q->fm6[t], FM6_INIT, FM6_PACKED); @@ -1382,7 +1389,10 @@ static __attribute__((noinline)) void proj_master_put(project_t *p) clay_pack(clay[k], p->clay[k]); memcpy(p->cln[k], clay[k] + CL_LN, 16u); } - for (k = 0; k < 4u; k++) p->eq[k] = (int8_t)eq_v[k]; + for (k = 0; k < 4u; k++) { + p->eq[k] = (int8_t)eq_v[k]; + p->ge[k] = (int8_t)genv_v[k]; /* (V10.8.89) GLOBAL ENVELOPE */ + } p->tp[0] = (uint8_t)tape_v[0]; p->tp[1] = (uint8_t)tape_v[1]; } static void project_capture(project_t *p) @@ -1646,7 +1656,10 @@ static int project_restore_runtime(const project_t *input) memcpy(dx_mot, p->dx_mot, sizeof dx_mot); /* (0.5.1: the kit's X-MOD) */ { /* (V10.58) the master's EQ and TAPE, as stored (was set by the read) */ uint32_t k; - for (k = 0; k < 4u; k++) eq_v[k] = clamp(p->eq[k], -12, 12); + for (k = 0; k < 4u; k++) { + eq_v[k] = clamp(p->eq[k], -12, 12); + genv_v[k] = (int16_t)clamp(p->ge[k], -GE_MAX, GE_MAX); /* (V10.8.89) GLOBAL ENVELOPE */ + } tape_v[0] = p->tp[0] > 100u ? 100 : p->tp[0]; tape_v[1] = p->tp[1] > 100u ? 100 : p->tp[1]; proj_mx_get(p); /* (V10.7.59) the MACROS' routes */ for (k = 0; k < 4u; k++) life_v[k] = p->lf[k] > 100u ? 100 : p->lf[k]; /* (V10.7.62) LIFE */ @@ -1766,7 +1779,7 @@ static __attribute__((noinline)) void system_init(void) /* (snd8: out of its c for (i = 0; i < 5u; i++) kept[i] = song.g[KEEP[i]]; for (i = 0; i < G_COUNT; i++) song.g[i] = GP[i].def; tape_v[0] = tape_v[1] = 0; /* (snd8) the master's TAPE out */ - eq_v[0] = eq_v[1] = eq_v[2] = eq_v[3] = 0; /* (p9) its EQ flat */ + memset(eq_v, 0, sizeof eq_v); /* (p9) its EQ flat; (V10.8.89) GLOBAL ENVELOPE OFF */ life_v[0] = life_v[1] = life_v[2] = life_v[3] = 0; /* (V10.7.62) LIFE off */ dx_gain = 0; /* (V10.7.63) the kit's GAIN */ memset(trk_gain, 0, sizeof trk_gain); /* (V10.7.64) the tracks' GAIN */ diff --git a/firmware/src/ui_lens.c b/firmware/src/ui_lens.c index c91e56ce..f1740ec8 100644 --- a/firmware/src/ui_lens.c +++ b/firmware/src/ui_lens.c @@ -111,10 +111,12 @@ static const nv_t CE_GLO[] = {NV("PADS", 0, 0, 0), /* GLO > PADS: the performi NV("MIXER", 0, 1, 0), NV("SENDS", 0, 1, 0), /* (V10.8.3, the owner: LIVE's KEYS RAILS gone for the * song mode's flash; JAM plays the sequences live) */ NV("GLOBAL", 0, 2, 1), /* (V10.8.21, the owner: G.COMP gone for DRONE CLAY's flash) */ - NV("SYSTEM", 0, 2, 2), NV("KEY SPLIT", 0, 2, 2), NV("KEY SPLIT 2", 0, 2, 2)}; /* (V10.37) the performing pages first, the + NV("SYSTEM", 0, 2, 2), NV("KEY SPLIT", 0, 2, 2), NV("KEY SPLIT 2", 0, 2, 2), + NV("GLOBAL ENVELOPE", 0, 3, 1)}; /* (V10.8.89, the owner) every track's ENV scaled: a tab of + * its own after SETUP (SETUP a GLO tap from MIXER as before) */ /* (V10.37) the performing pages first, the * settings (GLOBAL, SYSTEM) last */ /* (0.9.9-seq2f) the global lane; (p2) LIVE first * (ui_live.c) */ -static const ng_t CG_GLO[] = {{"PADS", 0}, {"MIXER", "MIX"}, {"SETUP", 0}}; /* (codex/coherence: SETUP, the +static const ng_t CG_GLO[] = {{"PADS", 0}, {"MIXER", "MIX"}, {"SETUP", 0}, {"ENVELOPE", "ENV"}}; /* (codex/coherence: SETUP, the * settings in one group: GLOBAL, SYSTEM, SYSTEM 2, KEY SPLIT) */ /* (five tabs of 44 px in the labels' face) */ static const nv_t CE_ENV[] = {NV("ENV", 0, 0, 1), NV("ENV DEST", 0, 0, 1), NV("ENV 2", 0, 0, 1)}; /* (V10.8.35, the owner: STAGE gone) */ /* (V10.8.16, the owner: TRACKS, the six * envelopes together, gone for ENV's layers' room) */ /* (V10.22: ENV 2) (codex/coherence) the track's pages first; diff --git a/tests/genv_test.c b/tests/genv_test.c new file mode 100644 index 00000000..2e201f3e --- /dev/null +++ b/tests/genv_test.c @@ -0,0 +1,165 @@ +// Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant). All rights reserved. +/* (V10.8.89, the owner: "una página GLOBAL ENVELOPE ... cada etapa del ADSR en off deje como están los canales y cada uno + * aumenta proporcionalmente, por ejemplo el decay en todas las pistas") GLO > GLOBAL ENVELOPE (params.c genv_v, mod.c + * genv_mod): every knob OFF the render bit for bit what it was (nothing runs: mod_begin as before, a track's parameters + * as they were after the knobs were turned and back); DECAY +10 (x2.06) about twice the decay on ANALOG (its ENV) and on + * a DRUM kit (its hits' DECAY); SUSTAIN scales the held level; the page's knobs, its OFF / x2.06 / x0.25; kept with the + * project ('G' 'E') and none written while OFF. Built and run by CI (voice-user-check.yml) */ +#define UI_TEST_NO_MAIN 1 +#include "ui_test.c" + +#include +#include +#include +#define GN (FS * 3u) +static int32_t *ga, *gb; /* (shared: each render a process of its own from one state) */ +static void ge_setup(uint32_t eng) +{ + unsigned k; + ui_power_on(); set_engine_of(&trk[0], eng); trk[0].engine = trk[0].eng_req; frame(); + for (k = 1; k < NTRK; k++) trk[k].p[P_MUTE] = 1; + trk[0].p[P_REV] = trk[0].p[P_DLY] = 0; + trk[0].p[P_ATK] = 0; trk[0].p[P_DEC] = 60; trk[0].p[P_SUS] = 0; trk[0].p[P_REL] = 60; + song.master_q12 = 4096; song.g[G_BPM] = 120; frames(8); + { int32_t o[CTL * 2]; for (k = 0; k < 400u; k++) mix_block(o, CTL); } /* (the sound's load and its fade done) */ + rev_clear(); fx.rm_ph = 0; for (k = 0; k < 4u; k++) fx.rm_m[k] = fx.rm_t[k] = 0; +} +static void ge_seed(void) { rng_state = 0x1234567u; clay_rng = 1u; dx_mot_rng = 0x9E3779B9u; mod_seed = 0x2545F491u; } +static void ge_play(uint32_t eng, int32_t *y) /* a note (a kit: its kick) from the start, its mono sum */ +{ + int32_t b[CTL * 2]; + unsigned n = 0, i; + trk_note_on(&trk[0], eng == ENGI_DRUM ? 36u : 48u, 120u); + while (n < GN) { + mix_block(b, CTL); + for (i = 0; i < CTL && n < GN; i++) y[n++] = (b[2 * i] + b[2 * i + 1]) / 2; + } +} +/* the time from the loudest 5 ms to the first 5 ms 20 dB under it, in ms */ +static double ge_decay(const int32_t *y, double *peak) +{ + unsigned w = FS / 200u, i, j, at = 0; + double pk = 0, r; + for (i = 0; i + w <= GN; i += w) { + for (r = 0, j = i; j < i + w; j++) r += (double)y[j] * y[j]; + r = sqrt(r / w); + if (r > pk) pk = r, at = i; + } + if (peak) *peak = pk; + for (i = at; i + w <= GN; i += w) { + for (r = 0, j = i; j < i + w; j++) r += (double)y[j] * y[j]; + if (sqrt(r / w) < pk * 0.1) return (i - at) * 1000.0 / FS; + } + return 1e9; +} +static double ge_rms(const int32_t *y, unsigned a, unsigned b) { double e = 0; for (unsigned i = a; i < b; i++) e += (double)y[i] * y[i]; return sqrt(e / (b - a)); } +static void ge_set(int a, int d, int s, int r) { genv_v[0] = (int16_t)a; genv_v[1] = (int16_t)d; genv_v[2] = (int16_t)s; genv_v[3] = (int16_t)r; } +int main(void) +{ + int bad = 0, ok; + static const uint32_t ENG[2] = {ENGI_ANALOG, ENGI_DRUM}; + static const char *const NM[2] = {"ANALOG", "DRUM"}; + char val[16]; + const char *unit; + unsigned e; + ga = mmap(0, 2u * GN * sizeof *ga, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, -1, 0); + gb = ga + GN; + ui_power_on(); + ok = !genv_v[0] && !genv_v[1] && !genv_v[2] && !genv_v[3] && !GENV_ON; + bad += check("GLOBAL ENVELOPE: OFF at power-on", ok); + for (e = 0; e < 2u; e++) { + double t0, t1, p0, p1; + int m, fine = 1; + ge_setup(ENG[e]); + for (m = 0; m < 2; m++) { /* (two children of this one state: the same render twice) */ + pid_t pid = (fflush(stdout), fork()); + if (pid) { int st = 0; waitpid(pid, &st, 0); fine &= WIFEXITED(st) && !WEXITSTATUS(st); continue; } + ok = 1; + if (m) { /* (the knobs turned, a block's matrix run with them, back OFF) */ + int16_t keep[P_COUNT], b0[P_COUNT]; + int r0, n0; + memcpy(keep, trk[0].p, sizeof keep); + r0 = mod_begin(&trk[0]); n0 = MOD.nk; /* (the sound's own routes, as before) */ + memcpy(b0, trk[0].p, sizeof b0); + if (r0) mod_end(&trk[0]); + ge_set(7, 10, -5, 19); + ok = mod_begin(&trk[0]) && trk[0].p[P_DEC] != keep[P_DEC]; + mod_end(&trk[0]); + ok &= !memcmp(keep, trk[0].p, sizeof keep); + ge_set(0, 0, 0, 0); + ok &= mod_begin(&trk[0]) == r0 && (!r0 || MOD.nk == n0) && !memcmp(b0, trk[0].p, sizeof b0); + if (r0) mod_end(&trk[0]); + ok &= !memcmp(keep, trk[0].p, sizeof keep); + if (!ok) printf(" child: r0 %d n0 %d\n", r0, n0); + } + ge_seed(); ge_play(ENG[e], m ? gb : ga); + fflush(stdout); _exit(!ok); + } + ok = fine && !memcmp(ga, gb, GN * sizeof ga[0]) && ge_rms(ga, 0, GN) > 50; + printf(" %s: OFF render %s, energy %.0f\n", NM[e], memcmp(ga, gb, GN * sizeof ga[0]) ? "differs" : "bit for bit", ge_rms(ga, 0, GN)); + bad += check(e ? "GLOBAL ENVELOPE OFF: DRUM's render bit for bit, its parameters as they were" : + "GLOBAL ENVELOPE OFF: ANALOG's render bit for bit, its parameters as they were (the matrix as before)", ok); + t0 = ge_decay(ga, &p0); + ge_setup(ENG[e]); ge_set(0, 10, 0, 0); ge_seed(); ge_play(ENG[e], gb); + t1 = ge_decay(gb, &p1); + printf(" %s: decay (-20 dB) %.1f ms -> %.1f ms with DECAY x2.06 (x%.2f), peak %.0f -> %.0f\n", NM[e], t0, t1, t1 / t0, p0, p1); + ok = t0 > 5 && t0 < 1e8 && t1 / t0 > 1.75 && t1 / t0 < 2.45; + bad += check(e ? "GLOBAL ENVELOPE DECAY x2.06: a DRUM kit's hit about twice as long" : + "GLOBAL ENVELOPE DECAY x2.06: ANALOG's decay about twice as long", ok); + ge_set(0, 0, 0, 0); + } + { /* SUSTAIN: the held level times its factor (x0.25 at -19), the same note */ + double s0, s1; + ge_setup(ENGI_ANALOG); trk[0].p[P_SUS] = 100; ge_seed(); ge_play(ENGI_ANALOG, ga); + ge_setup(ENGI_ANALOG); trk[0].p[P_SUS] = 100; ge_set(0, 0, -19, 0); ge_seed(); ge_play(ENGI_ANALOG, gb); + s0 = ge_rms(ga, GN / 2u, GN); s1 = ge_rms(gb, GN / 2u, GN); + printf(" ANALOG: held level %.0f -> %.0f with SUSTAIN x0.25 (x%.2f)\n", s0, s1, s1 / (s0 + 1e-9)); + bad += check("GLOBAL ENVELOPE SUSTAIN x0.25: ANALOG's held level lower", s0 > 50 && s1 < s0 * 0.6 && s1 > s0 * 0.05); + ge_set(0, 0, 0, 0); + } + { /* the page: GLO's ENVELOPE tab, KNOB 1..4 the four, OFF in the middle, the factor beside it */ + const param_desc_t *d; + int16_t *vp; + ui_power_on(); frame(); + go_title("GLOBAL ENVELOPE"); frame(); + ok = str_eq(cur_page()->title, "GLOBAL ENVELOPE") && cur_page()->fam == FAM_GLO; + turn(EN_K2, 10); frame(); + ok &= genv_v[1] == 10 && !genv_v[0] && !genv_v[2] && !genv_v[3] && GENV_ON; + turn(EN_K4, -40); frame(); + ok &= genv_v[3] == -GE_MAX; + d = page_desc_v(ID_GE0 + 1u, &vp); + ok &= vp == &genv_v[1] && str_eq(d->label, "DEC"); + param_format(d, 0, val, &unit); ok &= str_eq(val, "OFF"); + param_format(d, 10, val, &unit); ok &= str_eq(val, "x2.06"); + param_format(d, -GE_MAX, val, &unit); ok &= str_eq(val, "x0.25"); + param_format(d, 6, val, &unit); ok &= str_eq(val, "x1.55"); + param_format(d, GE_MAX, val, &unit); ok &= str_eq(val, "x3.97"); + if (!ok) { + printf(" page: %s %d %d %d %d;", cur_page()->title, genv_v[0], genv_v[1], genv_v[2], genv_v[3]); + for (int v = -GE_MAX; v <= GE_MAX; v += 5) { param_format(d, v, val, &unit); printf(" %d:%s", v, val); } + printf("\n"); + } + bad += check("GLO > GLOBAL ENVELOPE: KNOB 2 DECAY, KNOB 4 RELEASE down to x0.25; OFF, x2.06, x0.25 shown", ok); + } + { /* a project: OFF writes no block; set, 'G' 'E' kept and back after a load; one without it: OFF */ + uint32_t n0, n1; + project_t p; + ui_power_on(); + project_capture(&p); + n0 = proj_packed_size(&p); + ok = !project_save(2); + ge_set(-3, 10, 0, 19); + project_capture(&p); + n1 = proj_packed_size(&p); + ok &= n1 == n0 + 2u + sizeof p.ge && !project_save(1); + if (!ok) printf(" sizes %u %u\n", n0, n1); + ge_set(0, 0, 0, 0); + project_load(1); frames(4); + ok &= genv_v[0] == -3 && genv_v[1] == 10 && genv_v[2] == 0 && genv_v[3] == 19; + project_load(2); frames(4); + ok &= !GENV_ON; + bad += check("GLOBAL ENVELOPE: saved with the project and loaded back; OFF writes no block, loads OFF", ok); + } + printf(bad ? "genv: %d FAILED\n" : "genv: all ok\n", bad); + return bad != 0; +} diff --git a/tests/ui_render.c b/tests/ui_render.c index 7c4294c4..7d2f8e6c 100644 --- a/tests/ui_render.c +++ b/tests/ui_render.c @@ -664,7 +664,7 @@ enum { S_HOME, S_HOME_IDLE, S_MESSAGE, S_MESSAGE_KEY, S_MESSAGE_NOFILE, S_PRESET S_FXL_SENDS, S_FXL_DIST, S_FXL_PAN, S_FXL_BUSES, S_FXL_DELAY, S_FXL_DELAY2, S_FXL_REVERB, S_FXL_SLICER, S_FXL_MASTER, S_HOME_MACROS, S_HOME_BEING, S_HOME_ROUTES, S_GEN_LEAD, S_ED_FILTER, S_ED_FILTER_BP, S_ED_VOICE2, S_ED_FOCUS, S_ED_FOCUS_MOD, S_ED_OPERATOR, - S_ENV_LZ, S_ENV_LZ_DEST, S_ENV_STAGE, S_ENV_STAGE_SUS, S_MSEQ2, S_KEY_CHORD, S_KEY_CHORD_OFF, S_KEY_ARP, S_KEY_ARP2, S_GLO_SENDS, S_GLO_PADS, S_GLO_PADS_RESET, S_MENU_ROW, S_MENU_ROW_LEDS, S_LY_FX_KNOBS, S_LY_FX_STATE, S_LY_GLO_STATE, S_DLG_DICE_SOUND, S_DLG_DICE_SEQ, S_DLG_DICE_FX, S_DLG_MUT_BACK, + S_ENV_LZ, S_ENV_LZ_DEST, S_ENV_STAGE, S_ENV_STAGE_SUS, S_MSEQ2, S_KEY_CHORD, S_KEY_CHORD_OFF, S_KEY_ARP, S_KEY_ARP2, S_GLO_SENDS, S_GLO_PADS, S_GLO_PADS_RESET, S_GLO_GENV, S_GLO_GENV_SET, S_MENU_ROW, S_MENU_ROW_LEDS, S_LY_FX_KNOBS, S_LY_FX_STATE, S_LY_GLO_STATE, S_DLG_DICE_SOUND, S_DLG_DICE_SEQ, S_DLG_DICE_FX, S_DLG_MUT_BACK, S_DRUM_X4, S_DRUM_GHOST, S_DRUM_OCT_UP, S_DRUM_OCT_DN, S_COMP_TOUCH, S_COMP_EVEN, S_GEN_EXPLORE, S_GEN_SONG, S_VX_HEAD_A, S_VX_HEAD_I, S_VX_HEAD_U, S_VX_HEAD_S, S_VX_HEAD_M, S_VX_HEAD_K, S_VX_HEAD_T, S_VX_HEAD_F, S_VX_HEAD_VOWEL, S_VX_HEAD_HOME, S_VX_HEAD_QUIET, S_VX_BIRD, S_VX_CMOS, S_VX_INSECT, S_VX_WING, S_VX_MAMMAL, S_VX_MORPH_IB, S_VX_MORPH_BM, @@ -701,7 +701,7 @@ static const char *const S_NAME[S_COUNT] = {"home", "home_idle", "message", "mes "fx_effect_slicer", "fx_effect_master", "home_macros", "home_being", "home_routes", "gen_lead", "ed_filter", "ed_filter_bp", "ed_voice2", "ed_focus", "ed_focus_mod", "ed_operator", - "env_lz", "env_lz_dest", "env_stage", "env_stage_sus", "mseq2", "key_chord", "key_chord_off", "key_arp", "key_arp2", "glo_sends", "glo_pads", "glo_pads_reset", "menu_row", "menu_row_leds", "ly_fx_knobs", "ly_fx_state", "ly_glo_state", "dlg_dice_sound", "dlg_dice_seq", "dlg_dice_fx", "euclid_modes", + "env_lz", "env_lz_dest", "env_stage", "env_stage_sus", "mseq2", "key_chord", "key_chord_off", "key_arp", "key_arp2", "glo_sends", "glo_pads", "glo_pads_reset", "glo_genv", "glo_genv_set", "menu_row", "menu_row_leds", "ly_fx_knobs", "ly_fx_state", "ly_glo_state", "dlg_dice_sound", "dlg_dice_seq", "dlg_dice_fx", "euclid_modes", "drum_hit_x4", "drum_hit_ghost", "drum_oct_x8", "drum_oct_flam", "comp_touch", "comp_echo_even", "gen_explore", "gen_song", "vx_head_a", "vx_head_i", "vx_head_u", "vx_head_s", "vx_head_m", "vx_head_k", "vx_head_t", "vx_head_f", "vx_head_vowel", "vx_head_home", "vx_head_quiet", "vx_bird", "vx_cmos", "vx_insect", "vx_wing", "vx_mammal", "vx_morph_insect_bird", "vx_morph_bird_mammal", @@ -1278,6 +1278,14 @@ static void setup(int s) if (key_black(k) && key_place(k) == 0u) fm1_in.notes = 1u << k; } break; + case S_GLO_GENV: case S_GLO_GENV_SET: /* (V10.8.89) GLO > GLOBAL ENVELOPE: OFF; ATTACK x0.48, DECAY x2.06, + * SUSTAIN x0.25, RELEASE x3.97, DECAY's knob hot */ + if (s == S_GLO_GENV_SET) { + genv_v[0] = -10; genv_v[1] = 10; genv_v[2] = -GE_MAX; genv_v[3] = GE_MAX; + ui.hot_col = 1; ui.hot_t = 30; + } + go_title("GLOBAL ENVELOPE"); + break; case S_KEY_CHORD: TSEL->p[P_CHRD] = 2; TSEL->p[P_CVOI] = 1; TSEL->p[P_ROOT] = 9; TSEL->p[P_SCALE] = 2; go_title("CHORD"); break; case S_KEY_CHORD_OFF: go_title("CHORD"); break; case S_KEY_ARP: case S_KEY_ARP2: /* (0.8.5) SCL . ARP's lens: ARP on (UPDN, 2 octaves), ARP 2 */ diff --git a/tests/ui_test.c b/tests/ui_test.c index 8dd9f562..d1e7ddc9 100644 --- a/tests/ui_test.c +++ b/tests/ui_test.c @@ -3966,9 +3966,10 @@ static int test_product_ux(void) frames(320); /* (taps further apart than a double tap: #83) */ turn(EN_SELECT, 1); frames(320); ok = str_eq(cur_page()->title, "SENDS"); /* (0.9.2: SELECT the chain; a GLO tap */ press(B_GLO); frames(320); ok &= str_eq(cur_page()->title, "GLOBAL"); /* (codex/coherence: SETUP, GLOBAL .. KEY SPLIT 2) */ + press(B_GLO); frames(320); ok &= str_eq(cur_page()->title, "GLOBAL ENVELOPE"); /* (V10.8.89: ENVELOPE, after SETUP) */ press(B_GLO); frames(320); ok &= cur_page()->graph == GR_LIVE && str_eq(cur_page()->title, "PADS"); /* (PADS: LIVE's place) */ press(B_GLO); ok &= cur_page()->graph == GR_TRK && str_eq(cur_page()->title, "MIXER"); /* (V10.8.3: LIVE gone) */ - bad += check("0.9.2 GLO: SELECT MIXER > SENDS, a GLO tap the next group: (V10.37) G.COMP > SETUP (GLOBAL) > PADS (LIVE's place) > MIXER", ok); + bad += check("0.9.2 GLO: SELECT MIXER > SENDS, a GLO tap the next group: (V10.37) G.COMP > SETUP (GLOBAL) > ENVELOPE > PADS (LIVE's place) > MIXER", ok); go_home(); hold(B_SEQ); bad += check("long SEQ off the SEQ pages is a tap (no SONG: SAVE held, G5)", cur_page()->graph != GR_SONG); go_page(GR_SONG); @@ -12855,7 +12856,7 @@ static int test_lz_glo(void) ui_power_on(); frame(); press(B_GLO); frame(); ok = pd_on() && lz_fam() == LZ_GLO && pd_level() == 0u && str_eq(cur_page()->title, "MIXER") && lz_tab_lit(1) && - lz_crumb_is("GLO \xB7 MIXER \xB7 MIXER") && lz_count_is("2/7"); /* (GLO > PADS first, GLO still opens on MIXER) */ /* (V10.8.38: SYSTEM 2 gone) */ /* (V10.8.21: G.COMP gone) */ /* (V10.8.3: LIVE gone) */ /* (snd8: SYSTEM 2; p2: LIVE first; V10.7.58: one) */ + lz_crumb_is("GLO \xB7 MIXER \xB7 MIXER") && lz_count_is("2/8"); /* (V10.8.89: GLOBAL ENVELOPE) */ /* (GLO > PADS first, GLO still opens on MIXER) */ /* (V10.8.38: SYSTEM 2 gone) */ /* (V10.8.21: G.COMP gone) */ /* (V10.8.3: LIVE gone) */ /* (snd8: SYSTEM 2; p2: LIVE first; V10.7.58: one) */ turn(EN_SELECT, 1); frame(); ok &= str_eq(cur_page()->title, "SENDS") && lz_crumb_is("GLO \xB7 MIXER \xB7 SENDS"); v = TSEL->p[P_DLY]; @@ -12865,8 +12866,11 @@ static int test_lz_glo(void) ok &= pd_level() == 1u && str_eq(cur_page()->title, "GLOBAL") && lz_tab_lit(2) && lz_crumb_is("GLO \xB7 SETUP \xB7 GLOBAL"); turn(EN_SELECT, 1); frame(); /* (codex/coherence: SETUP, GLOBAL SYSTEM SYSTEM 2 KEY SPLIT) */ ok &= pd_level() == 2u && str_eq(cur_page()->title, "SYSTEM") && lz_tab_lit(2) && lz_crumb_is("GLO \xB7 SETUP \xB7 SYSTEM"); + frames(320); press(B_GLO); frame(); /* (V10.8.89) GLOBAL ENVELOPE's tab after SETUP */ + ok &= str_eq(cur_page()->title, "GLOBAL ENVELOPE") && lz_tab_lit(3) && lz_crumb_is("GLO \xB7 ENVELOPE \xB7 GLOBAL ENVELOPE") && + lz_count_is("8/8"); frames(320); press(B_GLO); frame(); /* (round to PADS, LIVE's place; V10.8.3: LIVE gone) */ - ok &= str_eq(cur_page()->title, "PADS") && lz_tab_lit(0) && lz_crumb_is("GLO \xB7 PADS \xB7 PADS") && lz_count_is("1/7"); + ok &= str_eq(cur_page()->title, "PADS") && lz_tab_lit(0) && lz_crumb_is("GLO \xB7 PADS \xB7 PADS") && lz_count_is("1/8"); frames(320); press(B_GLO); frame(); ok &= pd_level() == 0u && str_eq(cur_page()->title, "MIXER"); turn(EN_SELECT, 3); frame(); diff --git a/tools/audio_map.txt b/tools/audio_map.txt index 88a3ca76..4819db90 100644 --- a/tools/audio_map.txt +++ b/tools/audio_map.txt @@ -698,6 +698,7 @@ gen_sound 2254 c2 apply_preset_to clamp gch gnear gnever gpickw gr grg grr semi_ gen_texture 174 text dhold gch gchord gnote gseed gtone gen_tick 376 text gen_new_seed gen_press gst_put gen_value 480 text +genv_mod 214 text * clay_off life_mod gform 52 text gfree 52 text comp_any dstarts gfxs_own 96 text grr @@ -885,7 +886,7 @@ kc_w 22 text kern 78 text glyph_at key_black 28 text key_next 328 text drum_oct_note dxo_on midi_local_held mo_key mo_kon trk_index -key_off 272 text drum_oct_note dxo_off input_off midi_local_held mo_koff rec_release trk_index trk_note_off +key_off 272 text * drum_oct_note dxo_off input_off midi_local_held mo_koff rec_release trk_index trk_note_off key_place 46 text key_black keys_mode 38 text ckeys_on grid_on name_on pads_on skeys_on keys_pg 56 text cur_page @@ -935,7 +936,7 @@ lfo_fade_restart 30 text lfo_wave 176 text lib_scan 262 text proj_name_get project_name project_used st_head st_read st_sector life_block 522 text -life_mod 690 text * mod_param mod_track_desc mod_voice_add +life_mod 690 text mod_param mod_track_desc mod_voice_add list_get 42 text list_turn 98 text list_get settings_save live_adv 316 text live_next rec_hold step_samples trk_index @@ -1089,7 +1090,7 @@ mo_koff 78 text midi_out_event mo_kon 68 text mo_plays 76 text drum_muted_t trk_index mo_send 18 text -mod_begin 898 hot_text ! clay_mod mod_track_desc mod_tsrc mod_voice_add ms_tick +mod_begin 932 hot_text ! clay_mod mod_track_desc mod_tsrc mod_voice_add ms_tick mod_dst_name 50 text bt_hw_seg mod_dst_name_bt 176 bt clamp eng_idx mod_dst_ok track_desc mod_dst_offer 32 text bt_hw_seg @@ -1254,8 +1255,8 @@ pads_leds 116 text black_held key_place pd_state pads_on 54 text cur_page name_on pads_sig 98 text black_held pd_state page_big 92 text cv_text face_has text_w -page_desc 1832 text clay_desc eu_of str_nth track_desc trk_slot tsel_p -page_desc_v 298 text +page_desc 1836 text clay_desc eu_of str_nth track_desc trk_slot tsel_p +page_desc_v 316 text page_entered 352 text cur_page ev_fix fmt_cat fmt_int fx_mod_of fx_trk_k lock_page_ok seq_roll_view str_cpy str_len tsel_p ui_say page_first 28 text page_flash 32 text @@ -1275,7 +1276,7 @@ panel_setup 550 text cv_begin cv_blit cv_text draw_text_box fm1_delay_ms fm1_enc panic_block 294 text memset midi_out_event_at midi_silence_track mo_flush_of mo_koff pfx_hush param_desc_of 36 text param_fit 58 text -param_format 852 text desc_nm desc_unit fmt_fix fmt_int name_of str_cpy str_nth vcons_q6 +param_format 942 text desc_nm desc_unit fmt_fix fmt_int name_of str_cpy str_nth vcons_q6 param_kept 52 text param_store_def 18 text param_desc_of param_turn 372 text enum_order enum_rank enum_skip name_of @@ -1395,7 +1396,7 @@ proj_gl_used 42 text proj_hash 30 text proj_import 172 text eng_phys_old memcpy proj_engines_ok proj_fm4 proj_ok proj_phys_gone proj_unpack_c proj_lyr_len 24 text -proj_master_put 402 text clay_pack memcpy ott_get proj_mx_put +proj_master_put 422 text clay_pack memcpy ott_get proj_mx_put proj_mf_tracks 54 text proj_mu_blk 100 text memcpy proj_mx_custom 98 text memcmp memcpy mx_defaults @@ -1404,8 +1405,8 @@ proj_name_get 56 text proj_name_pack 90 text memcpy memset proj_err proj_pack str_len proj_obj 26 text proj_ok 78 text chain_valid motion_valid proj_sum -proj_pack 2778 text chain_valid dx_kit_ok fit_valid memcpy memset motion_valid proj_any proj_blk proj_djf_events proj_eq proj_fg_used proj_fm_kept proj_gl_used proj_hash proj_lyr_len proj_mf_tracks proj_mu_blk proj_mx_custom proj_name_get proj_packed_size proj_pdef proj_sc_used proj_split_ok proj_step_empty proj_step_x proj_tp step_ratchet -proj_packed_size 772 text proj_any proj_bits proj_blk proj_djf_events proj_eq proj_fg_used proj_fm_kept proj_gl_used proj_lyr_len proj_mf_tracks proj_mu_blk proj_mx_custom proj_pdef proj_sc_used proj_step_empty proj_step_x proj_tp +proj_pack 2802 text chain_valid dx_kit_ok fit_valid memcpy memset motion_valid proj_any proj_blk proj_djf_events proj_eq proj_fg_used proj_fm_kept proj_gl_used proj_hash proj_lyr_len proj_mf_tracks proj_mu_blk proj_mx_custom proj_name_get proj_packed_size proj_pdef proj_sc_used proj_split_ok proj_step_empty proj_step_x proj_tp step_ratchet +proj_packed_size 792 text proj_any proj_bits proj_blk proj_djf_events proj_eq proj_fg_used proj_fm_kept proj_gl_used proj_lyr_len proj_mf_tracks proj_mu_blk proj_mx_custom proj_pdef proj_sc_used proj_step_empty proj_step_x proj_tp proj_pdef 4 text proj_phys_gone 114 text proj_sum west_from_noise proj_sc_used 36 text @@ -1416,7 +1417,7 @@ proj_steps 76 text proj_store_len 38 text proj_sum 8 text proj_tp 144 text -proj_unpack_c 4368 text chain_valid clay_pack dx_kit_ok memcpy memset motion_valid mu_algo_in mu_check mx_defaults param_store_def params_by_count proj_at proj_bits proj_eq proj_get proj_hash proj_mx_put proj_name_get proj_pdef proj_split_ok proj_sum proj_tp step_set_ratchet +proj_unpack_c 4404 text chain_valid clay_pack dx_kit_ok memcpy memset motion_valid mu_algo_in mu_check mx_defaults param_store_def params_by_count proj_at proj_bits proj_eq proj_get proj_hash proj_mx_put proj_name_get proj_pdef proj_split_ok proj_sum proj_tp step_set_ratchet project_capture 840 text fit_valid fm6_pack memcpy memset mom_base motion_base_value motion_djf_value motion_guard proj_master_put proj_sum str_len project_cur_name 12 text project_load 122 text proj_bound proj_fetch proj_import project_restore_runtime @@ -1424,7 +1425,7 @@ project_name 58 text proj_import proj_name_get project_recall_slot 56 text project_used project_recall_sound 132 text proj_engines_ok proj_import proj_ok sound_put project_rename 196 text memcpy proj_import proj_name_get proj_name_pack proj_obj st_save transport_busy ui_message -project_restore_runtime 1652 text apply_preset_to dx_kit_ok dx_mute_set dx_take fit_valid fm6_adopt fm6_set_patch fm6_unpack lfo_fade_restart lyr_set memcpy memset mu_set ott_put param_desc_of param_fit proj_engines_ok proj_fm4 proj_lyr_len proj_name_get proj_ok proj_phys_gone proj_steps seq_stop steps_sig track_defaults_steps ui_message +project_restore_runtime 1682 text apply_preset_to dx_kit_ok dx_mute_set dx_take fit_valid fm6_adopt fm6_set_patch fm6_unpack lfo_fade_restart lyr_set memcpy memset mu_set ott_put param_desc_of param_fit proj_engines_ok proj_fm4 proj_lyr_len proj_name_get proj_ok proj_phys_gone proj_steps seq_stop steps_sig track_defaults_steps ui_message project_save 6 text project_save_as 228 text memcpy proj_name_get proj_name_pack proj_obj project_capture st_save transport_busy ui_message project_used 24 text @@ -1485,10 +1486,10 @@ sc_track 336 text input_on midi_local_held mo_key mo_kon rec_note rec_on scn_not scale_mask 32 text scale_snap 52 text scale_mask scale_steps 112 text scale_mask scale_snap -scene_drum_tick 272 text div_samples trk_note_off trk_note_on -scene_follow 144 text * sc_track scene_follow_off trk_index -scene_follow_off 82 text input_off mo_koff -scene_key 324 text input_off kb_map midi_local_held mo_koff sc_track +scene_drum_tick 272 text * div_samples trk_note_off trk_note_on +scene_follow 144 text sc_track scene_follow_off trk_index +scene_follow_off 82 text * input_off mo_koff +scene_key 324 text * input_off kb_map midi_local_held mo_koff sc_track scn_notes 278 text chord_build_mode trk_index scope_at 238 text cv_rect scope_lod scope_seg scope_lod 110 text scope_seg @@ -1697,7 +1698,7 @@ sy_tok 120 text sy_voices 238 text sy_word 3422 text sy_es_tok sy_word_next 552 text sy_gen_word sy_norm_lang sy_take_entry sy_tok sy_word -system_init 766 text chain_defaults fm6_init load_begin load_end lyr_set memcpy memset motion_clear mx_defaults ott_defaults power_sound_of steps_sig track_defaults +system_init 764 text chain_defaults fm6_init load_begin load_end lyr_set memcpy memset motion_clear mx_defaults ott_defaults power_sound_of steps_sig track_defaults tabs_paint 314 text cv_begin cv_blit cv_rect cv_rrect cv_text_in text_w ux_mix take_busy 54 text jam_len ui_message take_pick 48 text @@ -1855,7 +1856,7 @@ vc_q 26 text vcons_q6 32 text vd_note 42 text vel_at_route 54 text -vel_cal_reset 72 text +vel_cal_reset 72 text * vel_driven 272 text vel_map vel_take vel_lift 214 text vel_map 182 text