V10.8.10: each track its colour (TRK_COL, as JIANT BYTE: T1 yellow .. T6 blue); on the track's pages the header's bar TRACK N / ENGINE on it (BPM .. load; HOME, GLO, SAVE, JAM keep their title), the number's box in it; MIXER's numbers, ECO's, JAM's T1..T6 in them; STEP FX's hint clear of the bar's box; tests

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-11-22 16:34:46 +00:00
1 parent cc4529d212
commit f0f370ba0a
8 files changed
+1081 -1036

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@
#define FELUCCA_ID "FM-1_900" /* package identity (build.py: the .fwsc marker string) */
#endif
#ifndef FELUCCA_VERSION
#define FELUCCA_VERSION "V10.8.9" /* (2026-11-21) V10.7.77: GEN (the owner): DUBSTEP's wobble its rate moving (the wobble bass's LFO RATE automated half a bar each: 1/4 1/8 1/8T 1/16); CUMBIA villera one throw in two (a villera 'teclado': 92 .. 100, minor, the keyboard's lead up front). V10.7.76: DRUM-X MATH a wavetable (the owner: "harsh"): its t whole cycles of the hit's time (one shape evolving), interpolated between its samples; SOUND 3 draws it (four moments, cold to hot); hints trimmed (flash). V10.7.75: DRUM-X MATH (the owner): its RATIO (1/4 .. 16, 24, the inharmonic between) on SOUND 3's KNOB 4, COLOR read MOD AMT; MATH's RESTART the scope (its ramps' picture gone), ten more hints out (flash). V10.7.74: DRUM-X MATH (the owner): a sound's WAVE past BELL a MATH formula F01..F48 as its FM's modulator (COLOR its index; its t the hit's time, a sample in eight), kept with the project ('D' 'F'). V10.7.73: SCL > HARMONY its own tab (KEY CHORD HARMONY SCENE); the defaults once (the owner): LARGE off, CLICK REC, COUNT-IN 1 BAR. V10.7.72: GEN (the owner): MATH WEST STRING more (the archetypes' third options theirs, 25 %; a bass's one time in ten); GLO > GLOBAL the scope, its bars gone. V10.7.71: SCL > HARMONY's picture (the owner): the progression's chords as roman numerals in the key ("-" minor, "o" diminished), each its root's colour, the one playing lit; the obvious knobs' hints out (flash). V10.7.70: FX > PUNCH IN: KNOB 4 M4 (its ERASE PUNCH LANE's only), so OCT+ always the punch-in editor (an ERASE picked took it). V10.7.69: MATH FLOAT MORPH (the owner): ALGO B where CHIP was, MORPH A -> B where BEND was (between the ends B a sample in eight, interpolated: +12.5 % CPU); MATH's formulas (lofi_float, lofi_byte) their 14 divisions by a constant as multiplies (JIANT BYTE 0.16's build pass, tools/build.py const_divs: exact, less CPU a sample); the MACRO layer's dead branches out (flash). V10.7.68: EUCLID MODES > ROLE (MELODY CHORDS BASS ARP, was CHORD) on the harmony the other melodic tracks play, bar by bar (four bars when it changes), else SCL's key; a recorded melody EUCLID takes: its notes as they were; LFO / FX dice leftovers out (flash). V10.7.67: GEN and EUCLID MUTATE fuse two seeds (the owner: never one as it is; the second far from the first), A+B in the name; FX + OCT+ opens the punch-in editor again (as OCT+ on FX > PUNCH IN). V10.7.66: SCL > HARMONY (PROG LENGTH EVOLVE SKIP: every melodic sequence follows a progression); GEN 8 progressions more (neo-soul, jazz, IDM, progressive); EUCLID's melody CONTOUR RANGE MOTIF CHORD; macros FX > PUNCH IN's only (LFO's layer, HOME > ROUTES gone, MACROS in FX), GLO's layer says G4 UNDO; the PUNCH-IN EDITOR redone (the owner): a key WHAT (an effect, or PARAM: M1..M4, CUT PITCH TIMBRE VOLUME PAN DIST CHORUS DELAY REVERB VIBRATO on every track), HOW (an effect HOLD LATCH QUANT; PARAM HOLD RAMP UP RAMP DN SINE STUTTER S&H), AMOUNT (-100..+100 %; an effect its TARGET), TIME (1/16 .. 8 BARS); two slots A B; FX > PUNCH IN its knobs M1..M4 (PUNCH LANE: LEN RES); the layers MAP only (KNOBS STATE gone, ALGORITHM nothing held), the FX cards "M1 CUT"; FX + SELECT the FX pages (its dice gone). GENE while it plays waits for the bar to end (Hollusion); GENE 4: KEY NEW / KEEP (the first melodic track's key and mode kept), ENTRY ALL / BUILD (the new piece in a track a bar, the kit first); the old DIGITAL / NOISE / retired engines' conversions out (flash), the songs 7-8 notice out; voices past V10.6c's budget: tails first, FM6's quarter rate gone. V10.7.65: the PUNCH-IN EDITOR (the owner): OCT+ on FX > PUNCH IN opens it (the FX layer locked open; an ERASE picked on KNOB 4: OCT+ does it), DICE gone; the COMB / COMB- cut-off moved by the LFO and the ENV as the other filters; a key held and KNOB 1..4 its EFFECT (any, MOD a macro moved) TARGET (ALL SYN DRM T1..T6; MOD M1..M4) AMOUNT (MOD 1 BEAT .. 4 BARS) MODE (HOLD LATCH QUANT; MOD RAMP UP / DOWN SINE S&H), the mode said in the header; SELECT a slot (four, in the settings), OCT+ saves and plays it, OCT- leaves. V10.7.64: SCENE's LEADER PRESS (a key's note on every live track at once, each its own sound); SCENE on the live tracks only (it opened on T6, asleep with four: nothing heard, nothing drawn), every role with the key: a kit's DRUM loops its beat while a key is held, stopped too; the engines as the kit (the owner): FILTER TYPE CUT RES IMAGE (DIST the SENDS' only), PLAY POLY GLIDE UNISON VEL (the plain MORE gone, GL MODE off the panel), GAIN 0..+12 dB clean where a DRIVE was (ANALOG's MORE, WHEEL's COLOR; their DRIVE off the panel, kept), saved ('T' 'G'); FUGA's subject and answer on live tracks (the continuo after: with four tracks it began unheard); DUBSTEP's bass the wobble (a resonant low-pass on an LFO on the 1/8s, kept: not slowed to a breath); DRUM-X KIT's SNAP (was ATTACK), SOUND 3's SHORT (a filter's quick noise, was SNAP). V10.7.63: GENE: DUBSTEP SHOEGAZE METALCORE, each genre its FX STYLE (the drive where it belongsLine truncated
#define FELUCCA_VERSION "V10.8.10" /* (2026-11-21) V10.7.77: GEN (the owner): DUBSTEP's wobble its rate moving (the wobble bass's LFO RATE automated half a bar each: 1/4 1/8 1/8T 1/16); CUMBIA villera one throw in two (a villera 'teclado': 92 .. 100, minor, the keyboard's lead up front). V10.7.76: DRUM-X MATH a wavetable (the owner: "harsh"): its t whole cycles of the hit's time (one shape evolving), interpolated between its samples; SOUND 3 draws it (four moments, cold to hot); hints trimmed (flash). V10.7.75: DRUM-X MATH (the owner): its RATIO (1/4 .. 16, 24, the inharmonic between) on SOUND 3's KNOB 4, COLOR read MOD AMT; MATH's RESTART the scope (its ramps' picture gone), ten more hints out (flash). V10.7.74: DRUM-X MATH (the owner): a sound's WAVE past BELL a MATH formula F01..F48 as its FM's modulator (COLOR its index; its t the hit's time, a sample in eight), kept with the project ('D' 'F'). V10.7.73: SCL > HARMONY its own tab (KEY CHORD HARMONY SCENE); the defaults once (the owner): LARGE off, CLICK REC, COUNT-IN 1 BAR. V10.7.72: GEN (the owner): MATH WEST STRING more (the archetypes' third options theirs, 25 %; a bass's one time in ten); GLO > GLOBAL the scope, its bars gone. V10.7.71: SCL > HARMONY's picture (the owner): the progression's chords as roman numerals in the key ("-" minor, "o" diminished), each its root's colour, the one playing lit; the obvious knobs' hints out (flash). V10.7.70: FX > PUNCH IN: KNOB 4 M4 (its ERASE PUNCH LANE's only), so OCT+ always the punch-in editor (an ERASE picked took it). V10.7.69: MATH FLOAT MORPH (the owner): ALGO B where CHIP was, MORPH A -> B where BEND was (between the ends B a sample in eight, interpolated: +12.5 % CPU); MATH's formulas (lofi_float, lofi_byte) their 14 divisions by a constant as multiplies (JIANT BYTE 0.16's build pass, tools/build.py const_divs: exact, less CPU a sample); the MACRO layer's dead branches out (flash). V10.7.68: EUCLID MODES > ROLE (MELODY CHORDS BASS ARP, was CHORD) on the harmony the other melodic tracks play, bar by bar (four bars when it changes), else SCL's key; a recorded melody EUCLID takes: its notes as they were; LFO / FX dice leftovers out (flash). V10.7.67: GEN and EUCLID MUTATE fuse two seeds (the owner: never one as it is; the second far from the first), A+B in the name; FX + OCT+ opens the punch-in editor again (as OCT+ on FX > PUNCH IN). V10.7.66: SCL > HARMONY (PROG LENGTH EVOLVE SKIP: every melodic sequence follows a progression); GEN 8 progressions more (neo-soul, jazz, IDM, progressive); EUCLID's melody CONTOUR RANGE MOTIF CHORD; macros FX > PUNCH IN's only (LFO's layer, HOME > ROUTES gone, MACROS in FX), GLO's layer says G4 UNDO; the PUNCH-IN EDITOR redone (the owner): a key WHAT (an effect, or PARAM: M1..M4, CUT PITCH TIMBRE VOLUME PAN DIST CHORUS DELAY REVERB VIBRATO on every track), HOW (an effect HOLD LATCH QUANT; PARAM HOLD RAMP UP RAMP DN SINE STUTTER S&H), AMOUNT (-100..+100 %; an effect its TARGET), TIME (1/16 .. 8 BARS); two slots A B; FX > PUNCH IN its knobs M1..M4 (PUNCH LANE: LEN RES); the layers MAP only (KNOBS STATE gone, ALGORITHM nothing held), the FX cards "M1 CUT"; FX + SELECT the FX pages (its dice gone). GENE while it plays waits for the bar to end (Hollusion); GENE 4: KEY NEW / KEEP (the first melodic track's key and mode kept), ENTRY ALL / BUILD (the new piece in a track a bar, the kit first); the old DIGITAL / NOISE / retired engines' conversions out (flash), the songs 7-8 notice out; voices past V10.6c's budget: tails first, FM6's quarter rate gone. V10.7.65: the PUNCH-IN EDITOR (the owner): OCT+ on FX > PUNCH IN opens it (the FX layer locked open; an ERASE picked on KNOB 4: OCT+ does it), DICE gone; the COMB / COMB- cut-off moved by the LFO and the ENV as the other filters; a key held and KNOB 1..4 its EFFECT (any, MOD a macro moved) TARGET (ALL SYN DRM T1..T6; MOD M1..M4) AMOUNT (MOD 1 BEAT .. 4 BARS) MODE (HOLD LATCH QUANT; MOD RAMP UP / DOWN SINE S&H), the mode said in the header; SELECT a slot (four, in the settings), OCT+ saves and plays it, OCT- leaves. V10.7.64: SCENE's LEADER PRESS (a key's note on every live track at once, each its own sound); SCENE on the live tracks only (it opened on T6, asleep with four: nothing heard, nothing drawn), every role with the key: a kit's DRUM loops its beat while a key is held, stopped too; the engines as the kit (the owner): FILTER TYPE CUT RES IMAGE (DIST the SENDS' only), PLAY POLY GLIDE UNISON VEL (the plain MORE gone, GL MODE off the panel), GAIN 0..+12 dB clean where a DRIVE was (ANALOG's MORE, WHEEL's COLOR; their DRIVE off the panel, kept), saved ('T' 'G'); FUGA's subject and answer on live tracks (the continuo after: with four tracks it began unheard); DUBSTEP's bass the wobble (a resonant low-pass on an LFO on the 1/8s, kept: not slowed to a breath); DRUM-X KIT's SNAP (was ATTACK), SOUND 3's SHORT (a filter's quick noise, was SNAP). V10.7.63: GENE: DUBSTEP SHOEGAZE METALCORE, each genre its FX STYLE (the drive where it belongLine truncated
#endif
#if FELUCCA_OTA && !FELUCCA_FLASH
#error "FELUCCA_OTA needs FELUCCA_FLASH"
+5
View File
@@ -12,6 +12,11 @@ static track_t *tsel_p(void) { return &trk[song.sel]; }
#define TSEL tsel_p()
static uint32_t trk_eng(const track_t *t) { return t->eng_req % NENGINES; } /* (0.9.7, flash) a track's engine */
static const engine_t *trk_engp(const track_t *t) { return ENGINES[trk_eng(t)]; } /* .. its engine's table */
/* (V10.8.10, the owner; JIANT BYTE's the same) each track its colour, fixed (not the palette's): T1 yellow, T2 orange, T3
* red, T4 magenta, T5 violet, T6 blue; ink on it black (T1..T4), white (T5, T6) */
static const uint16_t TRK_COL[6] = {0xFE87u, 0xFC45u, 0xF9C7u, 0xF9D6u, 0xA2FFu, 0x3C7Fu};
#define trk_col(k) TRK_COL[(k) % 6u]
#define trk_ink(k) ((k) % 6u >= 4u ? 0xFFFFu : 0x0000u)
static int project_save(uint32_t slot);
static int song_save_as(uint32_t target, const char *name);
static int song_draft_begin(void);
+20 -5
View File
@@ -230,6 +230,14 @@ static void head_transport(void)
}
static void sound_name(const track_t *t, char *b);
/* the centre's words (b holds 40) and their colour */
/* (V10.8.10) a page of the selected track: its bar in the header, TRACK N / ENGINE on the track's colour (not HOME,
* MENU, a layer, GLO, SAVE, SLOTS, the song's, TOOLS: their title as before) */
static int head_trk(void)
{
const page_t *pg = cur_page();
return !ui.home && !ui.menu && !ui.layer && !(pg->graph == GR_SLOTS || pg->graph == GR_SONG || pg->graph == GR_TOOLS ||
pg->fam == FAM_GLO || pg->fam == FAM_TRK || pg->fam == FAM_SAVE);
}
static uint16_t head_title(char *b)
{
const page_t *pg = cur_page();
@@ -241,11 +249,15 @@ static uint16_t head_title(char *b)
str_cpy(b + str_len(b), MTAB_NAME[MI_TAB[ui.menu_sel % MI_COUNT]], 16);
return T_MID;
}
if (head_trk()) { /* (V10.8.10) "TRACK 3 / DRUM-X" */
str_cpy(b, "TRACK 1 / ", 40);
b[6] = (char)('1' + song.sel % NTRK);
str_cpy(b + 10, trk_engp(TSEL)->name, 16);
return trk_col(song.sel);
}
b[0] = 'T';
b[1] = (char)('1' + song.sel % NTRK);
b[2] = 0;
if (!ui.home && !ui.layer && pg->fam == FAM_FX)
return T_ACCENT;
if (glob) {
char nm[16];
b[0] = 'P';
@@ -343,9 +355,9 @@ static void draw_head(void)
cv_begin(240, H_HEAD, T_BG);
if (!ui.menu) { /* (0.8.9) the track's box, as the 0.6 had it */
char n[2] = {(char)('1' + song.sel % NTRK), 0};
cv_rrect(HEAD_TK_X, HEAD_MID - 6, 13, 13, 3, T_ACCENT, T_BG);
cv_rrect(HEAD_TK_X, HEAD_MID - 6, 13, 13, 3, trk_col(song.sel), T_BG); /* (V10.8.10: the track's colour) */
GFX_HOOK_ALIGN(HEAD_TK_X, HEAD_MID - 6, HEAD_TK_X + 13, HEAD_MID + 7, AL_HV, "header track number in its box");
cv_text_in(HEAD_TK_X, HEAD_XY, 13, &AF_X, n, T_INK, T_ACCENT);
cv_text_in(HEAD_TK_X, HEAD_XY, 13, &AF_X, n, 0x0000u, trk_col(song.sel));
}
head_transport();
if (!ui.roll[ROLL_BPM].from[0])
@@ -366,7 +378,10 @@ static void draw_head(void)
}
if (!msg && (chain.running || song.octave))
r = head_group() - 6;
if (!msg) { /* the centre's words on x 120, between the BPM and the right */
if (!msg && head_trk()) { /* (V10.8.10) the track's bar: BPM .. load, its colour */
cv_rrect(lx + 6, HEAD_MID - 8, r - lx - 6, 17, 4, tc, T_BG);
cv_text_in(lx + 6, HEAD_XY, r - lx - 6, &AF_X, ttl, trk_ink(song.sel), tc);
} else if (!msg) { /* the centre's words on x 120, between the BPM and the right */
int32_t w = text_w(&AF_X, ttl), x = 120 - HALF_UP(w), l = lx + 8;
if (x + w > r) x = r - w;
if (x < l) x = l;
+4 -4
View File
@@ -1175,7 +1175,7 @@ static __attribute__((noinline)) void seq_overlay(const track_t *t, const page_t
if (sfx_key < 16u) /* (V10.8.8) the component held, large (V10.8.9) */
hold_banner(SFX_NM[sfx_key], sfx_k, rec_on(t));
else
cv_text(4, 2, &AF_X, "HOLD A KEY: STEP FX", T_MID);
cv_text(100, 2, &AF_X, "HOLD A KEY: STEP FX", T_MID);
} else if (pg->graph == GR_MOTION || pg->graph == GR_EVENTS) {
uint8_t idx[MOTION_MAX];
uint32_t n = ev_rows(idx), cur = ev_row(n);
@@ -1734,7 +1734,7 @@ static void track_strip(uint32_t c, uint32_t sel, uint32_t st, uint32_t mute, ui
uint16_t vc = mute ? T_DIM : T_THEME;
cv_begin(CARD_W, LG_H_GRAPH, T_BG);
cv_rrect(0, 0, CARD_W, LG_H_GRAPH, 5, T_SURF, T_BG);
cv_trk(4, 4, 16, c, sel ? T_ACCENT : T_MID, T_SURF);
cv_trk(4, 4, 16, c, sel ? trk_col(c) : ux_mix(T_SURF, trk_col(c), 55), T_SURF); /* (V10.8.10) */
if (st)
GFX_HOOK_ALIGN(0, 4, 0, 20, AL_V, "mixer badge on the cushion's line");
if (st == 1u || st == 2u)
@@ -1768,7 +1768,7 @@ static __attribute__((noinline)) void track_col6(uint32_t c, uint32_t sel, uint3
uint16_t lc = hot == 1u ? T_ACCENT : lvl ? (mute ? T_DIM : T_TEXT) : T_DIM;
cv_begin(T6_W, H_GRAPH, T_BG);
cv_rrect(0, 0, T6_W, H_GRAPH, 5, T_SURF, T_BG);
cv_trk(4, 5, 16, c, sel ? T_ACCENT : mute ? T_DIM : T_MID, T_SURF);
cv_trk(4, 5, 16, c, mute ? T_DIM : sel ? trk_col(c) : ux_mix(T_SURF, trk_col(c), 55), T_SURF); /* (V10.8.10) */
if (st == 1u || st == 2u) /* armed: a dot (recording: red) */
cv_rrect(T6_W - 11, 10, 6, 6, 3, st == 1u ? T_REC : T_ACCENT, T_SURF);
if (mute == 2u) /* asleep (TRACKS 4) */
@@ -1872,7 +1872,7 @@ static __attribute__((noinline)) void draw_tracks(void)
}
cv_begin(CARD_W, H_GRAPH, T_BG);
cv_rrect(0, 0, CARD_W, H_GRAPH, 5, T_SURF, T_BG);
cv_trk(4, 5, 16, c, sel ? T_ACCENT : T_MID, T_SURF);
cv_trk(4, 5, 16, c, sel ? trk_col(c) : ux_mix(T_SURF, trk_col(c), 55), T_SURF); /* (V10.8.10) */
if (st)
GFX_HOOK_ALIGN(0, 5, 0, 21, AL_V, "mixer badge on the cushion's line");
if (st == 1u || st == 2u) /* REC (recording) / ARM (armed, stopped) */
+1 -1
View File
@@ -273,7 +273,7 @@ static void graph_eco(void)
char num[2] = {(char)('1' + c), 0};
eco_being(c, bx[c], by[c], eco.r[c]);
ny = clamp(py + rad / 2 + 4, 4, bot);
cv_text_in(px - 30, ny, 60, &AF_S, num, c == song.sel ? T_THEME : eco_off(c) ? T_DIM : T_MID, T_SURF);
cv_text_in(px - 30, ny, 60, &AF_S, num, eco_off(c) ? T_DIM : trk_col(c), T_SURF); /* (V10.8.10) */
}
if (home_set()) /* (V10.7.62) LIFE (was MACROS: the FX layer's knobs since V10.7.59) */
cv_text(6, 2, &AF_X, life_on ? "THE TRACKS MOVE EACH OTHER" : "LIFE OFF: TURN A KNOB", life_on ? T_MID : T_DIM);
+2 -1
View File
@@ -256,7 +256,8 @@ static void graph_clips(void) /* (V10.8.2) and TAKE: t
for (k = 0; k < NTRK; k++) {
int32_t y = 13 + (int32_t)k * 18;
b[1] = (char)('1' + k);
cv_text(4, y + CAP_IN(X, 15), &AF_X, b, k == hi ? T_THEME : T_MID);
cv_text(4, y + CAP_IN(X, 15), &AF_X, b, trk_col(k)); /* (V10.8.10: the track's colour; the one picked marked) */
if (k == hi) cv_rect(0, y + 2, 2, 11, trk_col(k));
for (s = 0; s < 4u && !full; s++) {
int32_t x = 24 + (int32_t)s * 53;
uint16_t c = sec_col(s);
+22
View File
@@ -144,6 +144,28 @@ int main(void)
ok = hc_act == 0u && sfx_key == 16u;
let_go(4);
bad += check("STEP FX: off the page, nothing held", ok);
{ /* (V10.8.10) the track's bar: TRACK N / ENGINE on its colour on the track's pages; not on HOME, GLO, SAVE */
static const uint16_t C[6] = {0xFE87u, 0xFC45u, 0xF9C7u, 0xF9D6u, 0xA2FFu, 0x3C7Fu};
char tt[40];
uint32_t k;
stop_transport(); song.rec = 0;
ok = 1;
for (k = 0; k < 6u; k++) {
track_select(k); go_title("ENV"); frames(2);
ui.msg_t = 0; ui.force = 1; ui_draw();
ok &= head_trk() && head_title(tt) == C[k] && trk_col(k) == C[k] && !memcmp(tt, "TRACK ", 6) && !memcmp(tt + 7, " / ", 3) &&
tt[6] == (char)('1' + k) && str_eq(tt + 10, trk_engp(TSEL)->name) &&
swap16(host_screen[(Y_HEAD + HEAD_MID) * 240 + 192]) == C[k] &&
swap16(host_screen[(Y_HEAD + HEAD_MID) * 240 + HEAD_TK_X + 1]) == C[k];
}
track_select(0); go_title("STEP"); frames(2); ok &= head_trk();
go_title("COMP"); frames(2); ok &= head_trk();
go_title("MIXER"); frames(2); ok &= !head_trk();
go_home(); frames(2); ok &= !head_trk();
nav_put(SEC_HOME, "JAM"); frames(2); ok &= !head_trk();
go_title("GLOBAL"); frames(2); ok &= !head_trk();
bad += check("track bar: TRACK N / ENGINE on T1..T6's colours (header and the number's box); none on HOME, GLO, JAM", ok);
}
if (bad) printf("stepfx: %d failed\n", bad);
else printf("stepfx: all passed\n");
return bad != 0;
+1026 -1024
View File
File diff suppressed because it is too large. Load diff