DICE ALL keeps the delay send storable; WHEN's columns fit; tests follow COMP 2 / WHEN and FM6's neutral ADSR

The DLY send's clamp in dice_one had slipped inside the comment before it, so a wet genre could leave it
at 131 and the piece could not be saved. WHEN shows A / B without a unit so ALWAYS fits its column. The UI
tests count the two new SEQ pages; the fm4 div0 reference conversion sets the neutral ADSR as 0.6.81 does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
Claude committed 2026-10-14 15:40:59 +00:00
1 parent 751315ac9e
commit 1aade034da
6 files changed
+15 -8

No files matched your search

+1 -1
View File
@@ -291,7 +291,7 @@ a la derecha); apretá OCT+ para ejecutarla.
| NOTE | FOCUS | PITCH | MOVE | LEN |
| COMP | STEP | TYPE | (su valor) | (su valor; RATCH / ECHO: DIV) |
| COMP 2 | STEP | TYPE (el segundo componente) | (su valor) | (su valor; ECHO: DIV) |
| WHEN | STEP | A WHEN | B WHEN | LEN |
| WHEN | STEP | A (WHEN) | B (WHEN) | LEN |
| AUTOMATION | PLAY (ON/OFF) | EVENT (cantidad) | LOCK (cantidad) | CLEAR (acción) |
| AUTO LIST | ROW | STEP | PARAM | VALUE |
| MUTATE | SOUND (cada) | PATTERN (cada) | AMOUNT | MODE |
+1 -1
View File
@@ -284,7 +284,7 @@ and heating up with its own audio. The selected track is drawn bigger, a muted o
| NOTE | FOCUS | PITCH | MOVE | LEN |
| COMP | STEP | TYPE | (its value) | (its value; RATCH / ECHO: DIV) |
| COMP 2 | STEP | TYPE (the second component) | (its value) | (its value; ECHO: DIV) |
| WHEN | STEP | A WHEN | B WHEN | LEN |
| WHEN | STEP | A (WHEN) | B (WHEN) | LEN |
| AUTOMATION | PLAY (ON/OFF) | EVENT (count) | LOCK (count) | CLEAR (action) |
| AUTO LIST | ROW | STEP | PARAM | VALUE |
| MUTATE | SOUND (every) | PATTERN (every) | AMOUNT | MODE |
+4 -2
View File
@@ -1200,8 +1200,10 @@ static void dice_one(void)
t->p[P_CHOR] = (int16_t)rr(20, 50);
}
}
t->p[P_REV] = (int16_t)clamp(t->p[P_REV], 0, 127); /* (0.6.81: a wet genre in SPACE took a pad's or a texture's
t->p[P_DLY] = (int16_t)clamp(t->p[P_DLY], 0, 127); * send past 127: a piece no SAVE could store, SAVE FORMAT ERROR) */
/* (0.6.81: a wet genre in SPACE took a pad's or a texture's send past 127: a piece no SAVE could store, SAVE FORMAT
* ERROR; 0.6.82: the DLY's clamp had ended up inside this comment) */
t->p[P_REV] = (int16_t)clamp(t->p[P_REV], 0, 127);
t->p[P_DLY] = (int16_t)clamp(t->p[P_DLY], 0, 127);
if (r == RL_PAD && chance(40)) t->p[P_CHOR] = (int16_t)rr(20, 60);
load_begin(t, LOAD_PAT);
track_defaults_steps(t);
+1 -2
View File
@@ -888,8 +888,7 @@ static void draw_columns(void)
uint32_t k;
for (k = 0; k < 2u; k++) {
uint32_t c = k ? cs->comp2 : cs->comp, w = CW_OF(cs, k);
draw_column(1u + k, k ? "B WHEN" : "A WHEN", WN[w], c ? COMP_NAMES[COMP_ARPN + c - CP_ARPN] : "NONE",
c && w ? VAL(1u + k) : T_DIM, -1, ICON_PROB);
draw_column(1u + k, k ? "B" : "A", c ? WN[w] : "-", "", c && w ? VAL(1u + k) : T_DIM, -1, ICON_PROB);
}
if (CT_LEN(cs)) { fmt_int(val, (int32_t)CT_LEN(cs)); str_cpy(val + str_len(val), "/16", 4); }
else str_cpy(val, "GATE", sizeof val);
+2
View File
@@ -160,6 +160,8 @@ static uint32_t fm4_convert_ref(int16_t *p, uint8_t *v)
p[P_E7] = FM4_TO_FM6[near];
for (k = P_FM1_ATK; k <= P_FM4_LEVEL; k++)
p[k] = (k - P_FM1_ATK) % 5u == 2u || (k - P_FM1_ATK) % 5u == 4u ? 127 : 0;
p[P_ATK] = p[P_DEC] = p[P_REL] = 0; /* (0.6.81) the track's ADSR neutral on FM6 */
p[P_SUS] = 127;
return FM4_TO_FM6[near];
}
+6 -2
View File
@@ -2698,7 +2698,7 @@ static int test_presets_knob(void)
}
}
bad += check("#92 PRESETS on STEP, COMP, PATTERN, SHIFT, CHANCE, AUTOMATION: the step cursor; the sound and the steps stay",
cur_ok && n_cur == 7u); /* (0.6.81: and NOTE) */
cur_ok && n_cur == 9u); /* (0.6.81: and NOTE; 0.6.82: COMP 2, WHEN) */
bad += check("#94 PRESETS on USER, PROJECT, PHRASES, SONG: the selection (KNOB 1's); nothing loaded", sel_ok);
bad += check("#94 PRESETS on TOOLS does nothing", tools_ok);
bad += check("#94 PRESETS elsewhere (EDIT, ENV, LFO, FX, SCL, ARP, MIXER, GLOBAL, ...): the next sound, the steps stay",
@@ -6091,7 +6091,11 @@ static int test_seq_tools(void)
press(B_SEQ); frames(320);
ok &= str_eq(cur_page()->title, "NOTE");
press(B_SEQ); frames(320);
ok &= cur_page()->graph == GR_COMP;
ok &= str_eq(cur_page()->title, "COMP");
press(B_SEQ); frames(320);
ok &= str_eq(cur_page()->title, "COMP 2"); /* (0.6.82) */
press(B_SEQ); frames(320);
ok &= str_eq(cur_page()->title, "WHEN");
press(B_SEQ); frames(320);
ok &= cur_page()->graph == GR_MOTION;
press(B_SEQ); frames(320);