mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 04:44:33 +01:00
V10.8.3: the song mode finished (the owner): YOU, the player's sequence over the take, white to the take's next change in that lane, named; OCT- on JAM undoes a track's round (the take as stored); TAKE: OCT+ a new change a beat on, KNOB 4 the take's bars, the change's bar zoomed under the take (its track's 16ths as they sound); HOME > ECO the scope, the beings' swim out for it (flash; the beings stay on BEING); bt_prox_map out of the Bluetooth segment (44 B over)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
14 files changed
+2311
-2283
No files matched your search
+1
-1
@@ -176,7 +176,7 @@ static struct {
|
||||
#define BT_MIN() ((int32_t)(BT_TUNE[0] > 18u ? 0u : BT_TUNE[0]) * 5)
|
||||
#define BT_MAX() (100 - (int32_t)(BT_TUNE[1] > 18u ? 0u : BT_TUNE[1]) * 5)
|
||||
#define BT_SPEED() ((uint32_t)(BT_TUNE[2] > 4u ? 0u : BT_TUNE[2]))
|
||||
BTAPP_FN static int32_t bt_prox_map(int32_t lvl)
|
||||
static __attribute__((noinline)) int32_t bt_prox_map(int32_t lvl) /* (V10.8.3: out of the segment, 44 B over) */
|
||||
{
|
||||
int32_t f = (int32_t)BT_CAL[0] << 7, n = (int32_t)BT_CAL[1] << 7, lo = BT_MIN(), hi = BT_MAX(), p;
|
||||
if (f == n)
|
||||
|
||||
@@ -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.2" /* (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.3" /* (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"
|
||||
|
||||
@@ -180,8 +180,8 @@ static uint32_t jam_base __attribute__((section(".lowbuf"))); /* LOCK: th
|
||||
static uint8_t jam_lock __attribute__((section(".lowbuf")));
|
||||
/* (V10.8.2) LOCK's REC: one track again for a round of the take (jam_tr: its k + 1, | 8 recording; its changes after
|
||||
* the take's END, jam_e, merged when the round ends: song_main.c jam_round_end), jam_r0 where the round began; jam_vos
|
||||
* bit k: the player's sequence over the take (drawn white) */
|
||||
static uint8_t jam_tr, jam_e, jam_vos, take_i; /* (take_i: TAKE's KNOB 1, song_main.c take_*) */
|
||||
* bit k: the player's sequence over the take (drawn white, YOU); jam_undo: OCT- the take as stored */
|
||||
static uint8_t jam_tr, jam_e, jam_vos, jam_undo, take_i; /* (take_i: TAKE's KNOB 1, song_main.c take_*) */
|
||||
static uint16_t jam_tl, jam_r0;
|
||||
|
||||
static void song_mode_restore(void)
|
||||
|
||||
@@ -550,6 +550,7 @@ static void jam_load(void)
|
||||
(void)b;
|
||||
#endif
|
||||
jam_lock = 0;
|
||||
jam_undo = 0;
|
||||
}
|
||||
static void jam_store(void)
|
||||
{
|
||||
@@ -560,6 +561,7 @@ static void jam_store(void)
|
||||
memcpy(b + song_cur % NSONG * sizeof live.jam, live.jam, sizeof live.jam);
|
||||
(void)st_save(OBJ_JAM, b, NSONG * sizeof live.jam);
|
||||
#endif
|
||||
jam_undo = 0;
|
||||
}
|
||||
static uint32_t jam_end(void) /* (V10.8.2) the take's END index (none: its events' count) */
|
||||
{
|
||||
@@ -578,7 +580,7 @@ static void jam_sort(uint32_t n) /* the take's first n ev
|
||||
}
|
||||
}
|
||||
/* (V10.8.2) a track's round ended: its old changes out, the round's in (where it crossed the take's start: its
|
||||
* sequence there at 0), in time order, END last */
|
||||
* sequence there at 0), in time order, END last; OCT- undoes it (the take as stored) until it is stored */
|
||||
static void jam_round_end(void)
|
||||
{
|
||||
uint32_t K, i, n, w = 0, s0 = 8u, p;
|
||||
@@ -597,8 +599,9 @@ static void jam_round_end(void)
|
||||
live.jam[w++] = end;
|
||||
memset(&live.jam[w], 0, (JAM_N - w) * sizeof live.jam[0]);
|
||||
jam_vos &= (uint8_t)~(1u << K); /* (the player's is the take's now) */
|
||||
jam_undo = 1;
|
||||
live.rec_done = 1;
|
||||
ui_message("TRACK DONE");
|
||||
ui_message("TRACK DONE: OCT- UNDO");
|
||||
}
|
||||
static uint32_t jam_len(void) /* the take's length in 16ths (its END), 0 none */
|
||||
{
|
||||
@@ -692,8 +695,38 @@ static void take_knob(uint32_t slot, int32_t steps)
|
||||
} else if (slot == 2u) { /* its sequence */
|
||||
live.jam[take_i] = JAM_EV(p, JE_K(v), (uint32_t)clamp((int32_t)JE_S(v) + steps, 0, 3));
|
||||
live.rec_done = 1;
|
||||
} else { /* the take's bars: shorter, what falls past its end goes */
|
||||
uint32_t i;
|
||||
p = (uint32_t)clamp((int32_t)(len >> 4) + steps, 1, 127) << 4;
|
||||
for (i = 0; i < e && JE_POS(live.jam[i]) < p; i++) {}
|
||||
live.jam[i] = JAM_EV(p, 7u, 0u);
|
||||
memset(&live.jam[i + 1u], 0, (JAM_N - 1u - i) * sizeof live.jam[0]);
|
||||
if (take_i >= i) take_i = (uint8_t)(i - 1u);
|
||||
live.rec_done = 1;
|
||||
}
|
||||
}
|
||||
static void take_new(void) /* OCT+: a change a beat after the one picked, the next sequence */
|
||||
{
|
||||
uint32_t e = jam_end(), len = jam_len(), p;
|
||||
uint16_t v;
|
||||
if (take_busy()) return;
|
||||
if (e >= JAM_N - 2u) { ui_message("TAKE FULL"); return; }
|
||||
if (take_i >= e) take_i = (uint8_t)(e - 1u);
|
||||
v = live.jam[take_i];
|
||||
p = JE_POS(v) + 4u;
|
||||
live.jam[e + 1u] = live.jam[e];
|
||||
live.jam[e] = v = JAM_EV(p < len ? p : len - 1u, JE_K(v), (JE_S(v) + 1u) & 3u);
|
||||
jam_sort(e + 1u);
|
||||
take_pick(v);
|
||||
}
|
||||
static void jam_undo_round(void) /* (V10.8.2) JAM's OCT- after a track's round: the take stored */
|
||||
{
|
||||
uint8_t l = jam_lock;
|
||||
jam_load();
|
||||
jam_lock = l;
|
||||
live.rec_done = 0;
|
||||
ui_message("ROUND UNDONE");
|
||||
}
|
||||
static void take_del(void) /* OCT-: the change picked out */
|
||||
{
|
||||
uint32_t e = jam_end(), i;
|
||||
|
||||
+4
-2
@@ -836,6 +836,8 @@ static uint32_t jam_len(void);
|
||||
static uint32_t jam_end(void); /* (V10.8.2) song_main.c: TAKE, a track's round undone */
|
||||
static void take_knob(uint32_t slot, int32_t steps);
|
||||
static void take_del(void);
|
||||
static void take_new(void);
|
||||
static void jam_undo_round(void);
|
||||
static void song_rec_toggle(void);
|
||||
static int section_jump(uint32_t s);
|
||||
/* (0.6.22) ARRANGE: the rows 0..count-1, + ADD (while there is room), then the song's END row */
|
||||
@@ -2178,7 +2180,7 @@ static const char *act_name(uint32_t c) /* column c's action (the foote
|
||||
return actions[c < 6u ? c : 5u];
|
||||
}
|
||||
if (cur_page()->graph == GR_SONG) /* (0.8.5) SAVE's lens: OCT+ adds a row (PLAY plays); PARTS: */
|
||||
return SONG_PARTS(cur_page()) ? "LOOP" : SONG_CLIPS(cur_page()) ? "GO" : "ADD"; /* the part loops; CLIPS: the cell */
|
||||
return SONG_PARTS(cur_page()) ? "LOOP" : SONG_CLIPS(cur_page()) ? "GO" : SONG_TAKE(cur_page()) ? "NEW" : "ADD"; /* the part loops; CLIPS: the cell */
|
||||
if (cur_page()->graph == GR_PATS)
|
||||
return "LOAD";
|
||||
if (cur_page()->graph == GR_USER)
|
||||
@@ -2207,7 +2209,7 @@ static int act_ready(void)
|
||||
if (SONG_PARTS(cur_page()) || SONG_CLIPS(cur_page()))
|
||||
return project_used(ui.part);
|
||||
if (SONG_TAKE(cur_page()))
|
||||
return 0;
|
||||
return jam_len() != 0u;
|
||||
if (cur_page()->graph == GR_SONG)
|
||||
return !chain_busy() && chain_config.count < CHAIN_ROWS;
|
||||
if (cur_page()->graph == GR_PATS)
|
||||
|
||||
@@ -1382,7 +1382,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 + take_i * 40503u; /* (V10.8.2) JAM, TAKE */
|
||||
h ^= jam_lock * 5u + jam_tr * 11u + jam_vos * 131u + jam_undo * 17u + take_i * 40503u; /* (V10.8.2) JAM, TAKE */
|
||||
for (i = 0; i < JAM_N; i++) h = (h ^ live.jam[i]) * 31u;
|
||||
h += graph_pname_sig;
|
||||
}
|
||||
|
||||
@@ -1791,8 +1791,10 @@ static __attribute__((noinline)) void act_do(void)
|
||||
jam_switch(song.sel % NTRK, ui.part);
|
||||
return;
|
||||
}
|
||||
if (SONG_TAKE(cur_page())) /* (V10.8.2) TAKE: OCT+ nothing */
|
||||
if (SONG_TAKE(cur_page())) { /* (V10.8.2) TAKE: a new change */
|
||||
take_new();
|
||||
return;
|
||||
}
|
||||
if (cur_page()->graph == GR_SONG) { /* (0.8.5) SAVE > PROJECT's ARRANGE: OCT+ adds a row; (V10.6o) after
|
||||
* the one picked, a copy of it (its scene, tracks, variations; on
|
||||
* ADD / END: of the last; none: A, 4 bars), the new one selected */
|
||||
@@ -3061,8 +3063,10 @@ static void ui_input_frame(void)
|
||||
nav_go(SEC_SEQ, nav_cur(), 0);
|
||||
else if (SONG_PARTS(cur_page())) /* (V10.6o) PARTS: back to the song */
|
||||
parts_song();
|
||||
else if (SONG_CLIPS(cur_page())) /* (V10.6s) CLIPS: the track stops on the next bar */
|
||||
clip_launch(song.sel, 4u);
|
||||
else if (SONG_CLIPS(cur_page())) { /* (V10.6s) CLIPS: the track stops on the next bar; (V10.8.2) */
|
||||
if (jam_undo) jam_undo_round(); /* after a track's round in LOCK: the take as it was */
|
||||
else clip_launch(song.sel, 4u);
|
||||
}
|
||||
else if (SONG_TAKE(cur_page())) /* (V10.8.2) TAKE: the change out */
|
||||
take_del();
|
||||
else if (cur_page()->graph == GR_SONG) { /* (V10.4) ARRANGE, TIMELINE: OCT+ adds a row, OCT- deletes
|
||||
|
||||
@@ -241,40 +241,10 @@ static void lz_arc(int32_t cx, int32_t cy, int32_t r, int32_t w, int32_t f, uint
|
||||
/* ECO: 0.8.4's HOME (graph_ecosys) in the lens's panel: the cytoplasm's granules drifting, the six beings swimming free
|
||||
* over the whole panel (0.9.7: variant A, eco_being), each with its number under it (the selected one larger, its number in
|
||||
* the theme's colour; a mutation landed, white) */
|
||||
static void graph_eco(void)
|
||||
static void graph_eco(void) /* (V10.8.3, the owner: the beings' swim out for the song mode's
|
||||
* flash) the output's scope, LIFE's line */
|
||||
{
|
||||
uint32_t c, k, still = ANIM_OFF() != 0;
|
||||
int32_t bx[ECO_N], by[ECO_N], bot = eco_bot();
|
||||
(void)eco_step(); /* (the swim, once a frame) */
|
||||
(void)bg_energy(); /* (the output's level kept as it was read: once a frame) */
|
||||
for (k = 0; k < 22u; k++) { /* the cytoplasm: granules drifting */
|
||||
uint32_t h = k * 2654435761u;
|
||||
int32_t gx = 10 + (int32_t)((h >> 8) % 220u + anim_fr * (1u + (h >> 28)) / 6u) % 220; /* (still: where they were) */
|
||||
int32_t gy = 6 + (int32_t)(((h >> 16) % (uint32_t)(bot + 6)) + (still ? 0 : (uint32_t)(bg_sin((uint32_t)(anim_fr * 300u + h)) >> 13))) %
|
||||
(uint32_t)(bot + 6);
|
||||
cv_rect(gx, gy, 1 + (int32_t)(h >> 31), 1 + (int32_t)(h >> 31), ux_mix(T_SURF, T_THEME, 22 + (int32_t)(h >> 29) * 4));
|
||||
}
|
||||
for (c = 0; c < ECO_N; c++) {
|
||||
eco_at(c, &bx[c], &by[c]); /* (codex/anim: between its last two steps) */
|
||||
bx[c] >>= 4;
|
||||
by[c] >>= 4;
|
||||
}
|
||||
if (home_set() && life_on) { /* (V10.7.62) LIFE: who moves whom, as bright as the mover sounds */
|
||||
uint32_t n = trk_live < ECO_N ? trk_live : ECO_N, j;
|
||||
for (c = 0; c < n; c++) {
|
||||
j = (c + n - 1u) % n;
|
||||
if (j != c)
|
||||
og_line_a(bx[j], by[j], bx[c], by[c], trk[j].engine == ENGI_DRUM ? T_ACCENT : T_THEME,
|
||||
clamp(48 + track_env[j] / 96, 48, 256));
|
||||
}
|
||||
}
|
||||
for (c = 0; c < ECO_N; c++) {
|
||||
int32_t rad = eco.r[c] >> 4, px = bx[c] >> 4, py = by[c] >> 4, ny;
|
||||
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);
|
||||
}
|
||||
graph_scope(T_THEME);
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -204,33 +204,38 @@ static void clip_dash(int32_t x, int32_t y, uint16_t c) /* a cell's frame, das
|
||||
static int jam_full(void) { return live.srec == 2u || jam_tr || (jam_lock && jam_len()); }
|
||||
static void jam_lanes(int32_t y, int32_t dy, int32_t h, int32_t sel)
|
||||
{
|
||||
uint32_t len = jam_len(), k, i, x0, x1, xe = 236u, xp = 0, s, p, e;
|
||||
uint32_t len = jam_len(), k, i, x0, x1, xe = 236u, xp = 0, s, p, e, rel = 0, nx;
|
||||
if (live.srec == 2u) { /* (REC: the take so far, a bar more) */
|
||||
p = gl_step_at(0) - jam_t0;
|
||||
len = (p / 16u + 1u) * 16u;
|
||||
xe = 24u + p * 212u / len;
|
||||
} else if (jam_lock && song.playing && len) {
|
||||
xp = 24u + (gl_step_at(0) - jam_base) % len * 212u / len;
|
||||
rel = (gl_step_at(0) - jam_base) % len;
|
||||
xp = 24u + rel * 212u / len;
|
||||
}
|
||||
if (!len) return;
|
||||
for (k = 0; k < NTRK; k++, y += dy) {
|
||||
for (x0 = 24, s = 0, i = 0; i < JAM_N && (e = live.jam[i]) && JE_K(e) != 7u; i++) {
|
||||
for (x0 = 24, s = 0, nx = 0, i = 0; i < JAM_N && (e = live.jam[i]) && JE_K(e) != 7u; i++) {
|
||||
if (JE_K(e) != k) continue;
|
||||
p = JE_POS(e);
|
||||
x1 = 24u + (p < len ? p : len) * 212u / len;
|
||||
if (x1 > x0) cv_rect((int32_t)x0, y, (int32_t)(x1 - x0), h, sec_col(s));
|
||||
if (!nx && p > rel) nx = x1;
|
||||
if ((int32_t)i == sel) cv_frame((int32_t)x1 - 2, y - 2, 4, h + 4, T_TEXT);
|
||||
x0 = x1; s = JE_S(e);
|
||||
}
|
||||
if (xe > x0) cv_rect((int32_t)x0, y, (int32_t)(xe - x0), h, sec_col(s));
|
||||
if (xp && ((jam_vos >> k) & 1u)) /* (the player's, over the take: white at the playhead) */
|
||||
cv_rect((int32_t)xp - 6, y + 2, 12, h - 4, T_TEXT);
|
||||
if (xp && ((jam_vos >> k) & 1u)) { /* (the player's, over the take: YOU, white to its next change) */
|
||||
if (!nx || nx < xp) nx = 236u;
|
||||
cv_rect((int32_t)xp, y, (int32_t)(nx - xp), h, T_TEXT);
|
||||
if (h > 8) cv_text((int32_t)xp + 2, y + CAP_IN(X, h), &AF_X, "YOU", T_BG);
|
||||
}
|
||||
}
|
||||
if (xp) cv_rect((int32_t)xp, y - dy * NTRK - 2, 1, dy * NTRK + 2, T_TEXT);
|
||||
}
|
||||
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, tk = SONG_TAKE(cur_page()), full = tk || jam_full(), hi = song.sel;
|
||||
uint32_t s, k, i, tk = SONG_TAKE(cur_page()), full = tk || jam_full(), hi = song.sel;
|
||||
char b[3] = "T1";
|
||||
if (tk) { if (take_i >= jam_end()) take_i = 0; hi = JE_K(live.jam[take_i]); }
|
||||
if (live.srec || jam_tr)
|
||||
@@ -259,7 +264,15 @@ static void graph_clips(void) /* (V10.8.2) and TAKE: t
|
||||
}
|
||||
if (full) {
|
||||
jam_lanes(13, 18, 15, tk ? (int32_t)take_i : -1);
|
||||
if (jam_lock) cv_text(4, 128, &AF_X, "REC: TRACK AGAIN", T_MID);
|
||||
if (tk && take_i < jam_end()) { /* (TAKE: the change's bar, its track's 16ths as they sound) */
|
||||
uint32_t b = JE_POS(live.jam[take_i]) & ~15u, q, kk = JE_K(live.jam[take_i]);
|
||||
for (q = 0; q < 16u; q++) {
|
||||
for (s = 0, i = 0; i < JAM_N && live.jam[i] && JE_K(live.jam[i]) != 7u; i++)
|
||||
if (JE_K(live.jam[i]) == kk && JE_POS(live.jam[i]) <= b + q) s = JE_S(live.jam[i]);
|
||||
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
|
||||
|
||||
@@ -53,7 +53,7 @@ static inline void og_plot(int32_t x, int32_t y, uint16_t c, int32_t a)
|
||||
*p = swap16((uint16_t)(r << 11 | g << 5 | b));
|
||||
}
|
||||
/* an antialiased line between Q4 points, at strength a (0..256) */
|
||||
static void og_line_a(int32_t x0, int32_t y0, int32_t x1, int32_t y1, uint16_t c, int32_t a)
|
||||
static __attribute__((noinline)) void og_line_a(int32_t x0, int32_t y0, int32_t x1, int32_t y1, uint16_t c, int32_t a)
|
||||
{
|
||||
int32_t dx = x1 - x0, dy = y1 - y0, adx = dx < 0 ? -dx : dx, ady = dy < 0 ? -dy : dy, t, g, p, e, f;
|
||||
if (adx >= ady) { /* along x: y in Q8, two pixels per column */
|
||||
|
||||
@@ -140,6 +140,14 @@ int main(void)
|
||||
nav_put(SEC_HOME, "JAM"); frame(); song_poll();
|
||||
ok &= !live.rec_done;
|
||||
bad += check("TAKE: a change moved a 16th, its sequence changed, then out; kept when the page is left", ok);
|
||||
nav_put(SEC_HOME, "TAKE"); frame();
|
||||
e = jam_end(); take_i = 0; /* (T1's start) */
|
||||
press(B_OCTUP); frame(); /* OCT+: a new change a beat later, the next sequence */
|
||||
ok = jam_end() == e + 1u && JE_K(live.jam[take_i]) == JE_K(live.jam[0]) && JE_POS(live.jam[take_i]) == 4u;
|
||||
turn(EN_K4, -1); frame(); /* the take a bar shorter: 16 */
|
||||
ok &= jam_len() == 16u;
|
||||
for (j = 0; j < jam_end(); j++) ok &= JE_POS(live.jam[j]) < 16u;
|
||||
bad += check("TAKE: OCT+ a new change a beat on, KNOB 4 the take's bars (what falls past it goes)", ok);
|
||||
}
|
||||
jam_lock = 0;
|
||||
}
|
||||
|
||||
+4
-6
@@ -11530,7 +11530,7 @@ static int test_home_a(void)
|
||||
ok &= ha_eye_rows(0) == 2u && ha_eye_rows(EF_SHUT) == 1u && ha_eye_rows(EF_SLEEP) >= 1u;
|
||||
bad += check("0.9.7 HOME A: the face: its mouth opens with the level, its eyes shut on a hit (one row), it looks up on MUTATE", ok);
|
||||
{ /* the face as HOME runs it: a hit shuts the eyes 0.1 s, a mutation landed looks up, muted asleep */
|
||||
ui_power_on(); ui.home = 1; ui.hlv = 0; ui.hset[0] = 0;
|
||||
ui_power_on(); ui.home = 1; ui.hlv = 1; ui.hset[1] = 0; /* (V10.8.3: the beings on BEING, ECO a scope) */
|
||||
for (c = 0; c < NTRK; c++) trk[c].p[P_MUTE] = 0;
|
||||
frames(320);
|
||||
ok = eco_fc.init && !(eco_fc.fl[0] & (EF_SHUT | EF_UP));
|
||||
@@ -11542,7 +11542,7 @@ static int test_home_a(void)
|
||||
}
|
||||
for (sk = 0; sk < 1u; sk++) { /* no critters, no ring of MUTATE dots: MUTATE on draws nothing until one lands */
|
||||
static uint16_t a[240 * 240];
|
||||
ui_power_on(); ui.home = 1; ui.hlv = 0; ui.hset[0] = 0;
|
||||
ui_power_on(); ui.home = 1; ui.hlv = 1; ui.hset[1] = 0; /* (V10.8.3: BEING) */
|
||||
frames(320);
|
||||
ui_prefs = PREF_ANIM_OFF;
|
||||
for (c = 0; c < NTRK; c++) { trk[c].p[P_MSND] = 0; trk[c].p[P_MPAT] = 0; }
|
||||
@@ -11559,8 +11559,7 @@ static int test_home_a(void)
|
||||
ok &= d == 0u;
|
||||
}
|
||||
/* (V10.6: no MUTATE, nothing lands) */
|
||||
if (!sk)
|
||||
ok &= ha_loose() <= 22u * 4u; /* (away from the beings the granules only: 22, 4 px at most) */
|
||||
(void)ha_loose; /* (V10.8.3: ECO's granules gone with its swim) */
|
||||
bad += check(!sk ? "0.9.7 HOME A (COLORS): no critters, no ring" :
|
||||
"0.9.7 HOME A (AIR): no ring", ok);
|
||||
}
|
||||
@@ -12149,8 +12148,7 @@ static int test_lz_home(void)
|
||||
ok &= ui.home && home_level() == 1u && home_set() == 0u;
|
||||
{ /* the beings drawn: the ECO panel differs from frame to frame while the tracks sound (their life, their faces) */
|
||||
static uint16_t a[240 * 140];
|
||||
turn(EN_SELECT, -2); frame();
|
||||
for (c = 0; c < NTRK; c++) trk[c].peak = 9000;
|
||||
for (c = 0; c < NTRK; c++) trk[c].peak = 9000; /* (V10.8.3: on BEING; ECO is a scope) */
|
||||
frames(64);
|
||||
memcpy(a, host_screen + LZ_GRAPH_Y * 240, sizeof a);
|
||||
for (c = 0; c < NTRK; c++) trk[c].peak = 9000;
|
||||
|
||||
+2222
-2223
File diff suppressed because it is too large.
Load diff
@@ -1,6 +1,6 @@
|
||||
// Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant). All rights reserved.
|
||||
/* (V10.8.2) the song mode's screens for the owner's check page: SEQ > STEP's sequence card, JAM FREE / REC / LOCK (the
|
||||
* player's over the take) / a track's REC, TAKE. A GEN piece in four parts, played as a jam. Writes NAME.ppm into DIR.
|
||||
* player's over the take, YOU) / a track's REC and its OCT- UNDO, TAKE (the change's bar zoomed under the take). A GEN piece in four parts, played as a jam. Writes NAME.ppm into DIR.
|
||||
* cc -O2 -w -Ibuild/gen -Ifirmware/src -Itests -o build/jamshots/cap tools/video/capture_jam.c -lm
|
||||
* build/jamshots/cap build/jamshots */
|
||||
#define UI_TEST_NO_MAIN 1
|
||||
@@ -98,6 +98,7 @@ int main(int argc, char **argv)
|
||||
run(5000); jam_switch(2, 1); run(4000);
|
||||
shot("jam_rec_track");
|
||||
for (k = 0; k < 400000u && jam_tr; k++) run(1);
|
||||
run(200); shot("jam_undo");
|
||||
transport_req = 2; ui_input(); run(200);
|
||||
|
||||
jam_lock = 0;
|
||||
|
||||
Reference in new issue
Block a user