V10.2: TIMELINE's lanes apart again; SAVE composes first

- TIMELINE: the 2 px black line between lanes back (V10.1 had removed it with
  the gaps between rows); only the rows touch.
- SAVE's chain: SONG (TIMELINE, SECTIONS) . PROJECT (PROJECTS, ARRANGE, TOOLS)
  . SOUND (USER, PRESETS). SAVE from HOME at power-on opens TIMELINE; the
  page left still comes back (USER from elsewhere still armed: SAVE . OCT+ .
  OCT+). Tests follow the new order (the panel race: 106 -> 108 actions).

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-31 00:12:56 +00:00
1 parent b65bd99924
commit c5cba2e681
6 files changed
+764 -756

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@
#define FELUCCA_ID "FM-1_900" /* package identity (build.py: the .fwsc marker string) */
#endif
#ifndef FELUCCA_VERSION
#define FELUCCA_VERSION "V10.1" /* (2026-10-30) V10.1: TIMELINE blocks fill the lanes (no black gaps between rows or tracks). (2026-10-30) JIANT FM V10: add15-beta6 as the new base (TIMELINE, VAR, ADD, official V16 both ways); the version history before it: the git log of the add15 line (codex/add15-private) */
#define FELUCCA_VERSION "V10.2" /* (2026-10-31) V10.2: TIMELINE keeps the black line between lanes (only the rows touch); SAVE composes first: TIMELINE SECTIONS PROJECTS ARRANGE TOOLS USER PRESETS. (2026-10-30) V10.1: TIMELINE blocks fill the lanes (no black gaps between rows or tracks). (2026-10-30) JIANT FM V10: add15-beta6 as the new base (TIMELINE, VAR, ADD, official V16 both ways); the version history before it: the git log of the add15 line (codex/add15-private) */
#endif
#if FELUCCA_OTA && !FELUCCA_FLASH
#error "FELUCCA_OTA needs FELUCCA_FLASH"
+1 -1
View File
@@ -625,7 +625,7 @@ static uint32_t page_first(uint32_t fam)
* for the level it was on (lens_level, save_level, fx_level, pd_level, home_level):
* SEQ PATTERN's bars (PATTERN STRETCH TRACK, the new BAR), the roll (STEP NOTE AUTOMATION AUTO LIST), the step
* large (COMP COMP 2); PHRASES (PRESETS' pattern loader) and SONG read as PATTERN, CHANCE as STEP
* SAVE LIBRARY (PROJECTS TOOLS), PROJECT (SECTIONS ARRANGE: the PROJECT page's KNOB 1 the section), SOUND (USER PRESETS)
* SAVE (V10.2) SONG (TIMELINE SECTIONS), PROJECT (PROJECTS ARRANGE TOOLS: the PROJECT page's KNOB 1 the section), SOUND (USER PRESETS)
* FX TRACK (SENDS DIST AUTO PAN), BUSES, the effects (ui.fxmod: the module shown last, BUSES' tile lit) */
static int lens_on(void) { return !ui.home && !page_over && PAGES[ui.page].fam == FAM_SEQ; }
static int save_on(void) { return !ui.home && !page_over && PAGES[ui.page].fam == FAM_SAVE; }
+4 -4
View File
@@ -97,10 +97,10 @@ static const ng_t CG_SCL[] = {{"KEY", 0}, {"CHORD", 0}};
static const nv_t CE_ARP[] = {NV("ARP", 0, 0, 2), NV("ARP 2", 0, 0, 2)};
static const ng_t CG_ARP[] = {{"ARP", 0}};
enum { SV_LIB, SV_PROJ, SV_SOUND };
static const nv_t CE_SAVE[] = {NV("USER", 0, 0, SV_SOUND), NV("PRESETS", 0, 0, SV_SOUND), NV("PROJECT", "SECTIONS", 1, SV_PROJ),
NV("ARRANGE", 0, 1, SV_PROJ), NV("TIMELINE", 0, 1, SV_PROJ),
NV("PROJECT", "PROJECTS", 2, SV_LIB), NV("TOOLS", 0, 2, SV_LIB)};
static const ng_t CG_SAVE[] = {{"SOUND", 0}, {"PROJECT", 0}, {"LIBRARY", 0}};
static const nv_t CE_SAVE[] = {NV("TIMELINE", 0, 0, SV_PROJ), NV("PROJECT", "SECTIONS", 0, SV_PROJ), /* (V10.1) composing first */
NV("PROJECT", "PROJECTS", 1, SV_LIB), NV("ARRANGE", 0, 1, SV_PROJ), NV("TOOLS", 0, 1, SV_LIB),
NV("USER", 0, 2, SV_SOUND), NV("PRESETS", 0, 2, SV_SOUND)};
static const ng_t CG_SAVE[] = {{"SONG", 0}, {"PROJECT", 0}, {"SOUND", 0}};
#define CH(e, g) {e, g, (uint8_t)NELEM(e), (uint8_t)NELEM(g)}
#define NAV_KEYS (SEC_N + 3u) /* the sections' memories: EDIT's synth one, then FM6 DRUM DIGITAL */
static const ch_t CHAINS[NAV_KEYS] = {CH(CE_HOME, CG_HOME), CH(CE_SYN, CG_SYN), CH(CE_SEQ, CG_SEQ), CH(CE_FX, CG_FX),
+4 -4
View File
@@ -97,9 +97,9 @@ static void graph_proj(int ar)
uint32_t s = r->slot & 3u;
int32_t x = 24 + (int32_t)(acc * 212u / t), w = 24 + (int32_t)((acc + r->bars) * 212u / t) - x;
if (w < 2) w = 2;
for (j = 0; j <= NTRK; j++) { /* (V10.1) the lanes touch (SEC 2 px above the tracks), the rows touch:
* a row's edge a 1 px line of its own colour darker, never black */
int32_t y = j ? 4 + (int32_t)j * 17 : 4, h = j ? 17 : 15;
for (j = 0; j <= NTRK; j++) { /* (V10.1) a 2 px black line between lanes; the rows touch: a row's
* edge a 1 px line of its own colour darker, never black */
int32_t y = 4 + (int32_t)j * 17, h = 15;
uint32_t src = j ? row_src(i, j - 1u, s) : s, v = j ? row_var(i, j - 1u) : 0u, own = !j || src == s;
uint16_t c = j && own ? lz_sec(src, 1, 1) : sec_col(src);
if (v == RV_MUTE) {
@@ -117,7 +117,7 @@ static void graph_proj(int ar)
}
}
if (i == ui.song_row % (n ? n : 1u)) {
int32_t fy = ui.song_tk ? 4 + (int32_t)ui.song_tk * 17 : 4, fh = ui.song_tk ? 17 : 15;
int32_t fy = 4 + (int32_t)ui.song_tk * 17, fh = 15;
cv_frame(x, fy, w, fh, T_TEXT);
cv_frame(x + 1, fy + 1, w - 2, fh - 2, T_TEXT);
}
+37 -29
View File
@@ -1577,8 +1577,17 @@ static int test_save(void)
uint32_t i;
ui_power_on();
trk[0].p[P_E0] = 5;
press(B_SAVE); /* (V10.1) SAVE composes first: TIMELINE, then PROJECTS, then SOUND */
bad += check("V10.1 SAVE from HOME at power-on: TIMELINE (the song first), nothing armed",
!ui.home && SONG_TRK(cur_page()) && ui.act == 0u);
press(B_SAVE);
bad += check("SAVE opens USER with SAVE selected, without writing a slot",
bad += check("V10.1 SAVE again: the next group, PROJECT's PROJECTS", cur_page()->graph == GR_SLOTS &&
save_level() == SV_LIB);
press(B_SAVE);
bad += check("V10.1 SAVE again: SOUND's USER, from inside: SAVE not armed", cur_page()->graph == GR_USER && ui.act == 0u);
go_home();
press(B_SAVE);
bad += check("SAVE from HOME back onto USER (the page left) with SAVE selected, without writing a slot",
!ui.home && cur_page()->graph == GR_USER && ui.act == 4u && !up_used(0));
press(B_OCTUP);
bad += check("SAVE then OCT+ opens NAME (the automatic name), writes nothing yet",
@@ -1591,17 +1600,12 @@ static int test_save(void)
bad += check("..OCT+ again stores the edited sound with that name (SAVE, OCT+, OCT+)",
!name_on() && up_used(0) && up_value(up_rec(0), P_E0) == 5 && ui.act == 0u && str_eq(nmb, au));
}
press(B_SAVE); /* (0.9.2) a SAVE tap on SAVE: the next group (was the other set) */
bad += check("0.9.2 SAVE again: the next group, PROJECT's SECTIONS (was SOUND's other set, PRESETS)",
cur_page()->graph == GR_SLOTS && save_level() == SV_PROJ && ui.act == 0u);
turn(EN_SELECT, -1);
bad += check("0.9.2 SELECT left: PRESETS (the chain: USER PRESETS SECTIONS ..)", cur_page()->graph == GR_BROWSE &&
save_level() == SV_SOUND);
turn(EN_SELECT, 1);
bad += check("V10.1 SELECT right: PRESETS, the chain's last", cur_page()->graph == GR_BROWSE && save_level() == SV_SOUND);
go_home();
press(B_SAVE);
bad += check("0.9.2 SAVE from HOME: the page left, PRESETS (rule 2; was always USER)", cur_page()->graph == GR_BROWSE);
bad += check("0.9.2 SAVE from HOME: the page left, PRESETS (rule 2)", cur_page()->graph == GR_BROWSE);
turn(EN_SELECT, -1);
bad += check("0.9.2 SELECT onto USER from inside: SAVE not armed", cur_page()->graph == GR_USER && ui.act == 0u);
go_home();
press(B_SAVE);
bad += check("0.9.2 SAVE from HOME onto USER: SAVE armed (SAVE . OCT+ . OCT+ as before)",
@@ -7066,30 +7070,30 @@ static void tl_drum(void)
* the level's other set, SAVE from elsewhere always USER, PRESETS the slot / project) */
static int test_save_lens(void)
{
static const char *const CH[7] = {"USER", "PRESETS", "SECTIONS", "ARRANGE", "TIMELINE", "PROJECTS", "TOOLS"};
static const char *const TP[2] = {"SECTIONS", "PROJECTS"};
static const char *const CH[7] = {"TIMELINE", "SECTIONS", "PROJECTS", "ARRANGE", "TOOLS", "USER", "PRESETS"};
static const char *const TP[2] = {"PROJECTS", "USER"};
int bad = 0, ok;
uint32_t pr;
ui_power_on();
go_home(); frame();
press(B_SAVE); frame();
ok = save_on() && save_level() == SV_SOUND && cur_page()->graph == GR_USER && ui.act == 4u && lz_on() &&
ok = save_on() && save_level() == SV_PROJ && SONG_TRK(cur_page()) && ui.act == 0u && lz_on() &&
card_y() == LZ_CARD_Y && graph_y() == LZ_GRAPH_Y && foot_y() == LZ_FOOT_Y && lz_tab_lit(0) &&
lz_crumb_is("SAVE \xB7 SOUND \xB7 USER") && lz_count_is("1/7");
bad += check("0.9.2 SAVE from HOME at power-on: SOUND's USER, SAVE armed; the tabs (SOUND lit), the crumb, 1/7", ok);
bad += check("0.9.2 SAVE: one chain USER PRESETS SECTIONS ARRANGE (add15: TIMELINE) PROJECTS TOOLS; a SAVE tap the next group, round",
lz_crumb_is("SAVE \xB7 SONG \xB7 TIMELINE") && lz_count_is("1/7");
bad += check("V10.1 SAVE from HOME at power-on: SONG's TIMELINE; the tabs (SONG lit), the crumb, 1/7", ok);
bad += check("V10.1 SAVE: one chain TIMELINE SECTIONS PROJECTS ARRANGE TOOLS USER PRESETS; a SAVE tap the next group, round",
chain_walk(B_SAVE, CH, 7, TP, 2));
ui_power_on(); go_home(); frame(); press(B_SAVE); frame();
turn(EN_SELECT, 3); frame(); /* ARRANGE, left there */
go_home(); frame(); press(B_SAVE); frame();
ok = cur_page()->graph == GR_SONG && save_level() == SV_PROJ; /* (the page left; was always USER) */
turn(EN_SELECT, -1); frame();
ok &= cur_page()->graph == GR_SLOTS && save_level() == SV_PROJ && ui.act == 0u && lz_crumb_is("SAVE \xB7 PROJECT \xB7 SECTIONS");
ok = cur_page()->graph == GR_SONG && !SONG_TRK(cur_page()) && save_level() == SV_PROJ; /* (the page left) */
turn(EN_SELECT, -2); frame();
ok &= cur_page()->graph == GR_SLOTS && save_level() == SV_PROJ && ui.act == 0u && lz_crumb_is("SAVE \xB7 SONG \xB7 SECTIONS");
go_home(); frame(); press(B_SAVE); frame();
ok &= cur_page()->graph == GR_SLOTS && ui.act == 4u; /* (SECTIONS from elsewhere: SAVE armed) */
turn(EN_SELECT, 3); frame(); /* (add15: past TIMELINE) */
ok &= cur_page()->graph == GR_SLOTS && save_level() == SV_LIB && ui.act == 0u && lz_crumb_is("SAVE \xB7 LIBRARY \xB7 PROJECTS");
bad += check("0.9.2 SAVE from elsewhere the page left (ARRANGE); USER and SECTIONS from elsewhere armed, inside not", ok);
turn(EN_SELECT, 1); frame();
ok &= cur_page()->graph == GR_SLOTS && save_level() == SV_LIB && ui.act == 0u && lz_crumb_is("SAVE \xB7 PROJECT \xB7 PROJECTS");
bad += check("V10.1 SAVE from elsewhere the page left (ARRANGE); USER and SECTIONS from elsewhere armed, inside not", ok);
turn(EN_K1, 1); frame(); /* LIBRARY: KNOB 1 the project */
ok = song_cur == 1u;
turn(EN_K1, -1); frame();
@@ -7115,7 +7119,7 @@ static int test_save_lens(void)
memset(song_idx.tsrc[song_cur], 0, sizeof song_idx.tsrc[song_cur]);
press(B_SAVE); frame();
nav_put(SEC_SAVE, "TIMELINE"); frame();
ok = SONG_TRK(cur_page()) && !SONG_TRK(&PAGES[nv_page(SEC_SAVE, 3)]);
ok = SONG_TRK(cur_page()) && !SONG_TRK(&PAGES[nv_page(SEC_SAVE, 3)]) && SONG_TRK(&PAGES[nv_page(SEC_SAVE, 0)]);
turn(EN_K1, 1); frame(); /* row 2 */
turn(EN_K2, 1); frame(); turn(EN_K2, 1); frame(); turn(EN_K2, 1); frame(); /* lane T3 (0 is SEC) */
turn(EN_K3, 1); frame(); turn(EN_K3, 1); frame(); turn(EN_K3, 1); frame(); /* FROM C */
@@ -8373,7 +8377,7 @@ static int test_project_page(void)
chain_config.row[0] = (chain_row_t){0, 4}; chain_config.row[1] = (chain_row_t){1, 8};
sl_steps(80); /* the music now: 80.. */
go_home(); frame(); press(B_SAVE); frame();
nav_put(SEC_SAVE, "PROJECTS"); frame(); /* (0.9.2: LIBRARY's PROJECTS, the chain's 5th) */
nav_put(SEC_SAVE, "PROJECTS"); frame(); /* (V10.1: PROJECT's PROJECTS, the chain's 3rd) */
ok = cur_page()->graph == GR_SLOTS && PAGES[ui.page + 1u].graph == GR_SONG && str_eq(PAGES[ui.page + 1u].title, "ARRANGE");
bad += check("PROJECT: SAVE > PROJECT, then ARRANGE (the project's song)", ok);
turn(EN_K1, 1); frame();
@@ -8382,7 +8386,7 @@ static int test_project_page(void)
song.g[G_SLOT] = 1;
turn(EN_K2, 1); frame(); /* LIBRARY: KNOB 2 the section */
ok = song.g[G_SLOT] == 2 && save_level() == SV_LIB;
turn(EN_SELECT, -3); frame(); /* (0.9.2) PROJECT's SECTIONS (three back, add15: TIMELINE): KNOB 1 */
turn(EN_SELECT, -1); frame(); /* (V10.1) SONG's SECTIONS (one back): KNOB 1 */
ok &= save_level() == SV_PROJ && cur_page()->graph == GR_SLOTS;
turn(EN_K1, 1); frame();
ok &= song.g[G_SLOT] == 3;
@@ -8397,7 +8401,7 @@ static int test_project_page(void)
for (k = 0; k < 8u && name_on(); k++) { press(B_OCTUP); frame(); }
ok = project_used(2) && live.cur == 2;
bad += check(" SAVE: the music into project 2's section C (the music's section: NOW)", ok);
turn(EN_SELECT, 3); frame(); /* (back to LIBRARY's PROJECTS: KNOB 1 the project) */
turn(EN_SELECT, 1); frame(); /* (V10.1: back to PROJECTS, the next page: KNOB 1 the project) */
turn(EN_K1, -1); frame();
ok = song_cur == 0 && (!FELUCCA_FLASH || project_used(0)) && !project_used(2) && chain_config.count == 2 &&
trk[0].step[0].note[0] == 80; /* (no flash here: the sections were RAM only) */
@@ -12372,7 +12376,7 @@ static void tk_start(uint32_t from) /* 0 home, 1 seq, 2 fxdl
}
static int test_nav_tasks(void)
{
static const uint8_t WANT[14] = {4, 3, 5, 6, 33, 7, 10, 2, 3, 1, 3, 8, 17, 4}; /* (seq2: task 5 by STEP's KNOB 1, no BAR;
static const uint8_t WANT[14] = {4, 3, 5, 6, 33, 10, 9, 2, 3, 1, 3, 8, 17, 4}; /* (V10.1: SAVE composes first, 106 -> 108) */ /* (seq2: task 5 by STEP's KNOB 1, no BAR;
* task 11 TRACK under LEN's tab; task 13 eight detents (seq2c:
* MUTATE 2); was 73) */
uint32_t got[14], t, tot = 0;
@@ -12405,11 +12409,14 @@ static int test_nav_tasks(void)
ok = str_eq(cur_page()->title, "STEP") && ui.cursor == 32u && (TSEL->step[32].flags & SF_ACCENT);
break;
case 5: /* the sound into U05 */
tk_start(0); tk_btn(B_SAVE); tk_go(EN_K1, 4); tk_btn(B_OCTUP); tk_btn(B_OCTUP);
tk_start(0); tk_btn(B_SAVE); tk_btn(B_SAVE); tk_btn(B_SAVE); tk_go(EN_K1, 4); tk_val(EN_K4, 1); /* (V10.1:
* TIMELINE first, the third tap SOUND's USER) */
tk_btn(B_OCTUP); tk_btn(B_OCTUP);
ok = ui.uslot == 4u && up_used(4) && !name_on();
break;
case 6: /* the sound into U05, SAVE left on ARRANGE */
tk_start(3); tk_btn(B_SAVE); tk_btn(B_SAVE); tk_btn(B_SAVE); tk_go(EN_K1, 4); tk_val(EN_K4, 1);
tk_start(3); tk_btn(B_SAVE); tk_btn(B_SAVE); tk_go(EN_K1, 4); tk_val(EN_K4, 1); /* (V10.1: ARRANGE's
* group, then SOUND's USER) */
tk_btn(B_OCTUP); tk_btn(B_OCTUP);
ok = ui.uslot == 4u && up_used(4) && !name_on();
break;
@@ -12457,7 +12464,7 @@ static int test_nav_tasks(void)
}
printf("ui: the race: %u %u %u %u %u %u %u %u %u %u %u %u %u %u = %u actions (0.9.1: 75)\n", got[0], got[1], got[2], got[3],
got[4], got[5], got[6], got[7], got[8], got[9], got[10], got[11], got[12], got[13], tot);
bad += check("0.9.2 the mock-up's 14 tasks on the panel: each goal reached in its PROPOSED actions (seq2c: 106, was 73)", okall && tot == 106u);
bad += check("0.9.2 the mock-up's 14 tasks on the panel: each goal reached in its PROPOSED actions (seq2c: 106, was 73)", okall && tot == 108u);
ui_power_on();
return bad;
}
@@ -12499,6 +12506,7 @@ static int test_nav_rules(void)
ok &= str_eq(cur_page()->title, "EDIT 1"); /* (EDIT: EDIT) */
bad += check("0.9.2 SEQ + G5: AUTO LIST's record, else the cursor step (CLR STEP); TIME = REST clears; EDIT opens EDIT", ok);
ui_power_on(); go_home(); frame(); press(B_SAVE); frame();
nav_put(SEC_SAVE, "USER"); frame(); /* (V10.1: SAVE opens TIMELINE) */
btn_down(B_SAVE); frames(800);
(void)ly_keyname(LAYER_SAVE, 0, 11u, kn);
ok = ui.layer == LAYER_SAVE && str_eq(kn, "NAME");
+717 -717
View File
File diff suppressed because it is too large. Load diff