V10.8.9: SEQ > STEP FX: the white keys always the components held (PRESETS picks the step, as on every SEQ page; OCT+ the octave again); a key held a large banner over the graph (its name, KEY n, REC red) there and on the FX layer's punch-ins; the song mode's hints by state on JAM / TAKE (HELP OFF: none); 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 15:13:13 +00:00
1 parent 6c2da3e6ba
commit cc4529d212
9 files changed
+2056 -1976

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.8" /* (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.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
#endif
#if FELUCCA_OTA && !FELUCCA_FLASH
#error "FELUCCA_OTA needs FELUCCA_FLASH"
+4 -3
View File
@@ -1090,9 +1090,10 @@ static uint32_t gco_slot(void) { return ui.page > 0u && PAGES[ui.page - 1u].grap
static int keys_pg(uint32_t g) { return !ui.home && !ui.menu && !ui.confirm && !ui.layer && cur_page()->graph == g; } /* (V10.6o) */
static int gco_on(void) { return keys_pg(GR_GCOMP); }
static int ckeys_on(void) { return keys_pg(GR_COMP); } /* (seq2g) */
/* (V10.8.8, the owner) STEP FX's PLAY (OCT+ on COMP / COMP 2): the white keys hold a component on the track (seq.c
* hc_run), REC writes it into the step it began on; sfx_key the one held (16: none) */
static uint8_t sfx_play, sfx_key = 16;
/* (V10.8.8, the owner) STEP FX (COMP / COMP 2): the white keys hold a component on the track (seq.c hc_run), REC writes
* it into the step it began on (V10.8.9: always; PRESETS picks the step, as on every SEQ page); sfx_key the one held
* (16: none) */
static uint8_t sfx_key = 16;
static const uint8_t SFX_KA[16] = {CA_STUT, CA_STUT, CA_STUT, CA_RATCH, CA_RATCH, CA_RATCH, CA_RATCH, CA_ARP, CA_ARP,
CA_ARP, CA_OCTU, CA_OCTD, CA_RAND, CA_TRANS, CA_CHORD, CA_MUTE};
static const uint8_t SFX_KV[16] = {0, 1, 3, 0, 1, 2, 6, CV_ARP_SCALE | CP_ARG(0, 2, 1), CV_ARP_SCALE | CP_ARG(1, 2, 1),
+21 -4
View File
@@ -1131,6 +1131,21 @@ BTAPP_FN static void ramp_draw_bt(const track_t *t, uint32_t dr, int32_t top, ui
for (px = 0; px < w; px++)
cv_rect(x + px, top + 12 - (ramp_curve(CV_RAMP_CURVE(v), px * 32768 / w) * 12 >> 15), 1, 2, T_TEXT);
}
/* (V10.8.9, the owner) a key held: what it plays large, centred over the graph, its key under it, REC (red) recording */
static __attribute__((noinline)) void hold_banner(const char *nm, uint32_t k, int rec)
{
char b[12];
int32_t y = (int32_t)graph_h() / 2 - 26;
cv_rrect(14, y, 212, 52, 8, T_RAISE, cv_bg);
cv_text_in(14, y + 6, 212, large_face_has(nm) ? &AF_L : &AF_M, nm, T_ACCENT, T_RAISE);
str_cpy(b, key_black(k) ? "BLACK " : "KEY ", sizeof b);
fmt_int(b + str_len(b), (int32_t)key_place(k) + 1);
cv_text_in(14, y + 36, rec ? 150 : 212, &AF_S, b, T_TEXT, T_RAISE);
if (rec)
cv_text_in(150, y + 36, 60, &AF_S, "REC", T_REC, T_RAISE);
}
static uint32_t sfx_k; /* (V10.8.9) the key sfx_key is (sfx_keys) */
static uint8_t fx_hk; /* (V10.8.9) the FX layer's key held + 1 (ui_layer.c draw_layer) */
/* the page's marks over the roll / the grid (0.9.17's): PLAYHEADS FUGUE's heads on the grid too (the roll draws them on
* every page); COMP the steps with the cursor's component a bar on top ACCENT, another component a thin MID one;
* AUTOMATION / AUTO LIST the records at the foot (a lock ACCENT, automation TEXT; AUTO LIST the row picked framed THEME);
@@ -1157,8 +1172,10 @@ static __attribute__((noinline)) void seq_overlay(const track_t *t, const page_t
k = ui.cursor % NSTEP;
if (mine == CA_RAMP && k >= base && k < base + 16u && bt_hw_seg())
ramp_draw_bt(t, dr, top, k - base);
if (sfx_play) /* (V10.8.8) PLAY: the component held, ACCENT */
cv_text(4, 2, &AF_X, sfx_key < 16u ? SFX_NM[sfx_key] : "PLAY: HOLD A KEY", sfx_key < 16u ? T_ACCENT : T_MID);
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);
} 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);
@@ -1384,7 +1401,7 @@ static __attribute__((noinline)) uint32_t graph_signature(void)
for (i = 0; i < 4u; i++) h ^= (uint32_t)graph_project_used(i) << (24u + i);
for (i = 0; i < NTRK; i++) h = (h ^ (clip_now[i] | clip_go[i] << 4)) * 16777619u; /* (V10.6s) CLIPS */
h ^= live.srec * 3266489917u + ui.part * 668265263u;
h ^= jam_lock * 5u + jam_tr * 11u + jam_vos * 131u + jam_undo * 17u + take_i * 40503u; /* (V10.8.2) JAM, TAKE */
h ^= jam_lock * 5u + jam_tr * 11u + jam_vos * 131u + jam_undo * 17u + take_i * 40503u + (ui_help_off & 1u) * 7u + song.playing * 13u; /* (V10.8.2) JAM, TAKE; (V10.8.9) the hint */
for (i = 0; i < JAM_N; i++) h = (h ^ live.jam[i]) * 31u;
h += graph_pname_sig;
}
@@ -1472,7 +1489,7 @@ static __attribute__((noinline)) uint32_t graph_signature(void)
if (pg->graph == GR_COMP) { /* (0.6.39) the steps, their components, the arpeggio and the loop */
const step_t *cs = &t->step[ui.cursor];
uint32_t ph = song.playing ? seq_src(t, t->seq_idx) : 0xFFFFu;
h = (h ^ (steps_hash(t) + ph * 31u + ui.cursor * 7919u + ui.bank * 613u + sfx_play * 3u + sfx_key * 65537u)) * 16777619u;
h = (h ^ (steps_hash(t) + ph * 31u + ui.cursor * 7919u + ui.bank * 613u + sfx_key * 65537u + (uint32_t)rec_on(t) * 101u)) * 16777619u;
h = (h ^ ((uint32_t)t->p[P_CLEN] << 8 | (song.playing ? t->cpos : 0xFFu))) * 16777619u; /* (0.6.47) C.LEN */
for (i = ui.bank * 16u; i < ui.bank * 16u + 16u && i < NSTEP; i++)
h = (h ^ ((uint32_t)t->step[i].comp << 8 | t->step[i].carg | (uint32_t)t->step[i].probability << 16 |
+8 -30
View File
@@ -674,7 +674,7 @@ static void sfx_keys(void)
uint32_t k, w = 16;
for (k = 0; k < 27u; k++)
if (((fm1_in.notes >> k) & 1u) && !key_black(k) && key_place(k) < 16u)
w = key_place(k);
w = key_place(k), sfx_k = k;
if (w != sfx_key && w < 16u)
ui_message(SFX_NM[w]);
sfx_key = (uint8_t)w;
@@ -682,28 +682,12 @@ static void sfx_keys(void)
hc_trk = (uint8_t)song.sel;
hc_act = w < 16u ? SFX_KA[w] : 0u;
}
static void comp_keys(uint32_t pressed)
{
uint32_t k;
for (k = 0; k < 27u; k++) {
uint32_t p = key_place(k), i = ui.bank * 16u + p;
char b[12];
if (!((pressed >> k) & 1u))
continue;
if (key_black(k)) {
if (p == GK_PGUP || p == GK_PGDN)
page_go(p == GK_PGUP ? 1 : -1);
continue;
}
if (sfx_play) /* (V10.8.8: PLAY, sfx_keys) */
continue;
if (i >= (uint32_t)TSEL->p[P_SLEN])
continue;
cursor_set((int32_t)i);
str_cpy(b, "STEP ", sizeof b);
fmt_int(b + 5, (int32_t)i + 1);
ui_message(b);
}
static void comp_keys(uint32_t pressed) /* (V10.8.9: the black keys PG UP / DN only; the white keys hold */
{ /* components, sfx_keys; PRESETS picks the step) */
uint32_t k, p;
for (k = 0; k < 27u; k++)
if (((pressed >> k) & 1u) && key_black(k) && ((p = key_place(k)) == GK_PGUP || p == GK_PGDN))
page_go(p == GK_PGUP ? 1 : -1);
}
/* ------------------------------------------------- parameter locks --- */
@@ -3057,12 +3041,6 @@ static void ui_input_frame(void)
ui.force = 1;
break;
}
if (!ui.home && !ui.menu && !ui.confirm && cur_page()->graph == GR_COMP && b == B_OCTUP && !fm1_in.notes) {
sfx_play ^= 1u; /* (V10.8.8, the owner) STEP FX: OCT+ PLAY, the keys hold */
ui_message(sfx_play ? "PLAY: HOLD A KEY" : "KEYS PICK THE STEP"); /* components (sfx_keys) */
ui.force = 1;
break;
}
if (!ui.home && !ui.menu && !ui.confirm && cur_page()->graph == GR_COMP && b == B_OCTDN && !fm1_in.notes) {
if (chain_busy()) ui_message("SONG PLAYS: STOP IT TO EDIT"); /* (V10.7.62) STEP FX: OCT- clears the */
else confirm_open(CF_CLEAR_COMP, song.sel); /* track's (a dialog) */
@@ -3126,7 +3104,7 @@ static void ui_input_frame(void)
song.grid = (uint8_t)keys_mode(); /* (seq.c: the keys are the grid's) */
seq_fill = (uint8_t)((fm1_in.buttons >> panel.btn[B_FX]) & 1u); /* (0.6.42) FILL steps: FX held */
lock_keys(); /* (a grid key on a hit let go: the hit goes) */
if (ckeys_on() && sfx_play) /* (V10.8.8) STEP FX's PLAY: the keys held */
if (ckeys_on()) /* (V10.8.8) STEP FX: the keys held, components */
sfx_keys();
else
hc_act = 0, sfx_key = 16;
+10 -2
View File
@@ -1611,13 +1611,16 @@ static __attribute__((noinline)) void layer_state(uint32_t l)
}
static __attribute__((noinline)) void draw_layer(void)
{
uint32_t l = ui.layer % LAYER_N, sig = l * 7919u + ux.gen * 977u;
uint32_t l = ui.layer % LAYER_N, sig = l * 7919u + ux.gen * 977u, k;
for (fx_hk = 0, k = 0; k < 27u; k++) /* (V10.8.9) the FX layer's key held (+ 1), the highest */
if ((kb_layer & fm1_in.notes) >> k & 1u)
fx_hk = (uint8_t)(k + 1u);
layer_cards(l);
if (l == LAYER_FX)
{
uint32_t s;
sig += (perf_kill ? 0u : perf_held | perf_latched) * 31u + perf_latch_on * 11u + perf_act * 131u + perf_avail() * 7u;
sig += pk.edit * 3u + pk.ekey * 4099u + (kb_layer != 0u) * 65537u + pk.mod * 17u + pk.pkey * 257u; /* (V10.8.5: the
sig += fx_hk * 524287u + (uint32_t)pfx_rec_ok() * 29u + pk.edit * 3u + pk.ekey * 4099u + (kb_layer != 0u) * 65537u + pk.mod * 17u + pk.pkey * 257u; /* (V10.8.5: the
* editor's key lit while pressed, its keys' names as set) */
for (s = 0; pk.edit && s < PK_KEYS; s++) sig = (sig ^ pk.we[s] ^ (uint32_t)pk.wo[s] << 8) * 16777619u;
}
@@ -1647,6 +1650,11 @@ static __attribute__((noinline)) void draw_layer(void)
cv_bg = T_SURF;
if (l == LAYER_FX && !pk.edit) ly_fx_cells(); /* (V10.7.77, the owner) FX: the effects as cells, as before 0.8.9 */
else ly_piano(l); /* MAP: the keyboard (V10.7.66: KNOBS / STATE gone) */
if (l == LAYER_FX && !pk.edit && fx_hk) { /* (V10.8.9, the owner) the punch-in held, large */
char nm[12];
ly_keyname(LAYER_FX, key_black(fx_hk - 1u), key_place(fx_hk - 1u), nm);
if (nm[0]) hold_banner(nm, fx_hk - 1u, pfx_rec_ok());
}
cv_blit(0, graph_y());
}
draw_tabs(); /* (0.8.5: MAP . KNOBS . STATE, the breadcrumb) */
+16 -3
View File
@@ -233,6 +233,19 @@ static void jam_lanes(int32_t y, int32_t dy, int32_t h, int32_t sel)
}
if (xp) cv_rect((int32_t)xp, y - dy * NTRK - 2, 1, dy * NTRK + 2, T_TEXT);
}
/* (V10.8.9, the owner) the song mode's hint, by its state (MENU > DISPLAY > HELP OFF: none); the cards name the knobs */
static const char *song_hint(void)
{
if (ui_help_off & 1u)
return 0;
if (SONG_TAKE(cur_page()))
return jam_len() ? "OCT+ A NEW CHANGE \xB7 OCT- DELETE IT" : "NO TAKE: REC ONE ON JAM";
return live.srec == 2u ? "RECORDING: CHANGE SEQS \xB7 REC ENDS" : live.srec ? "REC: FROM THE NEXT BAR" :
jam_tr & 8u ? "RECORDING THE TRACK: ONE ROUND" : jam_tr ? "TRACK REC: FROM THE TAKE START" :
jam_undo ? "OCT- UNDO THE ROUND" : jam_lock ? "PLAY OVER IT: YOU \xB7 REC: REDO A TRACK" :
jam_len() ? "K4 LOCK: THE TAKE PLAYS \xB7 JAM OVER IT" :
song.playing ? "KEYS A-D ALL \xB7 OCT+ GO \xB7 REC: A TAKE" : "PLAY \xB7 KEYS A-D ALL \xB7 OCT+ GO \xB7 OCT- STOP";
}
static void graph_clips(void) /* (V10.8.2) and TAKE: the take full screen, the change picked */
{ /* ringed, its track lit */
uint32_t s, k, i, tk = SONG_TAKE(cur_page()), full = tk || jam_full(), hi = song.sel;
@@ -272,11 +285,11 @@ static void graph_clips(void) /* (V10.8.2) and TAKE: t
cv_rect(24 + (int32_t)q * 13, 124, 12, 12, sec_col(s));
if (b + q == JE_POS(live.jam[take_i])) cv_frame(23 + (int32_t)q * 13, 123, 14, 14, T_TEXT);
}
} else if (jam_lock) cv_text(4, 128, &AF_X, jam_undo ? "OCT- UNDO THE ROUND" : "REC: TRACK AGAIN", T_MID);
}
} else if (jam_len())
jam_lanes(120, 3, 2, -1);
else
cv_text(4, 128, &AF_X, "OCT+ GO \xB7 OCT- STOP \xB7 REC \xB7 K4 LOCK", T_MID);
if (song_hint()) /* (V10.8.9) TAKE: over its lanes (its zoom row below) */
cv_text(tk ? 26 : 4, tk ? 2 : 128, &AF_X, song_hint(), live.srec || jam_tr ? T_ACCENT : T_MID);
}
/* (V10.6o, the owner's mock-up B) TIMELINE: the song as blocks (the cursor's row framed), what plays; under it the row
* opened: each track's bar (its own part's colour calm, another part's bright with FROM and its letter,
+68 -8
View File
@@ -1,5 +1,5 @@
// Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant). All rights reserved.
/* (V10.8.8, the owner) SEQ > STEP FX's PLAY: OCT+ on COMP turns the white keys into components held live (seq.c hc_run):
/* (V10.8.8, the owner) SEQ > STEP FX (COMP / COMP 2; V10.8.9: always, PRESETS picks the step): the white keys hold components live (seq.c hc_run):
* held, the selected track plays it from its next step; let go, the pattern again; REC armed and playing, the step it
* began on gets it (VALUE, LENGTH the steps held), in C1, or C2 when C1 holds another. Built and run by CI
* (voice-user-check.yml) */
@@ -25,6 +25,7 @@ static void steps(uint32_t n) /* n steps of track 1 pl
}
frame();
}
static uint16_t spx(int32_t x, int32_t y) { return swap16(host_screen[y * 240 + x]); }
static void hold_key(uint32_t p) { fm1_in.notes |= 1u << wkey(p); frame(); }
static void let_go(uint32_t p) { fm1_in.notes &= ~(1u << wkey(p)); frame(); }
int main(void)
@@ -38,10 +39,18 @@ int main(void)
trk[0].p[P_SLEN] = 16;
for (i = 0; i < 16u; i++) trk[0].step[i] = (step_t){{(uint8_t)(48 + i), 0, 0, 0}, 1, ST_NOTE, 0, 96, 0, 0};
go_title("COMP"); frame();
ok = cur_page()->graph == GR_COMP && !sfx_play;
press(B_OCTUP); frame();
ok &= sfx_play == 1u && song.octave == 0;
bad += check("STEP FX: OCT+ turns PLAY on (no octave)", ok);
{
uint32_t p0 = TSEL->preset, c0 = ui.cursor;
ok = cur_page()->graph == GR_COMP;
turn(EN_PRESET, 1); frame();
ok &= ui.cursor == c0 + 1u && TSEL->preset == p0 && cur_page()->graph == GR_COMP;
fm1_in.notes |= 1u << wkey(3); host_notes |= 1u << wkey(3); frame(); /* a white key: no step picked */
ok &= ui.cursor == c0 + 1u && sfx_key == 3u;
fm1_in.notes = 0; frame();
turn(EN_PRESET, -1); frame();
ok &= ui.cursor == c0 && sfx_key == 16u;
bad += check("STEP FX: PRESETS picks the step (no sound loaded), a white key holds a component (no step picked)", ok);
}
transport_req = 1; ui_input();
steps(2);
@@ -80,10 +89,61 @@ int main(void)
CO_ACT(trk[0].step[i0].comp2) == CA_OCTD && trk[0].step[i0].clen[1] >= 1u;
bad += check("REC: C1 holding another component, the new one goes into C2 (they add up)", ok);
}
{ /* (V10.8.9) the banner: the component held large over the graph, its key, REC */
uint32_t by = graph_y() + graph_h() / 2u - 24u;
hold_key(1); frame();
ok = str_eq(SFX_NM[sfx_key], "STUT /2") && sfx_k == wkey(1) && key_place(sfx_k) + 1u == 2u &&
spx(120, (int32_t)by) == T_RAISE && rec_on(TSEL);
let_go(1); frame(); frame();
ok &= sfx_key == 16u && spx(120, (int32_t)by) != T_RAISE;
bad += check("STEP FX banner: STUT /2, KEY 2, REC while held; gone when let go", ok);
}
song.rec = 0;
press(B_OCTUP); frame();
ok = !sfx_play && hc_act == 0u;
bad += check("STEP FX: OCT+ again, the keys pick the step", ok);
{ /* (V10.8.9) the FX layer's punch-in held: its banner */
uint32_t by = graph_y() + graph_h() / 2u - 24u;
char nm[12];
go_title("STEP"); frame();
btn_down(B_FX); key_down(white(2)); frame(); frame();
ok = ui.layer == LAYER_FX && fx_hk == white(2) + 1u;
ly_keyname(LAYER_FX, 0, 2, nm);
ok &= str_eq(nm, "RPT 1/32") && spx(120, (int32_t)by) == T_RAISE;
key_up(white(2)); frame(); frame();
ok &= !fx_hk && spx(120, (int32_t)by) != T_RAISE;
btn_up(B_FX); frame();
bad += check("FX layer banner: the punch-in held (RPT 1/32) large with its key; gone when let go", ok);
}
{ /* (V10.8.9) the song mode's hints: one a state, each fits the line; HELP OFF: none */
const char *h[6];
uint8_t ho = ui_help_off;
stop_transport(); frame();
nav_put(SEC_HOME, "JAM"); frame();
memset(live.jam, 0, sizeof live.jam); jam_lock = 0; jam_tr = 0; jam_undo = 0; live.srec = 0;
h[0] = song_hint();
live.srec = 1; h[1] = song_hint();
live.srec = 2; h[2] = song_hint();
live.srec = 0; jam_lock = 1; h[3] = song_hint();
jam_undo = 1; h[4] = song_hint();
jam_undo = 0; jam_lock = 0;
nav_put(SEC_HOME, "TAKE"); frame();
h[5] = song_hint();
ok = h[0] && str_eq(h[0], "PLAY \xB7 KEYS A-D ALL \xB7 OCT+ GO \xB7 OCT- STOP") && str_eq(h[1], "REC: FROM THE NEXT BAR") &&
str_eq(h[2], "RECORDING: CHANGE SEQS \xB7 REC ENDS") && str_eq(h[3], "PLAY OVER IT: YOU \xB7 REC: REDO A TRACK") &&
str_eq(h[4], "OCT- UNDO THE ROUND") && str_eq(h[5], "NO TAKE: REC ONE ON JAM");
for (i = 0; i < 6u; i++) ok &= h[i] && text_w(&AF_X, h[i]) <= 230;
ui_help_off |= 1u;
ok &= !song_hint();
nav_put(SEC_HOME, "JAM"); frame();
ok &= !song_hint();
ui_help_off = ho;
bad += check("song mode hints: JAM stopped / REC armed / recording / LOCK / UNDO, TAKE; they fit; HELP OFF none", ok);
go_title("COMP"); frame();
transport_req = 1; ui_input(); steps(1);
}
hold_key(4); steps(1);
go_title("STEP"); frame();
ok = hc_act == 0u && sfx_key == 16u;
let_go(4);
bad += check("STEP FX: off the page, nothing held", ok);
if (bad) printf("stepfx: %d failed\n", bad);
else printf("stepfx: all passed\n");
return bad != 0;
+6 -5
View File
@@ -8086,13 +8086,14 @@ static int test_foot_steps(void)
t->p[P_SLEN] = 32;
for (i = 0; i < 32u; i++) step_clear(&t->step[i]);
go_page(GR_COMP); frame();
tap_key(key_at(0, 4));
ok = cur_page()->graph == GR_COMP && ui.cursor == 4u && ui.bank == 0u && str_eq(ui.msg, "STEP 5");
tap_key(key_at(1, GK_PGUP)); tap_key(key_at(0, 4));
ok &= ui.cursor == 20u && ui.bank == 1u && str_eq(ui.msg, "STEP 21") && fpx(fs_x(4), fs_my()) == T_ACCENT;
for (i = 0; i < 4u; i++) { turn(EN_PRESET, 1); frames(20); } /* (V10.8.9: PRESETS picks the step; the keys */
tap_key(key_at(0, 7)); /* hold components) */
ok = cur_page()->graph == GR_COMP && ui.cursor == 4u && ui.bank == 0u;
for (i = 0; i < 16u; i++) { turn(EN_PRESET, 1); frames(20); }
ok &= ui.cursor == 20u && ui.bank == 1u && fpx(fs_x(4), fs_my()) == T_ACCENT;
turn(EN_K1, 1); frame();
ok &= CO_ACT(t->step[20].comp) != 0 && !t->step[4].comp;
bad += check("SEQ > COMP: key 5 the step 5 (bar 1), on bar 2 step 21; KNOB 1 its C1", ok);
bad += check("SEQ > COMP: PRESETS the step (5, then 21 on bar 2), a key picks none; KNOB 1 its C1", ok);
ui_power_on();
return bad;
}
+1922 -1920
View File
File diff suppressed because it is too large. Load diff