V10.8.57: HOME > VISUAL the whole screen, a composition of layers from a seed (cybernetic anatomy and data)

(the owner: "podría ser mucho mejor" with fifteen references, "anatomía cibernética y data", "una mezcla de todo
eso", "el recurso de la misma figura en varios tamaños es feo", the whole screen, "le faltan formas y comportamientos")
- HOME > VISUAL is drawn on the whole screen (as the saver): no header, tabs, cards or footer; a knob turned shows its
  name and value a line at the foot a moment, OCT+'s banner the same; any other key leaves as before.
- vis_fig (ui_lzhome.c): a composition from the seed, no shape drawn at several sizes: a ground low (an isometric
  mesh of the output's history with digits on it; stars flying out of a vanishing point, streaks on the beat; a rain
  of glyphs, the heads bright), WHEEL's worms rising (vx_gx, as the creature draws them), a core on a third (a radial
  skull diagram: the skull's ring, spokes from a hub to the callouts, a dashed circle; a scanned head: its outline, a
  thermal fill of scan lines by the tracks' levels, the eyes; or one of the creatures), and the data over it (tracking
  boxes on the marked points, joined by lines, live numbers). The output's history (16 x 16) kept in LOFI's half of
  vxs.wv, once a tick (vis_tick). KNOB 1 DENSITY (was COMPLEX), 2 WOBBLE, 3 PALETTE MIXED THERMAL ORG/BLUE GRN/RED
  AMBER MONO, 4 REACT. The saver another composition every 30 s.
- Not in for room (image 60 B, BT 84 B free): topographic contours (~200 B), tentacles with square tips (~290 B), a
  Lissajous panel (~250 B), a network (~370 B), a globe/radar (~500 B), a ribbon bundle (~230 B), the side meters and
  grid inset (~250 B).
- tests: ui_test (VISUAL: DENSITY, a knob's line, it moves; the soak skips VISUAL's whole screen).
Layout recorded again (FELUCCA_REPIN=keep); the plain build passes. Image 584276 of 584336 (60 B free), BT segment
73644 of 73728 (84 B free), RAM code unchanged (32700), pool spare 8448. audio.c as V23's.

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-27 09:55:30 +00:00
1 parent f23d2a475a
commit 764c15fc2d
6 files changed
+1201 -1071

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.56" /* (2026-11-26) V10.8.56 (the owner: "visuales random en HOME", both): HOME > VISUAL, BEING's second page (ROUTES' place), a figure from a seed of the creatures' pieces (OCT+ a new one, "VISUAL #n"; KNOB 1 COMPLEX, 2 WOBBLE, 3 PALETTE, 4 REACT), moving with the sound; MENU > DISPLAY > SAVER (OFF 1 3 5 10 MIN, 3 the default): the figure the whole screen after that long with no panel input, the first touch only brings the page back; V10.8.55 (the owner: "the snail and the caterpillar can be better: a misreading of the original, not the engine"; "a bit more deformity in the circles, cheap, a modifier of the animations' engine"; "DRUM-X too"): the creatures' circles wobble (vx_wf: two lobes turning, more with the sound); their colours as their originals' (ANALOG's isotherms, DRIVE's spikes and NOISE's cilia; WHEEL's tubes warmed by DRIVE; STRING's silk by BRIGHT; MATH BYTE's segments lit by the byte its voice holds); in silence an idle wave (the snail's sole, the caterpillar's colours on HOME > BEING); DRUM-X's kit a table of beings (one call); PHASE's snail and MATH's caterpillar drawn through vx_gx as their originals were (head and eyestalks at the left, the shell on its back, the wave its sole; the caterpillar crawling in a wave, segments thinning to the tail, its skins the sound, the head at the right); V10.8.54 (the owner: "pasá todas esas", Studio's projects, RESOUND): ANALOG WHEEL PHASE MATH STRING's creatures through one routine (vx_gx; WHEEL's worms waving with their crowns, ANALOG's spikes cilia and oscillators); editor PROJ_LIST 95 / PROJ_NAME 96 / PROJ_OP 97 (Studio's library: rename a part or a project live, copy move delete a project); GLO + A4 RESOUND (new sounds for the whole song, its notes kept; GLO + G4 back); RESTART, a DRUM sound's mute, LANE, REC GRID, PROJECT n, MIXER's KNOB 4 and "A > B NEXT BAR" said; a lens page's OCT+ gestures in its footer (1.5 s, and while OCT+ is held); V10.8.53 (the owner: "every picture from the same engine, so their room shrinks"): the pictures' shared engine (ui_gx.c: cells, a sine, chips, keys); DELAY REVERB CHORUS SENDS drawn with it, DIST's and CLIP's curve one; the big numbers in M (the V face gone), the count-in on one line, the EQ's curve, the TOOLS picture and the small beings of the lists gone; SEQ EDIT (SEQ held): KNOB 1 / 2 the selection, 3 the ACTION (STRETCH .. MUTATE, GENERATE in the selection with KNOB 4 its genre and a new seed, RANDOM on its grid 1/4 .. 1/32), 4 its amount, OCT+ does it, F#5 UNDO / REDO; GLO's mutes, UNMUTE ALL, SCL's ROOT and REC's QUANTIZE say what they did; V10.8.52 (the owner: "don't lose songs"): SAVE + C4..F4 / OCT+ over a part with music asks OVERWRITE A? (OCT+ yes, once a part until another project opens), the part it had back with GLO + G4 UNDO (again: the save again); a GEN draft saved with PROJECTS > SAVE is that project from then on (SAVE + C4, the autosave and RESTORE LAST follow it: they stayed on the music before GEN); V10.8.51 (the owner): projects of before V10.7 no longer migrated (OLD PROJECT: OPEN IN STUDIO, the slot untouched; Studio converts them: web_proj_load / web_proj_save); the MOD MATRIX AMOUNT -200 .. +198 % (100 % a full source the whole range, exactly); GEN's pieces under -1 dBFS before the master (a genre's headroom: were up to +13 dBFS); SEQ TOOLS' STRETCH SQUEEZE REPEAT on the steps held (SEL 5-8); PLAY: THE PART; V10.8.50 (the owner: "copy, paste, duplicate; select"): SEQ TOOLS C5 is DUP (the copied steps again right after them, LEN grown), step keys held + EDIT clear those steps, COPY / PASTE / DUP / CLEAR say the steps ("COPY 5-8"); V10.8.49 (the owner: SEQ TOOLS STRETCH x2, SQUEEZE /2, REPEAT x2 back on C4 D4 E4, NUDGE < / > on C#5 D#5; ABOUT's AUDIO LOAD lines and RAMP's curve out for the room); V10.8.48 (the owner: "everything lacks decay and release, all at sustain 100"; "the leads: decay, little sustain, a lot of release"; "the chords all filtered the same: the bands, the whole generator"): GEN's envelopes by role, a part's filter TYPE its own (BP, HP with KEY TRK), the GAIN making up what they take. V10.8.47 (the owner: "play and edit; the information, the names of the section: parts, song, arrange"): PART SLOTS' LOAD is PLAY/EDIT, STORE is SAVE, PLAY's LOOP is PART, a song's END LOOP is REPEAT, a part with no name its bars in the song, NOW is PLAYING, ARRANGE's tokens PART+BARS, JAM's and TAKE's SEQ is PART, CAMBIO is SWITCH. (2026-11-25) V10.8.46 (the owner): GEN: a part never still (its LFO slow and free on the filter and the shape, the stereo, a note's envelope on the shape), the rows' colours an arc, the envelopes by role, the build's high-pass in sixteenths, phonk the drift one alone; MENU > ABOUT's LAST CRASH back; V10.8.45 (the owner): the ARP on its RATE's grid of the transport while it plays, recorded on its steps; MENU > ABOUT's CPU lines and the velocity diagnostic out, the header's load a number; GEN: sections half as long, a row its ownLine truncated
#define FELUCCA_VERSION "V10.8.57" /* (2026-11-27) V10.8.57 (the owner: "podría ser mucho mejor", references "anatomía cibernética y data", "una mezcla de todo eso", the whole screen, no shape at several sizes): HOME > VISUAL the whole screen (a knob a line at the foot), a composition from a seed: a ground (an isometric mesh of the output's history with digits, stars out of a vanishing point, a rain of glyphs), WHEEL's worms, a core on a third (a radial skull diagram, a scanned head with its thermal scan lines, or a creature), the data (tracking boxes joined, live numbers); KNOB 1 DENSITY, 3 PALETTE MIXED THERMAL ORG/BLUE GRN/RED AMBER MONO; the saver another every 30 s; V10.8.56 (the owner: "visuales random en HOME", both): HOME > VISUAL, BEING's second page (ROUTES' place), a figure from a seed of the creatures' pieces (OCT+ a new one, "VISUAL #n"; KNOB 1 COMPLEX, 2 WOBBLE, 3 PALETTE, 4 REACT), moving with the sound; MENU > DISPLAY > SAVER (OFF 1 3 5 10 MIN, 3 the default): the figure the whole screen after that long with no panel input, the first touch only brings the page back; V10.8.55 (the owner: "the snail and the caterpillar can be better: a misreading of the original, not the engine"; "a bit more deformity in the circles, cheap, a modifier of the animations' engine"; "DRUM-X too"): the creatures' circles wobble (vx_wf: two lobes turning, more with the sound); their colours as their originals' (ANALOG's isotherms, DRIVE's spikes and NOISE's cilia; WHEEL's tubes warmed by DRIVE; STRING's silk by BRIGHT; MATH BYTE's segments lit by the byte its voice holds); in silence an idle wave (the snail's sole, the caterpillar's colours on HOME > BEING); DRUM-X's kit a table of beings (one call); PHASE's snail and MATH's caterpillar drawn through vx_gx as their originals were (head and eyestalks at the left, the shell on its back, the wave its sole; the caterpillar crawling in a wave, segments thinning to the tail, its skins the sound, the head at the right); V10.8.54 (the owner: "pasá todas esas", Studio's projects, RESOUND): ANALOG WHEEL PHASE MATH STRING's creatures through one routine (vx_gx; WHEEL's worms waving with their crowns, ANALOG's spikes cilia and oscillators); editor PROJ_LIST 95 / PROJ_NAME 96 / PROJ_OP 97 (Studio's library: rename a part or a project live, copy move delete a project); GLO + A4 RESOUND (new sounds for the whole song, its notes kept; GLO + G4 back); RESTART, a DRUM sound's mute, LANE, REC GRID, PROJECT n, MIXER's KNOB 4 and "A > B NEXT BAR" said; a lens page's OCT+ gestures in its footer (1.5 s, and while OCT+ is held); V10.8.53 (the owner: "every picture from the same engine, so their room shrinks"): the pictures' shared engine (ui_gx.c: cells, a sine, chips, keys); DELAY REVERB CHORUS SENDS drawn with it, DIST's and CLIP's curve one; the big numbers in M (the V face gone), the count-in on one line, the EQ's curve, the TOOLS picture and the small beings of the lists gone; SEQ EDIT (SEQ held): KNOB 1 / 2 the selection, 3 the ACTION (STRETCH .. MUTATE, GENERATE in the selection with KNOB 4 its genre and a new seed, RANDOM on its grid 1/4 .. 1/32), 4 its amount, OCT+ does it, F#5 UNDO / REDO; GLO's mutes, UNMUTE ALL, SCL's ROOT and REC's QUANTIZE say what they did; V10.8.52 (the owner: "don't lose songs"): SAVE + C4..F4 / OCT+ over a part with music asks OVERWRITE A? (OCT+ yes, once a part until another project opens), the part it had back with GLO + G4 UNDO (again: the save again); a GEN draft saved with PROJECTS > SAVE is that project from then on (SAVE + C4, the autosave and RESTORE LAST follow it: they stayed on the music before GEN); V10.8.51 (the owner): projects of before V10.7 no longer migrated (OLD PROJECT: OPEN IN STUDIO, the slot untouched; Studio converts them: web_proj_load / web_proj_save); the MOD MATRIX AMOUNT -200 .. +198 % (100 % a full source the whole range, exactly); GEN's pieces under -1 dBFS before the master (a genre's headroom: were up to +13 dBFS); SEQ TOOLS' STRETCH SQUEEZE REPEAT on the steps held (SEL 5-8); PLAY: THE PART; V10.8.50 (the owner: "copy, paste, duplicate; select"): SEQ TOOLS C5 is DUP (the copied steps again right after them, LEN grown), step keys held + EDIT clear those steps, COPY / PASTE / DUP / CLEAR say the steps ("COPY 5-8"); V10.8.49 (the owner: SEQ TOOLS STRETCH x2, SQUEEZE /2, REPEAT x2 back on C4 D4 E4, NUDGE < / > on C#5 D#5; ABOUT's AUDIO LOAD lines and RAMP's curve out for the room); V10.8.48 (the owner: "everything lacks decay and release, all at sustain 100"; "the leads: decay, little sustain, a lot of release"; "the chords all filtered the same: the bands, the whole generator"): GEN's envelopes by role, a part's filter TYPE its own (BP, HP with KEY TRK), the GAIN making up what they take. V10.8.47 (the owner: "play and edit; the information, the names of the section: parts, song, arrange"): PART SLOTS' LOAD is PLAY/EDIT, STORE is SAVE, PLAY's LOOP is PART, a song's END LOOP is REPEAT, a part with no name its bars in theLine truncated
#endif
#if FELUCCA_OTA && !FELUCCA_FLASH
#error "FELUCCA_OTA needs FELUCCA_FLASH"
+2 -2
View File
@@ -733,8 +733,8 @@ static int16_t life_v[4] __attribute__((section(".bss.tape")));
/* (V10.8.56, the owner: "visuales random en HOME") HOME > VISUAL, BEING's second page, and the screensaver (ui.c scr_*): a
* figure from a seed (OCT+ a new one), drawn with the creatures' pieces (ui_lzhome.c vis_fig): KNOB 1 COMPLEX (how many
* pieces), 2 WOBBLE (the circles' deformation), 3 PALETTE, 4 REACT (how much it follows the sound). Not saved */
static const char *const N_VPAL[] = {"HEAT", "THEME", "MONO", "COLD"}; /* (COLD: the heat turned over) */
static const param_desc_t VIS_DESC[4] = {PD("COMPLEX", F_PCT, 0, 100, 0), PD("WOBBLE", F_PCT, 0, 100, 0),
static const char *const N_VPAL[] = {"MIXED", "THERMAL", "ORG/BLUE", "GRN/RED", "AMBER", "MONO"}; /* (V10.8.57) */
static const param_desc_t VIS_DESC[4] = {PD("DENSITY", F_PCT, 0, 100, 0), PD("WOBBLE", F_PCT, 0, 100, 0),
PE("PALETTE", N_VPAL, 0), PD("REACT", F_PCT, 0, 100, 0)};
static int16_t vis_v[4] __attribute__((section(".bss.tape")));
static uint16_t vis_seed __attribute__((section(".bss.tape"))); /* (0: not set yet: vis_fig sets the knobs' defaults) */
+17 -3
View File
@@ -2183,11 +2183,25 @@ static void ui_draw(void)
}
if (!scr_frame()) /* MENU > SCREEN OFF: dark (or waking), nothing drawn */
return;
if (scrn.st == SCR_VIS) { /* (V10.8.56) MENU > SAVER: HOME > VISUAL's figure, the whole screen */
uint32_t s;
if (scrn.st == SCR_VIS || home_vis()) { /* (V10.8.56) MENU > SAVER: HOME > VISUAL's figure, the whole screen;
* (V10.8.57) HOME > VISUAL too: a knob turned or OCT+'s banner a
* line at the foot a moment */
uint32_t s, v = scrn.st == SCR_VIS;
for (s = 0; s < 2u; s++) {
cv_begin(240, 120, T_BG);
vis_fig(120 * 16, (120 - (int32_t)s * 120) * 16, 104 * 16);
if (bt_hw_seg())
vis_fig(120 * 16, (120 - (int32_t)s * 120) * 16, 104 * 16, vis_seed + (v ? fm1_ms / 30000u : 0u)); /* (the saver: another every 30 s) */
if (s && !v && (ui.hot_t || ui.msg_t)) { /* (the knob: its name and value) */
char b[24];
const char *u;
int16_t *vp;
const param_desc_t *d = home_param(ui.hot_col & 3u, &vp);
str_cpy(b, d->label, 12);
b[str_len(b) + 1u] = 0;
b[str_len(b)] = ' ';
param_format(d, *vp, b + str_len(b), &u);
cv_text(6, 104, &AF_X, ui.msg_t ? ui.msg : b, 0xFFFF);
}
cv_blit(0, s * 120u);
}
return;
+173 -59
View File
@@ -278,69 +278,188 @@ static void graph_eco(void)
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 ? "LIFE ON" : "LIFE OFF", life_on ? T_MID : T_DIM);
}
/* (V10.8.56, the owner: "un motor de visuales adentro: visuales random en HOME") HOME > VISUAL and the saver: a figure
* from vis_seed, of the creatures' pieces (vx_wf's wobbling circles, roses, tentacles, orbits), at (cx, cy), radius R
* (Q4 px): KNOB 1 COMPLEX its pieces (3 .. 12), 2 WOBBLE their circles' deformation, 3 PALETTE, 4 REACT how much the
* output's level swells, warms and speeds it. It turns with the time (anim_fr), faster with the sound */
static uint16_t vis_col(int32_t h)
/* (V10.8.57, the owner: "podría ser mucho mejor" (fifteen references: "anatomía cibernética y data"; "una mezcla de
* todo eso") HOME > VISUAL and the saver: a composition from a seed, of layers drawn by code (no pictures): a ground
* (an isometric mesh with digits, topographic lines with a red overlay and the beat's spike, stars flying out of a
* vanishing point, a rain of glyphs), something connecting (tentacles with square tips, WHEEL's worms), a core on a third (a radial
* skull diagram: spokes from a hub, the skull's ring, a dashed circle; a scanned head: its outline, a thermal fill of
* scan lines, the eyes; or one of the creatures, drawn as they are) and the
* data over it all (tracking boxes joined by lines, their live numbers). Each moves with the sound its own way: the
* mesh and the contours the output's history, the tentacles the tracks' levels, the core's heat the level, the numbers
* live, the beat a spike. KNOB 1 DENSITY (layers and elements), 2 WOBBLE, 3 PALETTE (MIXED: a blue ground,
* orange links, a thermal core, white data), 4 REACT */
static const uint16_t VIS_PC[6][3] = {{0x2B7F, 0xFB62, 0xF185}, {0, 0, 0}, {0x2B7F, 0xFB62, 0xFB62},
{0x3F2B, 0xF185, 0xF185}, {0xFD40, 0xFAC0, 0xFAC0}, {0x9CF3, 0xFFFF, 0xFFFF}};
#define VIS_H ((int8_t *)&vxs.wv[128]) /* the output's history, 16 x 16 (LOFI's half of vxs.wv: it fills it
* again each frame it draws) */
static struct {
uint32_t fr, r, t, sd;
int32_t lv, sp, pe, bx, by, k, px, py;
uint8_t hr, na;
int16_t ax[8], ay[8];
} vq __attribute__((section(".bss.tape")));
/* a role's colour: 0 the core, 1 the ground, 2 the links, 3 the data, 4 the alert; h 0..256 */
static VX_SEG uint16_t vc(uint32_t role, int32_t h)
{
h = clamp(h, 0, 255);
switch (vis_v[2] & 3) {
case 1: return ux_mix(T_THEME, T_ACCENT, h * 100 / 256);
case 2: return ux_mix(T_DIM, T_TEXT, h * 100 / 256);
case 3: return vk_heat(255 - h);
default: return vk_heat(h);
uint32_t p = (uint32_t)vis_v[2] % 6u;
uint16_t c;
h = clamp(h, 0, 256);
if (role == 3u)
return 0xFFFF;
if (p == 1u || (!p && !role))
return vk_heat(h);
c = VIS_PC[p][role ? role - 1u : 1u];
return h < 96 ? ux_mix(0, c, 60) : c;
}
static VX_SEG void vp(uint32_t i, int32_t x, int32_t y, uint16_t c, int32_t a) /* a polyline's point (i 0: the first) */
{
x = vq.bx + (x * vq.k >> 8); y = vq.by + (y * vq.k >> 8);
if (i && a) og_line_a(vq.px, vq.py, x, y, c, a);
vq.px = x; vq.py = y;
}
static VX_SEG void vm(void) /* the point just drawn, marked for the data */
{
if (vq.na < 8u) { vq.ax[vq.na] = (int16_t)(vq.px >> 4); vq.ay[vq.na++] = (int16_t)(vq.py >> 4); }
}
static VX_SEG uint32_t vr(void) { return vx_rnd(&vq.r); }
static VX_SEG void vring(int32_t x, int32_t y, int32_t r, uint16_t c, uint32_t dash) /* wobbling, maybe dashed */
{
uint32_t i;
for (i = 0; i <= 40u; i++) {
uint32_t a = i * 1639u;
int32_t rr = r + (r * og_sin(a * 3u + vq.t * 40u) >> 15) * (vis_v[1] + vq.lv / 4) / 700;
vp(i, x + (rr * og_cos(a) >> 15), y + (rr * og_sin(a) >> 15), c, dash && (i & 1u) ? 0 : 256);
}
}
static VX_SEG void vis_fig(int32_t cx, int32_t cy, int32_t R)
static VX_SEG void vtxt(char *b, uint16_t c) { cv_text((vq.px >> 4) + 3, (vq.py >> 4) - 9, &AF_X, b, c); }
static VX_SEG int32_t vh(uint32_t row, uint32_t col) { return VIS_H[((vq.hr - row) & 15u) * 16u + (col & 15u)]; }
/* grounds: 0 the isometric mesh, the history its relief, digits on it; 1 topographic lines, a red overlay, the beat a
* spike in the middle */
static VX_SEG void vis_ground(uint32_t kind)
{
uint32_t r, i, j, n, t;
int32_t lv;
uint32_t n = 8u + (uint32_t)vis_v[0] / 14u, i, j, d;
int32_t S = 360 / (int32_t)n, h;
if (kind >= 2u) { /* 2 stars flying out of a vanishing point, streaks on the beat; 3 a
* rain of glyphs, the heads bright */
for (i = 0; i < (kind == 2u ? 4u : 2u) * n; i++) {
uint32_t a = vr(), z = (a >> 16) + vq.t * (3u + (a & 7u)) * (kind == 2u ? 2u : 1u);
if (kind == 2u) {
z &= 255u;
h = (int32_t)(z * z >> 7);
vp(0, h * og_cos(a) >> 15, -150 + (h * og_sin(a) >> 15), 0, 0);
h += 6 + vq.sp / 3;
vp(1, h * og_cos(a) >> 15, -150 + (h * og_sin(a) >> 15), vc(1u, (int32_t)z), 256);
} else
for (j = 0; j < 6u; j++) {
char c2[2] = {(char)((j + a + (z >> 6)) % 10u + (j & 1u ? 'A' : '0')), 0};
vp(0, (int32_t)(a % 560u) - 280, (int32_t)((z >> 2) % 520u) - 380 - (int32_t)j * 24, 0, 0);
vtxt(c2, j ? vc(1u, 240 - (int32_t)j * 36) : 0xFFFF);
}
}
return;
}
for (d = 0; d < 2u; d++)
for (i = 0; i < n; i++)
for (j = 0; j < n; j++) {
uint32_t a = d ? j : i, b = d ? i : j;
h = vh(b * 16u / n, a * 16u / n) * (2 + vis_v[1] / 25);
vp(j, ((int32_t)a - (int32_t)b) * S, ((int32_t)a + (int32_t)b) * S / 2 - S * (int32_t)n / 2 - h, vc(1u, h * 2), 220);
if (!d && (a * 7u + b * 13u + vq.sd) % 9u == 0u) {
char c2[2] = {(char)('0' + (uint32_t)h / 12u % 10u), 0};
vtxt(c2, 0xFFFF);
if (a == b) vm();
}
}
}
/* cores: 0 a radial skull diagram (the skull's ring, spokes from a hub to the callouts, one dashed circle), 1 a scanned
* head (its outline, a thermal fill of scan lines by the tracks' levels, the eyes); never one shape at several sizes */
static VX_SEG void vis_core(uint32_t k)
{
uint32_t i, n = 8u + (uint32_t)vis_v[0] / 8u;
int32_t y, w;
if (!k) {
vring(0, 0, 230, 0xFFFF, 1);
vring(0, 0, 150 + vq.sp / 4, vc(4u, 230), 0);
for (i = 0; i < n; i++) { /* spokes from the hub, a node where they cross the skull */
uint32_t a = i * 65536u / n + vq.sd;
vp(0, 14 * og_cos(a) >> 15, 14 * og_sin(a) >> 15, 0, 0);
vp(1, 150 * og_cos(a) >> 15, 150 * og_sin(a) >> 15, vc(1u, 220), 256);
cv_rect((vq.px >> 4) - 1, (vq.py >> 4) - 1, 3, 3, 0xFFFF);
vp(1, 262 * og_cos(a) >> 15, 262 * og_sin(a) >> 15, vc(1u, 160), 180);
if (i % 3u == 0u) vm();
}
return;
}
for (i = 0; i <= 48u; i++) { /* the head's outline; its scan lines, hot where the tracks sound */
uint32_t an = i * 1366u;
w = 150 - (30 * og_sin(an) >> 15);
vp(i, w * og_cos(an) * 4 / 5 >> 15, w * og_sin(an) >> 15, 0xFFFF, 256);
}
for (y = -160; y < 116; y += 9) {
w = (150 + y / 5) * 4 / 5 - 8;
w = w * (256 - y * y / 160) / 256;
vp(0, -w, y, 0, 0);
vp(1, w, y, vc(0u, trk[(uint32_t)(y + 160) / 46u % NTRK].peak * 256 / 7000 + vq.lv / 3 + (og_sin((uint32_t)y * 900u + vq.t * 20u) >> 10)), 150);
}
for (i = 0; i < 2u; i++) { /* the eyes */
vring(i ? 48 : -48, -10, 12 + vq.lv / 24, 0xFFFF, 0);
vm();
}
}
/* (once a tick) the level, the beat, the time, the output's history */
static VX_SEG void vis_tick(void)
{
int32_t lv, v;
uint32_t k;
if (vq.fr == anim_fr)
return;
{ /* (once a tick) the level, the beat, the time, the history */
lv = bg_energy() * vis_v[3] / 100;
vq.fr = anim_fr;
vq.sp = vq.sp * 7 / 8 > (lv - vq.pe) * 3 ? vq.sp * 7 / 8 : (lv - vq.pe) * 3;
vq.pe = vq.lv = lv;
vq.t += 6u + (uint32_t)lv / 16u;
if (!(anim_fr & 3u)) {
vq.hr = (uint8_t)((vq.hr + 1u) & 15u);
for (k = 0; k < 16u; k++) {
v = scope_buf[(scope_w - 256u + k * 16u) & (SCOPE_N - 1u)];
VIS_H[vq.hr * 16u + k] = (int8_t)(4 + (v < 0 ? -v : v) * vis_v[3] / 25600);
}
}
}
}
static void vis_fig(int32_t cx, int32_t cy, int32_t R, uint32_t sd)
{
uint32_t i, b;
char t[12];
if (!vis_seed) { /* (the first time: the knobs' defaults, a seed) */
vis_v[0] = 50; vis_v[1] = 40; vis_v[3] = 60;
vis_seed = 1791;
}
lv = bg_energy() * vis_v[3] / 100; /* (0..256) the sound, as much as REACT asks */
t = anim_fr * (uint32_t)(60 + lv);
n = 3u + (uint32_t)vis_v[0] * 9u / 100u;
r = vis_seed * 2654435761u | 1u;
vxs.wb = (int16_t)(vis_v[1] * 14 + lv * 3);
vxs.wph = (uint16_t)(t >> 3);
for (i = 0; i < n; i++) {
uint32_t h = vx_rnd(&r), kind = h & 3u, k = 2u + (h >> 2) % 6u;
uint32_t ph = (h >> 8) + (t >> ((h >> 16) & 3u)) * ((h & 64u) ? 1u : 0xFFFFFFFFu);
int32_t rad = R * (18 + (int32_t)((h >> 5) % 78u)) / 100 * (256 + lv / 2) / 256, px = 0, py = 0;
uint16_t c = vis_col((int32_t)((h >> 12) & 255u) * 3 / 4 + lv / 4);
uint32_t m = kind < 2u ? 48u : kind == 2u ? k * 9u : k * 13u;
for (j = 0; j <= m; j++) {
int32_t x, y, rr;
uint32_t a;
if (kind == 3u) { /* k small rings orbiting */
uint32_t s = j / 13u, q = j % 13u;
int32_t sr = R / 10 * (256 + lv) / 256, w = vx_wf(q * 5462u);
a = s * 65536u / k + ph;
x = cx + (rad * og_cos(a) >> 15) + ((sr * og_cos(q * 5462u) >> 15) * w >> 12);
y = cy + (rad * og_sin(a) >> 15) + ((sr * og_sin(q * 5462u) >> 15) * w >> 12);
if (q) og_line_a(px, py, x, y, c, 256);
px = x; py = y;
continue;
}
if (kind < 2u) { /* a ring, or a rose of k petals: wobbling */
a = j * 65536u / 48u + ph;
rr = kind ? rad * (160 + (og_sin(k * a + ph * 3u) >> 9)) / 256 : rad;
rr = rr * vx_wf(a) >> 12;
} else { /* k tentacles from the middle, waving */
uint32_t s = j / 9u, q = j % 9u;
a = s * 65536u / k + ph + (uint32_t)(og_sin(q * 5000u + t * 9u + s * 9000u) * (2000 + vis_v[1] * 40) >> 15);
rr = rad * (int32_t)q / 8;
}
x = cx + (rr * og_cos(a) >> 15);
y = cy + (rr * og_sin(a) >> 15);
if (j && !(kind == 2u && j % 9u == 0u)) og_line_a(px, py, x, y, c, 256);
px = x; py = y;
}
vis_tick();
vq.sd = sd; vq.na = 0;
vq.r = sd * 2654435761u | 1u;
b = vr(); /* the ground low, the links rising from it, the core on a third */
vq.bx = cx; vq.by = cy + 140 * R / 256; vq.k = 210 * R / 256;
vis_ground(b & 3u); /* (1: the mesh too) */
vq.by = cy + 30 * R / 256; vq.k = R * 3 / 4;
{
int32_t A[4] = {(cx >> 4) - 100, (cy >> 4) + 10, 200, 90};
vx_gx(&trk[1], A, vq.lv, &VX_G[1]); /* the links: WHEEL's worms, their crowns */
vq.bx = cx + ((b & 4u) ? 96 : -96) * R / 256; vq.by = cy - 50 * R / 256; vq.k = (150 + (int32_t)(b >> 8) % 50) * R / 256;
A[0] = (vq.bx - R / 2) >> 4; A[1] = (vq.by - R / 2) >> 4; A[2] = A[3] = R >> 4;
if ((b >> 4 & 3u) == 3u) /* the core: a skull's diagram, a scanned head, or a creature */
vx_gx(&trk[0], A, vq.lv, &VX_G[(b >> 12) % 5u == 1u ? 0u : (b >> 12) % 5u]);
else
vis_core(b >> 4 & 1u);
}
for (i = 0; i < vq.na; i++) { /* the data: boxes on the marked points, joined, their live numbers */
int32_t x = vq.ax[i], y = vq.ay[i], s = 5 + (int32_t)i % 3 * 2 + vq.lv / 64;
cv_frame(x - s, y - s, 2 * s + 1, 2 * s + 1, 0xFFFF);
if (i) og_line_a(vq.ax[i - 1u] * 16, vq.ay[i - 1u] * 16, x * 16, y * 16, 0xFFFF, 150);
fmt_fix(t, (int32_t)((sd + i) * 2654435761u >> 15) % 99991 - 49995 + vq.lv * 37 + (int32_t)(vq.t & 63u), 3);
cv_text(x + s + 2, y - s - 2, &AF_X, t, 0xFFFF);
}
vxs.wb = 0;
}
/* BEING: the track's being large, its HOME knobs as organs at the corners */
static const int16_t ORG_X[4] = {30, 210, 30, 210}, ORG_Y[4] = {28, 28, 116, 116};
@@ -365,11 +484,6 @@ static __attribute__((noinline)) void graph_home_being(void)
(void)eco_step();
(void)bg_energy();
char b[16];
if (home_set()) { /* (V10.8.56) VISUAL, in ROUTES' place (the macros: FX > PUNCH IN's) */
if (bt_hw_seg())
vis_fig(120 * 16, 68 * 16, 62 * 16);
return;
}
for (k = 0; k < 4u; k++)
organ(k, cx, cy);
{ /* the being: graph_being's size, its HOME knobs, the track's own level */
+8 -6
View File
@@ -3613,8 +3613,8 @@ static int test_soak_cards(void)
* to another bar in this frame: BAR's card says it on the next) */
quiet = 0;
quiet++;
if (ui.menu || ui.layer || ui.confirm || name_on() || ui.uboot)
continue; /* (the cards are not drawn) */
if (ui.menu || ui.layer || ui.confirm || name_on() || ui.uboot || home_vis())
continue; /* (the cards are not drawn; V10.8.57: VISUAL is the whole screen) */
for (c = 0; c < 5u; c++)
old += ui.roll[c].from[0] && (uint8_t)(ui.frame - ui.roll[c].t0) >= ROLL_FRAMES;
if (quiet > 45u && !was_hot && !ui.bpm_t && !ui.msg_t && SOAK_RND(8u) == 0u) {
@@ -12259,10 +12259,10 @@ static int test_lz_home(void)
static uint16_t a[240 * 140];
uint16_t sd;
turn(EN_SELECT, 1); frames(4);
ok &= home_vis() && home_level() == 1u && home_set() && lz_crumb_is("HOME \xB7 BEING \xB7 VISUAL") && lz_count_is("4/11") &&
vis_seed != 0u && vis_v[0] == 50;
ok &= home_vis() && home_level() == 1u && home_set() && vis_seed != 0u && vis_v[0] == 50; /* (V10.8.57: the whole screen,
* no crumb) */
turn(EN_K1, 4); frame();
ok &= vis_v[0] > 50 && !strncmp(ui.col[0], "COMPLEX|", 8);
ok &= vis_v[0] > 50 && !strcmp(VIS_DESC[0].label, "DENSITY");
sd = vis_seed;
fm1_ms += 777u;
press(B_OCTUP); frame();
@@ -12272,9 +12272,11 @@ static int test_lz_home(void)
memcpy(a, host_screen + LZ_GRAPH_Y * 240, sizeof a);
frames(16);
ok &= memcmp(a, host_screen + LZ_GRAPH_Y * 240, sizeof a) != 0; /* (it moves) */
turn(EN_K2, 2); frame();
ok &= ui.hot_t && vis_v[1] != 40; /* (V10.8.57: a knob's value a line at the foot, the screen the figure's) */
turn(EN_SELECT, -1); frame();
ok &= home_level() == 1u && !home_set() && !home_vis();
bad += check("V10.8.56 HOME > VISUAL: BEING's second page, KNOB 1 COMPLEX, OCT+ a new figure (VISUAL #n), it moves", ok);
bad += check("V10.8.56 HOME > VISUAL: BEING's second page, KNOB 1 DENSITY, OCT+ a new figure (VISUAL #n), it moves; V10.8.57 the whole screen", ok);
ok = 1;
}
fm1_ms += 1000u;
+1000 -1000
View File
File diff suppressed because it is too large. Load diff