Juan: "Podría haber un cartelito nomás cuando ponés SEQ que diga move steps
with preset knob o algo así". A user didn't find steps 17 .. 64: the grid
shows 16 at a time and PRESETS moves it, which nothing said.
The tip (ui.c page_entered):
- On entering a SEQ page that shows the 16-step window (ui_graph.c
seq_roll_view: STEP's roll, the DRUM grid, every SEQ page with the roll;
not SONG or EUCLID) when the selected track's LEN is over 16, a toast
(ui_say, the pill on a lens page, the header too):
PRESETS: STEPS 17-32 OF 64
the window shown (ui.bank) and LEN; a last window short: STEPS 33-40 OF 40.
- Not at LEN 16 or less. The first three such entries a power-on
(seq_tip_n, one byte in .pool, zeroed at boot: no .data / .bss).
- As PRESETS moves, its own toast as before, unchanged: "BAR 2/4 STEP 17"
(the window's bar each detent); the bar chips under the cards light the
bar shown and SEQ's card says 21/64. So the range is on screen whenever
the window moves; nothing added there.
- Nothing removed.
Manual (MANUAL.md, MANUAL.es.md): PRESETS' row in the controls table still
said SEQ's pages load patterns (PHRASES; gone since 0.9.9-seq2i). Now: the
step, a whole bar fast, the grid following, so PRESETS is how one reaches
steps 17 .. 64; the tip.
Flash: page_entered 224 -> 352 B (the formatting by hand, no str_cat:
-20 B against the first try), the strings 21 B.
Image 52 B free (584284 of 584336; V10.8.75 204), BT 36 B free (73692 of
73728, unchanged), RAM .data+.bss 184 B free (98120 of 98304, unchanged),
pool spare 8224 B, RAM code 40384 of 42496 B. audio.c is V23's; the sound's
layout unchanged (tools/audio_layout.txt as recorded; a plain build
passes); tools/audio_map.txt: page_entered's line.
CPU (tests/cpu_lines_test.py), each scene's worst block, core 0/core 1,
V10.8.75 -> V10.8.76 (both measured now): identical, lines and instructions
101 79/44 102 62/28 103 85/14 104 51/14 105 66/41 106 52/36
107 63/11 108 51/29 0c 69/58 0d 71/52 0e 85/61
Tests:
- ui_test test_seq_tip (new): LEN 16 nothing; LEN 64 on STEP "PRESETS:
STEPS 1-16 OF 64"; PRESETS fast to bar 2 "BAR 2/4 STEP 17"; LEN 40
entered on bar 2 "17-32 OF 40"; EUCLID nothing; the DRUM grid on its last
bar "33-40 OF 40"; the fourth entry nothing. ui_power_on sets the tip as
said (3), so every other check and render runs as before.
- ui_render: toast_seq_tip, toast_seq_tip_drum (the roll and the DRUM grid,
LEN 64, bar 2): the pill 166 px, clear of the page's words, no lint
finding; the header's copy ellipsised, as every lens toast's long ones.
(ui_render's own run stops at JIANT/env_stage, go_title "STAGE", exit 2,
as at V10.8.75: those two scenes rendered by a driver.)
- The local workflow: steps 2 .. 29 pass, the emulator job included (emsdk
6.0.11: native-check, gen-web, resound-web, emu_test bit for bit); the
full UI: all passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Juan: "Lo implementaría solo en math" (formulas of his own, not only the
factory ones).
MATH USER (firmware/src/math_user.c, new):
- The machine is JIANT BYTE's (its fvm.c, GPL-3.0, Juan's): the instructions
BYTE's compiler makes from a text, serialized, with BYTE's operator numbers
(FO_*) and meaning (FVM_OPS2 / FVM_OPS1, copied), run a sample at a time
(BYTE runs each instruction over a block). Every stateless instruction:
- INT (bytebeat): + - * / % & | ^ << >>, every comparison (unsigned and
signed), && ||, min max;
- FIX (floatbeat, Q16.16): MULF MULIF DIVF DIVFI MODF ITOF FTOI FLOOR;
- NEG NOT LNOT ABS, sin tri saw sqr rnd (both kinds), SAT (clip, cos
compile to these), ?: and the string tables;
- the variables t, w (FLOAT's phase), a (VAR's 1..16), n v (note,
velocity); BYTE's others read 0, as BYTE's own do where its host does
not make them.
Not here (refused when checked): ph() lp() hp() (a state per voice), eu(),
FUNC's calls and func{}. DIVF uses the divider and at most 16 steps (no
64-bit division linked); products through core.h's mul64.
- The bytes: [0] the type (bit 0 FIX) | 2 a table pool follows ([1] its
length 1..32, its bytes); then op | md << 6 each, md 0 the stack, 1 a
number (LEB128), 2 a variable (BYTE's FA_ / FU_ index), 3 t (no byte); TAB
its table as a number. At most 64 bytes (MU_MAX), a stack of 12 (BYTE's
FVM_DEPTH). B16 (65) and F43 (125) don't fit; every other of BYTE's 96
factory texts does (14 .. 63 B).
- Checked when it arrives (mu_check): every op known, its operand whole, the
stack never under 1 nor over 12, one left, a table inside its pool. The
machine itself stays inside its stack (16, indexed & 15) and its bytes
whatever they are (a set half-written while a block reads it); / and % by
0 give 0, shifts & 31.
- One a track (mu_c, 6 x 65 B). Played at ALGO USER: P_E2 stored -4 (-4 ..
-1), before B01 / F01. lofi_byte / lofi_float: case 63 (f = p >> 2,
unsigned) in their jump tables, so MATH's own formulas take no test a
sample (scene 0d's instructions below V10.8.74's).
- BYTE (WAVE 5, 7): the result's low byte, with VAR, MOTION, LOOP, BEND,
GRIT, CHIP, SYNC as MATH's own; a t already read is not read again (t
moves at ~8 kHz at C4).
- FLOAT (WAVE 6): BYTE's fvm_sample (FIX -1 .. 1; INT as bytebeat), w = x << 3,
BYTE's phase in Q16 turns.
- The knob: lofi_desc gives a track that holds a formula (or is at USER)
ALGO -4 .. 191, USER first (N_BYTEU / N_FLOATU: "USER\0" before B01 / F01
in PNE, 10 B); a track without one keeps 0 .. 191 exactly as before, so
DICE, the matrix and MIDI see the same ranges. params.c param_fit keeps
-4 .. 191 for MATH's ALGO when a project / preset / automation is read.
Limits (Juan: "cuidá la CPU"):
- read at most 11025 times a second, at every rate (VH_SH) and hold (GRIT,
4B/2): a bucket of two reads, so a t a little uneven under the cap is read
as it comes; past it the value read last. Below about F4 (t under 11 kHz)
BYTE wave is bit for bit BYTE's machine; above it, held.
- at most 4 voices of formulas of one's own sounding, every track's together
(voice.c mu_cap: a fifth fades the oldest out); the voice admission
(load_admit, measured) stays the backstop.
- one pass over at most 64 bytes a read, no loop but DIVF's 16 steps.
Storage:
- the project: FUNC's 'F' 'U' block after 'O' 'T' (the last: an older firmware
stops before it), each track's length and bytes, when one holds a formula;
checked again when read. proj_mu beside the project, not in it (the pool has
32 B to spare): proj_scratch, the firmware's one project_t, reads and writes it.
A project without the block loads none; CLEAR PROJECT clears them; UNDO and
backups carry them. An older firmware loads ALGO -4 as B01.
- a user preset keeps ALGO USER but not the formula (its 192-byte record has
~12 bytes spare): the track's formula plays.
- a song's sections share the formulas loaded (as VOICE's lyrics).
ALGO 128 .. 191 saved (a bug since p6): MATH's ALGO above 127 (B33 .. B48,
F33 .. F48) made every project save fail with SAVE FORMAT ERROR 4 (proj_pack
refused a value over 127) and a user preset load it as B01 (its byte read
-128 .. -65). proj_pack takes MATH's ALGO to 191; projects and user presets
read -128 .. -65 back as 128 .. 191 (math_user.c mu_algo_in), param_fit keeps
it. Not fixed (separate, older): FLOAT's ALGO B (P_E0) is clamped to CHIP's
0..3 when a project loads (F01 .. F01).
Editor protocol 1.5 (editor.c):
- FORMULA (100): track, op (0 query, 1 set + pack7 of the bytes, 2 clear) ->
track, rc (1: refused, the track's as it was), length, pack7. pack7 is
BACKUP_PUT's groups (ed_unpack7 / ed_bk_pack).
- INFO tag 45 02 64 12 ('E', before 'C'); 'C' 43 02 01 05.
- web/EDITOR_PROTOCOL.md "1.5" (also in the site's, wt-ed formula-work).
- The emulator (web/emu) needs nothing more: web_ed carries FORMULA, so the
editor's preview runs this machine.
The stop-side click (crash screen, UBOOT, update reset), commit 65691824 on
pop-fix, cherry-picked: fm1_audio_stop lowers PC6 first, keeps the DMA 5 ms
more, then stops (out of line); ota_commit stops the audio before its reset;
tests/audio_order_test.py (run_tests.sh). audio.c and the golden renders
unchanged.
Flash (V10.8.74: 96 B free; this work ~2.5 KB: the machine 1.7 KB, FORMULA
~0.35 KB, the project block ~0.3 KB, the ALGO fix and the descs ~0.15 KB, the
stop fix 54 B):
- MATH's 48 floatbeats (lofi_float) built for size: the sines a call each
instead of inlined, half its size, -1682 B.
- a block's control and once-an-event sound functions built for size, none in
HOT_FNS: the kit's sounds (dx_run_fx), the master's TAPE, a track's COMB,
the kit's bus, DRONE CLAY's composer, the punch-in lane's step; a quiet tail
looked for, a punch-in's SLICER let go, a fitted span, a punch-in slot, a
kit step's hit, a note's VEL and HUMAN, a key's MIDI out, MATH USER's cap.
- tools/size_fns.py: math_user.c in SIZE_FILES (its main-loop side).
Image 204 B free (584132 of 584336), BT 36 B free (73692 of 73728), RAM
.data+.bss 184 B free (98120 of 98304: the formulas 390 B, their project copy
390 B, the cores' voices 64 B), pool spare 8224 B, RAM code 40384 of 42496 B.
audio.c is V23's. REPIN=keep; a plain build passes; tools/audio_layout.txt
and audio_map.txt recorded.
CPU (tests/cpu_lines_test.py), each scene's worst block, core 0/core 1,
V10.8.74 -> V10.8.75 (both measured now):
101 78/44 -> 79/44 102 62/28 -> 62/28 103 85/14 -> 85/14
104 51/14 -> 51/14 105 66/42 -> 66/41 106 52/36 -> 52/36
107 63/11 -> 63/11 108 50/29 -> 51/29 0c 70/57 -> 69/58
0d 71/51 -> 71/52 0e -- -> 85/61
Instructions identical in 101 .. 108 and 0c; 0d's lower (135.5k / 160.4k ->
135.2k / 160.2k a block). The lines move by a few with the flash layout
(+-1 point, as before). New scenes: 0d the CPU TEST's song with its three
synths MATH (BYTEBEAT B02, MATH KEYS F28, MATH PAD F12: factory formulas,
what V10.8.74 runs too); 0e the same with the first two MATH USER (B03's
bytecode on BYTE, 37 B; F20's floatbeat in FIX on FLOAT, 63 B, the longest
of BYTE's factory ones that fit), their chords capped at four voices: +14 /
+9 points over 0d, opt-in.
Tests:
- tests/math_user_test.c (new, in the workflow and run_tests.sh):
- BYTE: the 135 formulas of tests/math_user_gold.h (BYTE's own
fvm_compile and fvm_run on BYTE's 96 factory texts and formulas of every
operator: tools/math_user_gold.c, built in a BYTE checkout, and
tools/math_user_gold.py) give BYTE's values, 3 x 4160 each; the two over
64 bytes refused;
- factory: MATH's own 47 bytebeats as bytecode give lofi_byte's values,
every a, 2^17 + random t;
- DIVF and MULF against 64-bit arithmetic, 2M random operands; BYTE's
operator numbers;
- check: lp ph eu, a push without a value, the stack under 1 / over 12 / two
left, a number cut short or of six bytes, a header bit, a table out of its
pool, 0 and 65 bytes refused; a refused set leaves the track's;
- fuzz: 400000 random and mutated inputs, checked and run, and 400000 run
unchecked (any length byte): no crash under ASan, 0.2 s;
- voice: B01's bytecode at ALGO USER renders B01 bit for bit at C4; the cap
holds at C7; FLOAT plays it; nine USER notes on three tracks: four sound;
- storage: a project with two formulas, ALGO USER and ALGO 150 packs,
loads, restores byte for byte; 'F' 'U' the last block; one without it
loads none; user presets keep ALGO 150 and USER; the knob: USER only
where a formula is.
- app_contract: INFO's 'E' 64 12 before 'C'; FORMULA's query, a set (pack7)
read back, a malformed one refused (rc 1, the track's kept), no reply for
track 9, a clear.
- project, descdump (identical to V10.8.74's), audio_order pass; editor_test
fails the same 6 checks as V10.8.74.
- The local workflow: steps 2 .. 29 pass, the emulator job included (emsdk
6.0.11: the wasm built, native-check, gen-web, resound-web, emu_test).
- The site's editor (wt-ed formula-work, not here): its FVM port of BYTE's
compiler gives BYTE's bytes for all 135, its math_test and
editor_browser_test pass against this commit's wasm (a formula sent to
track 4 with FORMULA, ALGO -4, read back).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Juan: "Es ridículo un comando tan raro para algo que debería estar ahí
mientras escroleás".
Until now (V10.8.44) the GATE of REVERB and DLY was reachable only by
holding OCT+ and turning KNOB 4 on FX > REVERB or FX > DLY, with the
footer saying "HOLD: K4 GATE".
The layout: (a), a dedicated page, GATE, REVERB's third (params.c PAGES,
ui_lens.c CE_FX, ui.c FX_MN REVERB 2 -> 3):
- SELECT on FX: ... DLY, DLY 2, DLY 3, REVERB, REVERB 2, GATE, CHORUS,
SLICER ... (21 pages, GATE 11/21; LOAD ECO 12/16, ECO keeps it: the
gates are the buses').
- KNOB 1 REV, the reverb's GATE; KNOB 2 DLY, the delay's; 0..127, F_INT
as before. KNOB 3 and 4 empty: no other gate parameter exists, and no
new one was added.
- Why not (b), a second page of REVERB and of DLY: both already have
two or three full pages (REVERB 2: MOD RATE FILT WIDE; DLY 2 and 3 full),
so (b) would mean two more pages with three empty knobs each, the two
gates apart, and twice the flash. One page holds both gates side by
side, right after the reverb's pages, a SELECT detent from DLY 3 /
REVERB 2, and the delay's gate reads naturally next to the reverb's
(FM's FX lens already groups the buses' extras by module).
- Drawn like OTT and PUNCH IN: its name large (page_big; OFF under it
with both gates at 0), the value cards REV / DLY, and two columns of
cells on the thermal ramp (gx_col), each as tall as its gate holds.
The footer: "GATE 11/21".
- Same values, same storage: the page's ids are views (page_desc, ids
0xE4 / 0xE7, MUTATE's old ones as DNZ and CMIX were) of fx.c fx_gt[0]
and [1], the very array the project's 'G' 'T' block saves. No project,
preset or parameter id changes; fx.c is untouched, so the sound is the
same bits (gate_fx_test's output is byte-identical to V10.8.73's).
- The shortcut stays: OCT+ held + KNOB 4 on REVERB / DLY still turns the
same gate (its card says GATE while held). Its footer hint ("HOLD: K4
GATE", twice in LZ_HINT) is gone, because the page makes it redundant:
the hint was the only way to find the gesture, and the page is now that.
EDIT 1's and FILTER's hints stay.
Editor / Studio: protocol unchanged, DESC unchanged (descdump identical
to V10.8.73's). The GATE values were never in DESC or TRACK_PARAM and are
still not. Page ids are names, not indices: the UI push (43) can now send
the page "GATE" in section 3 (FX). EDITOR_PROTOCOL.md and editor.html
need nothing; a Studio that mirrors FX's pages by name may want to add
GATE (between REVERB 2 and CHORUS).
Docs: MANUAL.md / MANUAL.es.md (the FX pages' table, the knob table, the
SELECT order, a GATE paragraph after REVERB 2; the V10.8.44 gesture was
not in the manual until now), the cheatsheet (tools/gen_cheatsheets.py,
controls.html).
Flash (V10.8.73: 84 B free; the page ~290 B: graph_fx_lz +126, page_desc
+68, the three descs, PAGES and CE_FX +12 each; LZ_HINT -39):
- 9 more sound functions built for size, none in HOT_FNS, none a sample
loop: PANIC's notes off, a step's first lock (RAMP), SCENE's followers
let go, a MIDI note-off sent, FM6's note velocity (once an event); a
track's queued notes due (STRUM, HUMAN TIME, the gate's end), the held
kit hits' next, LIFE's routes, REVERSE's grains set (once a block's
control). -124 B.
- Packed (str_nth) into PNB: the LFO's WAVE (AUTO PAN's five are its first
five: one list), FILTER TYPE, REVERB TYPE; into PNE: DRONE CLAY's RATE
names (CLAY_RESN, its "past HOLD" view an offset). FUGUE's RATE and DIR
packed in place. A kit's lane names read KEY MAP's own (N_DKEYMODE, the
same eight), the lanes' two-letter names packed, SCENE's TRACK names are
N_RFOLW's T1..T6. desc_nm reads them all, DESC as before.
Image 96 B free (584240 of 584336), BT 36 B free (73692 of 73728), RAM
.data+.bss 1048 B free, pool spare 8224 B, RAM code 40384 of 42496 B.
audio.c is V23's. REPIN=keep; a plain build passes; tools/audio_layout.txt
and audio_map.txt recorded.
CPU (tests/cpu_lines_test.py), each scene's worst block, core 0/core 1,
V10.8.73 -> V10.8.74 (both measured now):
101 78/44 -> 78/44 102 62/28 -> 62/28 103 86/14 -> 85/14
104 51/14 -> 51/14 105 66/41 -> 66/42 106 52/36 -> 52/36
107 63/11 -> 63/11 108 51/29 -> 51/29 0c 70/58 -> 70/58
Instructions identical in every scene; the lines move by a few (+-4 of
~500) with the flash layout. Off the page nothing of it runs.
Tests:
- ui_test: the GATE page (after REVERB 2, before CHORUS, 11/21, REV and
DLY cards, KNOB 1 / 2 turn fx_gt 0..127, KNOB 3 / 4 nothing, OCT+ the
plain octave, page_desc's views), the gesture still turning it with no
footer hint, a project keeping both; the FX chain of 21 and the ECO
chain; OLD_LV's FX list. The LFO DRIFT check reads desc_nm (the list is
packed). The harness's power-on now clears the session views
system_init clears (GATE, GAIN, KEY TRK, DIST NOISE, CHORUS MIX, TAPE,
EQ, LIFE, DRONE CLAY), as the device's .bss is at power-on: the soak's
random walk now reaches the GATE page, takes another path, and what it
left behind (it did not, by luck, before) silenced four key tests.
- ui_render: the "gate" screen (REV 48, DLY 96).
- app_contract, gate_fx_test (byte-identical output), descdump
(identical), project, clay, clay_engines, drum_voice_extensions pass.
editor_test and the FM4 ui_test fail the same checks as V10.8.73 (not
in the workflow).
- The local workflow: steps 2 .. 28 pass (5 and 6 are the toolchain's
cache and setup, 11 the V23 checkout that 12 uses). The emulator job's
wasm build needs emcc, which this machine lacks; its native-check,
gen-web and resound-web pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Cards (the owner's request): the four knob cards (normal, LARGE's tall cards, the menu's), NOTICE's and DICE's card and
NAME's four lose their RAISE / SURF fill and sit on the background; their shape (rounded r 5 / r 4 tall, square off the
lenses) is a 1 px line in the value's colour (palette, knob, heat, hot / accent), 2 px on the knob just turned (it was
framed); empty cards a LINE outline; labels MID; the gauge as it was, its track LINE. The value's colour is already in
each card's cache key, so the line follows it; the rolling strip redraws the line's sides. ui_draw.c card_line.
AIR retired (MENU > DISPLAY > SKIN gone): COLORS is the one skin. Gone: ux.skin, lz_low, hud_home, hud_fade, the HUD /
AIR knob row, tabs, header halos, eco_backdrop, lz_begin / lz_blit / lz_tile_bg / lz_uline, style_apply, settings_fresh,
cv_keep, the text halo, the LB_ / LA_ geometry. The stored byte (favorites.factory[15][20]) is read and written 0 (COLORS,
as older firmware reads it); the editor's id 21 stays, SKIN with its one value COLORS (as STYLE's FLAT); MENU rows
renumbered (DISPLAY six, 34 rows). eco.top kept (the RAM's layout).
Flash: 5156 B free (was 2072); RAM .data+.bss 97776 as before, pool spare 8256, RAM code 32732 of 34816.
Tests: ui_test's SKIN tests rewritten (retirement, card outlines), AIR passes dropped from ui_render / ramp / theme /
startup / editor tests; lint findings 47 (85 before: all 38 gone were AIR's, none new), ink contrast clean.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- seq.c tvel keeps the velocity it is given (vs.raw, in vel_t's padding: no new RAM) and scales it as
before (tvel_of, mod.c); noinline, so the arp in mix_block calls it (RAM code 8 B smaller).
- mod.c mod_note -> seq.c vel_note: if the note's velocity is that one's as the sound takes it (a
chord's notes too), m_vel (and so every voice's mvel) is the one as played. Else (ACCENT 127,
HUMAN's spread, RATCHET DECAY, repeats; VEL 100 %: always the same) the note's own, as before.
- voice.c vel_sound: FM6 (the one engine reading mvel) still takes the velocity VEL gives it: of the
two (mvel through VEL, mvel), the one UNISON's level turns into the voice's vel.
- The sound, every engine's level and timbre, MIDI OUT, recording: unchanged.
- tests/vel_matrix_test.c (in run_tests.sh): the mix of keys / MIDI in / steps with ACCENT on ANALOG,
FM6 POLY and UNISON, measured on the previous commit's tree: VEL 127 with a VEL route d4355752,
VEL 64 / 0 with none d408d383 / db036bc8, the same here; VEL 0: 30 and 120 start at 100, the
matrix reads 30 / 120, VEL -> CUT opens by it; a step's 30 -> matrix 30, ACCENT 127.
tests/vel_seq_test.c: its VEL checks now the sound's (100, 69) and the matrix's (as played).
- MANUAL EN / ES: VEL's paragraph. tools/audio_layout.txt rebuilt.
- flash +188 B (582416 -> 582604), RAM +0 (97792), RAM code 32732 (-8).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- Power-on with the Bluetooth segment missing or another build's: BLUETOOTH PART MISSING, "REINSTALL WITH THE JIANT
WEB INSTALLER: juanjiant-bit.github.io/JIANT", ANY KEY: CONTINUE over the screen (ui.segbox, in the ui struct's
padding), once per power-on; a key or a knob closes it (swallowed as a screen wake's).
- GEN without the segment: the same message between its tabs and its foot instead of HOME's cards left there.
- Editor protocol 1.3: INFO tag 58 01 s right before 'C' (1 this build's, 2 missing / torn / another build's), for
the web installer's check after an install. EDITOR_PROTOCOL.md, the app contract and editor tests.
- Manuals (en/es): the power-on message in troubleshooting.
- ui_test: the host's bt_hw_seg can be told the segment is gone (HOST_SEG_HOOK); the boot message, any key / knob,
GEN without cards.
Flash +224 B (2020 -> 1796 B free), RAM unchanged, RAM code unchanged, segment size unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- mod.c: MS_OCTUP (24), MS_OCTDN (25) appended after T1..T6 ENV (MS_N 26; the ids before kept).
OCT+ = the bend's smoothstep ramp (0..1, eased in and back; OCT BEND OFF: 0), OCT- = the vibrato
(5.5 Hz, depth faded in, bipolar). kx_semi / kx_amt / kx_ph moved here from seq.c (no new RAM);
kx_shape, kx_src, kx_route out of line so the sound's code keeps its place (mod_tsrc +8 B, kx_block
the same size). track_follow_mask only for T1..T6 ENV.
- seq.c kx_block: a track whose slot routes OCT+ (SRC, DEST, AMT set) gets no bend and no MIDI OUT
pitch bend; one routing OCT- no pitch vibrato (CC1 still sent). Recording, OFF, UBOOT, AT unchanged.
- params.c N_MSRC "OCT+", "OCT-"; web editor, EDITOR_PROTOCOL, manuals (EN/ES), cheatsheet.
- tests: expr_keys_test.c (checksum 9d661a90 equal to V10.7.21's sources with no route; OCT+ on CUT
sweeps, eases back, no bend; OCT- on CUT / LEVEL wobbles, pitch still); persistence round-trip.
- tools/audio_layout.txt rebuilt (audio code after mod_tsrc 6-8 B later; new helpers after the last run).
- flash +220 B (582196 -> 582416), RAM +0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
The owner's decision. SAVE has nine pages (TIMELINE PARTS CLIPS SECTIONS PROJECTS
ARRANGE TOOLS USER PRESETS); GR_SONGSAVE stays in the enum (append only), unused.
PROJECTS (SAVE > PROJECT):
- KNOB 1 picks a project and opens nothing (it opened the project); the tile
picked is tinted and framed, the open one keeps its number lit. Entering the
page picks the open project (a GENE draft: its destination).
- ERASE and SAVE act on the picked project; LOAD opens it (song_select) when it is
not the open one, else loads the section as before.
- SAVE does what SAVE SONG AS did: STOP TO SAVE while playing, OVERWRITE PROJECT n?
when the destination holds something (its second line "NEXT: K3 SONG OR LOOP"),
then the NAME screen. It starts at SONG every time: a LOOP left chosen by the
save before would clear B-D unasked.
- NAME for a song save: KNOB 3 right LOOP, left SONG; its third card says SCOPE,
the title SAVE SONG / LOOP TO PROJECT n, the foot "NAME . K3 SONG/LOOP . OCT-
CANCEL".
- GENE's SAVE tap opens PROJECTS with SAVE armed (it opened SAVE SONG AS).
Fixed on the way: graph_save_lz was left starting with "else"; the dead
GR_SONGSAVE tests in ui.c, ui_graph.c and ui_layer.c are gone.
Tests:
- song_save_ui_cases.h rewritten for PROJECTS: no SAVE SONG AS page, the pick
opens nothing, empty destination names, occupied asks, cancel writes nothing, a
failed save keeps NAME open, the open project is a destination, playing
refuses, KNOB 3 on NAME switches SONG / LOOP, LOAD / ERASE on the pick.
- song_draft_test: a LOOP saved over a whole song elsewhere clears its B-D and
its rows (on the flash model).
- ui_test: SAVE's chain of nine, 1/9; the project page (pick, then LOAD).
- The #63 soak failed with the new page order: not this change. Since V10.47 the
roll, drawn after the cards, follows the playhead to another bar, and SEQ > BAR's
card says it one frame later; the soak now skips the comparison on the frame
the bar moved.
- song_generator_test: GENE's SAVE opens PROJECTS armed; the scope on NAME.
Docs: MANUAL.md / MANUAL.es.md (the chain, the page tables, the section "Saving a
whole song or a loop"), README, SAVE-SONG-AS.md, GENERATOR-DRAFT-SAVE.md,
MODULATION-SONG-BETA.md; cheat sheets generated and rendered.
Image: 3556 B free (456 B freed). RAM code headroom 2092 B.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- Header: the middle says the engine and the sound ("ANALOG ACID"), not "T1 .
ANALOG ACID": the track's number stands in its box at the left, and the name
has the room (FX keeps its accent "T1").
- FX: the set's name at the panel's right ("FX . T1", "SLICER . SL BUS 2") is
gone; the dots stay. The header, the tabs and the breadcrumb say it.
- EDIT > SOUND: the page's name at the panel's top left and the sound's name at
its foot are gone (the breadcrumb and the header say them).
- MENU > BLUETOOTH > PROX: its three instruction lines 11 apart (9 px capitals)
and the K1 MIN / K2 MAX / K3 SPD line at row 129, inside the panel (it stood at
136 and was cut at the foot, a finding since before).
- docs/cheatsheet-*.png / .pdf rendered again (tools/render_cheatsheets.mjs).
- Manuals (EN, ES), README.
ui_render: 84 findings (196; JIANT 5), alignment 0. Image: 3088 B free.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
AF_X (labels, tabs, the header's words, the breadcrumb, the panels' captions:
about 230 places) was a 1-bit 5 x 7 face with 7 px capitals. It is now the S face
itself (Chakra Petch, 9 px capitals, antialiased) drawn 2 rows higher (aafont_t
rise), so a place set for the pixel face keeps its top row and grows downward.
The pixel face and its blitter are no longer compiled (tools/gen_px_font.py stays
for the navigation map); cv_text_up turns the Huffman-coded glyphs (cv_turn).
So that the bigger letters fit, and to show fewer things, each larger:
- Tabs: at most five at a time, the five round the one lit, a mark at the side
where more lie (SEQ and FX had eight tabs of 27 px); GLO's GLOBAL / SYSTEM tabs
GLOB / SYS.
- MENU: a tab lists eight rows at a time from the knobs' set, 17 apart in S (its
own name and the "ALGO: TAB . SELECT: ROW" line over them are gone: the tabs
and the breadcrumb say both); the overview tiles show each tab's name and how
many rows it has (they listed every row 7 px apart).
- Cards: the label a row or two higher (capitals rows 3..11; AIR 2..10); labels
BPM LK, HARM, SYLL; COLOR's CONTRAST reads CONTR on its card (whole in the rows
and chips).
- Removed, as their cards say them: SCL KEY's QUANT and ALL TR at the wheel's
right; the value inside BEING's organ rings (cut to five letters).
- The footer's breadcrumb a row higher; DICE's dialog buttons two 9 px lines.
- GENE's panel no longer draws the song's length under its own words.
ui_render: 196 findings (248 before; 9 on JIANT, 13 before), ellipsised free
texts 628 (1224), alignment 0. ui_test and text_ref_test follow (tab window,
rise). Image: 3848 B free (1252 B freed).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
The owner's decision: a card's value and gauge take the palette's colours, not
JIANT's violet / yellow / blue / red everywhere. tools/gen_ui_palettes.py KNOBS is
per palette again: JIANT its 0.6 four (and, as before, its cards the value's
heat); SELVA green lime teal amber; CONTRAST lilac and three pale tints; BRASA
ember apricot cream coral; ABISAL cyan aqua periwinkle ice; HUESO bone, two greys
and its orange; NEON magenta violet yellow pink. Each 4.5 or more on BG, SURF and
RAISE, apart from each other and (but HUESO's orange) from the ACCENT.
heat_on (the cards' heat by value) is JIANT's alone again; the thermal ramp stays
on the beings, the notes and the bars in all seven.
Tests: theme_test (the four per palette, their contrast, apart), ui_test (another
palette: the knob's own colour), ratchet_test (it read a card's value as TEXT: it
failed since the palettes commit, the tests' palette being JIANT now).
Manuals, README.
Image: 2596 B free (212 B for the table and the palette test back).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
draw_graph no longer draws the rounded SURF panel (the lens's 4..236 and the plain
3..237); while the panel draws, ux.surf is ux.bg, so what its inside clears and
writes on T_SURF lands on the background, and it is put back before the toast.
Cells, tiles and cards are unchanged; the mixer, the dialogs and LARGE's tall cards
keep SURF.
Tests (ui_test): LARGE's strip rows and HOME's water read BG; SCOPE's gap counted
on BG. ui_render: 248 findings as before, alignment 0. Manuals, README.
Image: 2808 B free (28 B freed).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
MENU > DISPLAY has no STYLE row: COLOR SKIN SCOPE LARGE ANIM LEDS SCREEN OFF, the
rows after it renumbered in order (35 rows). LINE's drawing is gone: the 1 px
dividers between the strips (draw_rules, lcd_rule, cv_rule), its square corners,
its outlined count-in cells, ux.style and T_RULE.
Settings: the byte STYLE lived in (engine 15's 29) is written 0 on import, so a
saved LINE (or the PIXEL of 1.0.1) loads as FLAT and older firmware reads FLAT;
the record's size and version are unchanged; the byte is not reused.
Editor: MENU_DESC index 1 / id 1 still answers STYLE with FLAT alone and a
MENU_SET of it answers rc 0, FLAT, so every index and id keeps its setting.
Also drops draw_frame's branch for the knob row under the panel (BOTTOM's, dead
since the skins went).
Tests: ui_test (no STYLE row, the row counts, every byte value loads as FLAT,
idempotent), ui_render (one style), theme_test, editor_test. Manuals (EN, ES),
README, EDITOR_PROTOCOL.
Image: 2780 B free (472 B freed).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
MENU > DISPLAY > SKIN offers AIR and COLORS. The stored values stay (0 COLORS,
3 AIR): a saved BOTTOM (1) or HUD (2), or an unknown byte, reads as COLORS on
import and live; the settings record is unchanged, and older firmware reads 0 and 3
as before.
Removed: BOTTOM's layout (the knob row at the foot, its tab pill, its rules, the
menu's panel under the tabs) and HUD's HOME geometry. AIR keeps what it shares with
them (the floating words' outline, the cell blitter of its HOME, the fading row).
Tests: ui_test (the menu's two values, the migration of every byte value, the HUD
checks carried to AIR's HOME), ui_render (COLORS and AIR; AIR's renders in every
palette), editor_test, ramp_test. Manuals (EN, ES), README, cheat sheet text,
EDITOR_PROTOCOL.
Image: 2308 B free (316 B freed).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
MENU > DISPLAY > COLOR offers exactly seven, all the owner's: JIANT (unchanged, the
default) and six of its own. The ten inherited from Felucca (GREY GREEN AMBER ICE
VIOLET ROSE PAPER HI-CON NIGHT MONO) are gone.
- tools/gen_ui_palettes.py: a palette is twelve stored tokens (bg surf text theme
accent mid dim line sel tint rec raise); JIANT's are its five colours and the
blends it has had since 0.8.9 (bit for bit), the six new ones the owner's hex
values at the nearest RGB565. INK is black in all. NEON's SEL a step lighter than
set (#D43589) so black INK on it passes 4.5.
- gfx.c palette_set copies the twelve; KEY, LANE, GRID stay derived. The GREY
(gray axis), MONO (black and white) and PAPER (light) paths are removed: ux.mono,
ux.light, the light coverage curve, ux_gray / ux_luma, the knob table per palette.
- The thermal ramp (beings, notes, bars, card values) in every palette.
- Saved ids: UI_PAL_TAG + the place the nearest palette had up to V10.7.18, so old
settings land on the nearest of the family (GREY MONO NIGHT -> HUESO, GREEN ->
SELVA, AMBER ROSE -> BRASA, ICE -> ABISAL, VIOLET -> JIANT, PAPER HI-CON ->
CONTRAST) and older firmware reads new settings as its nearest palette (NEON: a
new id, its fallback). The record's format and version are unchanged.
- A card value too long for S (COLOR's CONTRAST) is set whole in the small face;
COLOR's chips fit it. An arrange row of an empty section is a well (DIM on the
section's colour could not be read).
- Tests: theme_test (the family, the stored tokens, the knobs' contrast; its probe
glyph in the byte-packed format, which is what failed before), settings_test and
backup_test (the migration), ui_test, ui_render (gray / neutral lints replaced by
a contrast lint of every ink drawn), editor_test, the web mock.
- Manuals (EN, ES), README, cheat sheet text, EDITOR_PROTOCOL.
Image: 1992 B free (was 256).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
The owner, after the device: every reroll the same (major) chords, the aggression gone, GENRE only the presets.
Why: gls_hear knew four modes (MAJ MIN DOR MIX) and kept the first on a tie, MAJ first, so a phrygian riff (E F)
came out F major and a power riff without a third major; its chords were the one detected progression for every seed;
and B C D were the loop's own material, so the genre gave only the added parts' sounds and the rows.
- the key: six modes (PHRY MIN HARM DOR MIX MAJ); where the loop leaves two alike, the genre's own, then minor, the
darker where a loop track is distorted (DIST) or the genre heavy (gls.dark);
- gls_reharm: a chord a segment that holds the loop's notes there (its tones sounding, the bass one of them, no note a
semitone off them louder than half its tones but the tonic's b2/b6), a quarter of the seeds the heard one, else drawn
by fit, the genre's chord there and a dark loop's minor chords likelier (EXPLORE wider); power chords where the
genre plays them;
- the verse (B) the genre's drums (its map on the loop's kit), bass, chords, arp, lead on the loop's sounds over the
genre's own progression (gls.v, gen_pick's, checked in the loop's mode with its colours); the build (C) the genre's
parts on the drop's chords, its drums the verse's or the loop's; the break (D) on the genre's or the drop's chords;
- the rows a seed's: the club's or the arc's plan, the verse in the groove and in a seed's intros and outros, a seed's
lengths and section energies; EXPLORE a genre a seed near the loop's tempo;
- the drop untouched (the loop as it is); normal GEN byte-identical (every genre, EXPLORE, RANDOM x 4 seeds x LOOP
PARTS SONG fingerprinted against a663669d).
Room (lossless): PROX's texts packed (BP_S's rows padded to 28 B: -246 B in the Bluetooth segment), gsplit, gls_role,
gls_any, gls_begin into the segment. App 1084 -> 368 B free, the segment 88 -> 84 B free.
tests/loop_song_test.c: the modes of dark loops, every drop chord holding the loop's notes, progressions and songs over
16 seeds, mostly not major, the verse's drums the genre's, EXPLORE's genres. Manual EN / ES.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
KNOB 1's last ACTION on COMP / COMP 2 and GLO > COMPS. The ACTION nibble is full
(0..15), so TRIG is stored as MUTE with VALUE 2 (CV_MUTE_TRIG): comp_run / gl_eval
invert the condition's result for it (a MUTE of the opposite passes, LENGTH the same,
no CUT; PRE still reads the condition). CA_TRIG (16) is only KNOB 1's place and the
card's name. No new code in the save format; firmware before this loads a TRIG as a
MUTE CUT with its condition as it is. Tests (comp_test trig), MANUAL en / es,
cheatsheet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- SCENE: each held key keeps the notes it started per track (8 slots, pool); the key-up
ends those instead of recomputing from the current octave / roles / chord / scale.
A key that QUANT WHITE silences on a track plays nothing there (it was note 255,
stored as 0, its key-up lost).
- MIDI OUT of the keys / SCENE / LATCH: a per-track bitset of the notes sent; a note-off
goes iff its note-on went, whatever MIDI OUT or the ARP are by the key-up.
- LATCH: a key latches only if HOLD was on at its press; notes past the 16-note list are
let go at the key-up (both hung for good).
- Engine load under held notes: the arp's note is ended before the carry-over, and MIDI
ownership is kept for the carried notes (their note-offs never reached them).
- CC120 / CC123: latched notes and the arp's note get their MIDI OUT note-offs.
- PANIC: PLAY held 0.7 s stops the transport, kills every voice, forgets keys, SCENE keys,
latches, arps, punch-in repeats and MIDI owners, sends every pending note-off and CC123
on channels 1-6. Documented in MANUAL.md / MANUAL.es.md.
- The cold MIDI overflow / panic handling moved out of RAM code (mo_block), the key-up
through a pointer as SCENE's: RAM code 32748 -> 32564 B.
- tests/stuck_test.c: held key / MIDI note across every state change, MIDI IN cases,
sequencer, PANIC, and a random-play fuzz.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
GENE 1's FORM has a fourth value, MY LOOP (gen_loop.c). OCT+ keeps the loop's tracks as they are
(steps, sounds, mix) as section A, the drop, and:
- hears its key (MAJ MIN DOR MIX, each pitch class by length, velocity and downbeat, the bass as the
tonic's hint; DRUM-X's tonal lanes and an EXTENDED kit's chromatic run too) and a chord a bar (half a
bar in a one-bar loop: the mode's triad heard most, the bass the root's hint, a 7th where it sounds),
GEN's plan then those chords (no tone: the genre's own key and progression);
- adds, only on empty tracks and by GENE 2's BASS CHORDS ARP (AUTO: the genre's), a bass, chords on
the heard progression and a counter-melody made of the loop's melody (displaced, its first half
answered, inverted round its first note or kept to the beats, an octave away, in key); the genre's
sounds and mix for them; none empty: NO EMPTY TRACK: ARRANGED;
- arranges with SONG's rows (club plan or arc; RANDOM / EXPLORE by tempo and kicks): thinned intro
and outro drums, layers by the genre's priorities, the build's roll on the loop's own snare, clap or
rim with the high-pass and the chords' filter, the break, ARRANGE's FILL, every drop row the loop
whole, the player's muted tracks kept muted.
OCT+ again: another seed from the same loop (its added parts made again); UNDO (GLO + G4): the loop as
it was in LOOP mode. Normal GEN unchanged (fingerprints of every genre x 4 seeds x 3 forms identical).
tests/loop_song_test.c (in run_tests.sh); manual EN / ES.
gls_hear and gls_counter live in the Bluetooth segment (BTAPP: GEN runs only once bt_hw_seg() said
it is this build's; else BLUETOOTH MISSING, as before). App 3452 -> 1708 B free, the BT segment
1620 -> 92 B free; tools/audio_layout.txt recorded anew (FELUCCA_REPIN=keep).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- FUN7 .. FUNB projects (Felucca 1.0 / 1.1, JIANT up to 0.5) are no longer read: proj_unpack_bt (in
the Bluetooth segment) gone; such a slot at power-on: OLD PROJECT: NOT READ, the slot empty (its
flash kept until saved over); a backup's such project refused as FUN6's. Open them in V10.7.13 or
earlier and save again there to convert (the web editor cannot).
- up_migrate: SAMPLE PERC -> DRUM, TRIO -> ANALOG, LOFI's chips -> ANALOG, 0.3 / 0.4 value
conversions gone (records load as stored; a retired engine's plays as ANALOG, eng_live); the VEL
100 % mark of V10.7.6 kept.
- proj_phys_gone: a retired engine's track gets ANALOG's first preset (its EDIT values and envelope),
no nearest-sound conversion (TRIO, LOFI chips), its motion as it was.
- ADD's creature (MEDUSA) gone: ADD draws the being, as engines without their own picture do.
Tests updated for what is lost (project, motion, ratchet, backup, user presets, DRUM-X octaves, UI); manual EN / ES
"Before you update". App 1032 -> 3452 B free, the BT segment 8 -> 1620 B free.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh