mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-06 12:54:29 +01:00
Ported from the approved mock-up (lofi_chip.html, V1 DIP) into ui_engvis.c vx_lofi: - CHIP sets a morph target (8BIT / FULL 0, 4BIT .40, STEP .45, 4B/2 .70, 1BIT 1) that the drawing glides to (~0.6 s, by the ms, also in silence; there at once when the creature is first shown or with ANIM OFF). The organism flattens into a DIP seen from above: back and belly the package's long edges, the back legs the top row of pins and the front ones the bottom row (each jutting with its bit), the rings the die's pads, the head folds into the notch (its face fading, pin 1's dot coming), the die with the wave as two traces and the bond wires; the skins stair-stepped to the bits (smooth, 7 levels, 5 levels, +-1). - The other knobs as the mock-up's V1: DUTY the rings' width, ALGO the formula's bits on the back (8 formula reads a frame; a ROM on the chip), WAV# the table as spines, CRUSH / GRIT a stutter (the inputs held 1..6 frames) and flat steps, VAR the segments scrambled, DECAY (STEP) the rings dimming with the 4-bit volume, MOTION the crawl's speed and the legs' sway, VIB a wave and a shiver (the package shakes), FEEDBK two echoes from older scope_buf samples, BEND the segments / pins crowding to the head, MASK the picture torn in 5 px bands (new every 3 frames, with the sound), LOOP the segments repeating and the tail curling; TYPE LP / HP (insides dimmed, cilia growing with CUT) / BP (the skin's middle) / COMB (a double skin), a closed CUT blurring and swelling it, RES ringing contours and the peak's ring, DIST clipping with spikes, MORPH the head's species. Still in silence, moving with the sound. - eng_lofi.c: two read-only accessors for the drawing (lofi_algo_at: a formula at t; lofi_wram_nib); the audio code's disassembly unchanged (lofi_byte, lofi_float, the renders: identical but for addresses). - State: 3 B in vxs (.pool): the morph (Q8) and the stutter's last frame; MASK's seed from the creature's time. Differences from the mock: the tear moves rings, face and dots whole (by their centre's band), lines band by band; RES's contours sampled every 6th skin point and HP's cilia about half as many (draw cost); FEEDBK's echoes 128 / 256 samples older (scope_buf holds 512); the stutter holds the skins, bits, crawl and time but not the level. Flash: image 562748 -> 568204 B (+5456; vx_lofi 2168 -> 5660 B, helpers 2044 B), 13360 B of the 581564 slot free. RAM .data+.bss 79556 B and pool spare 10816 B unchanged, RAM code 22460 B unchanged. Draw (host, callgrind, draw_graph, the panel redrawn, a frame): EDIT 1.297 M Ir -> 1.359 M (8BIT), 1.368 M (1BIT), 1.487 M (HP, CUT open, RES 127); whole panel 1.150 M -> 1.214 M, 1.223 M, 1.392 M. cpu_vg unchanged (song/cputest 3079), target budgets unchanged, goldens unchanged. Tests: ui_render scenes (4BIT 4B/2 1BIT STEP FEEDBK MASK WRAM HP+RES COMB+DIST BP+LOOP, whole panel and HOME at 4BIT / 1BIT), 0 lint findings; ui_test: the morph glides to each CHIP's target and holds in silence, organism at 8BIT, chip at 1BIT, 13 knobs each change the drawing and it stays still. ALL HOST TESTS PASSED. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh