Commit Graph
4 Commits
Author SHA1 Message Date
Claude b6b5bfdd44 0.9.18 MENU: CPU CORES beside CPU CLOCK, BPM LOCK on AUDIO, a LEDS page; the footer says a page once
The open items of the MENU's review, decided:
- SYSTEM > SYSTEM: RESTORE LAST, CPU CORES, CPU CLOCK (what a power-on does, all from the next start), ABOUT;
  CALIBRATION to SYSTEM > CONTROLS (the controls it teaches; KNOB 4). The crash message: MENU > SYSTEM > CORES.
- BPM LOCK leaves CLICK for AUDIO (SPEAKER EQ, TRACKS, LOAD, BPM LOCK); CLICK keeps the metronome's three.
- With that, eight pages cannot hold the 29 rows (CLICK was the only home left for a fourth card), so SCREEN gets a
  third page, LEDS: LED GLOW and SCALE LEDS together; SCREEN 2 is SCOPE, ANIMATION, SCREEN SLEEP. Nine pages, every
  one of up to four knobs and opening on a value (never on an action).
- The footer does not repeat a page named as its tab: MENU . SCREEN, MENU . SCREEN 2, MENU . AUDIO, MENU . SYSTEM;
  MENU . AUDIO . CLICK, MENU . SCREEN . LEDS, MENU . SYSTEM . CONTROLS as before. n/9.
- Card labels: CALIB, CPU MHZ, USB AUD; no two alike on a page (tests/ui_test.c checks it); no card mark in the MENU
  (the two LEVEL cards had the level icon, no other setting a mark).
- Nothing stored changes (ids, values, defaults); the editor's tabs: SCALE LEDS SCREEN, CPU CORES SYSTEM.
- tests: ui_test (pages, crumbs, labels, knobs), editor_test, cpu_safe_test; ui_render MENU > SCREEN 2 scene
  (menu_screen2). README, MANUAL EN / ES, EDITOR_PROTOCOL, the web manual and its shots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-20 04:26:09 +00:00
Claude e42d3ba231 MENU as the system's pages: eight 4-knob pages in five tabs (SCREEN AUDIO MIDI USB SYSTEM)
The settings menu followed none of the rules the rest of JIANT has had since 0.9.2:
one long list, SELECT walked rows, any knob changed the selected row, the footer
counted rows (n/30), the tabs were abbreviations (DISP CTRL SYS), card labels
too (SPK EQ, USB LVL, CLICK LV, CALIBR, INIT SYS...), values ignored the heat
colours, HUD lost the values row entirely (the panel drew over it), and toasts
never timed out inside the menu.

Now (menu_items.c MPAGE, ui_menu.c):
- SCREEN: COLOR SKIN STYLE LARGE | SCOPE ANIMATION LED GLOW SCREEN SLEEP
- AUDIO: SPEAKER EQ TRACKS LOAD CPU CORES | CLICK CLICK LEVEL COUNT-IN BPM LOCK
- MIDI: MIDI OUT LEARN LEARN CLEAR;  USB: USB AUDIO USB LEVEL
- SYSTEM: HOLD TIME KNOB SPEEDUP FX LATCH SCALE LEDS | RESTORE LAST CPU CLOCK
  CALIBRATION ABOUT
SELECT walks the pages, ALGORITHM the tabs, KNOB n the page's setting n, OCT+/-
the setting turned last; actions are cards armed by their knob, OCT+ does them.
The panel lists the page's four with the knob number, full name, value in its
heat colour and one plain line on what it does. Footer MENU . TAB . page n/8.
Toast pill and message timers in the menu. Geometry from graph_y()/graph_h(),
so HUD keeps its values row at the foot.

Stored values and their meanings unchanged (no format change). Names: ANIM ->
ANIMATION, LEDS -> LED GLOW (OFF LOW HIGH INVERT), SCREEN OFF -> SCREEN SLEEP,
HOLD -> HOLD TIME, KNOB ACCEL -> KNOB SPEEDUP, USB -> USB AUDIO, CPU -> CPU
CORES. INIT SYSTEM left the menu (SAVE > TOOLS > NEW PROJECT is the same).
The editor gets the new tabs through MENU_DESC (ids unchanged).
ui_render: PRESETS TYPE and MENU > MIDI scenes drew a stray toast page; fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-20 02:40:56 +00:00
Claude 2a60cc34e8 CPU: after a crash, one core for three power-ons, then both cores again (a second crash: for good)
0.9.12 turned 2 CORES off for good after any crash with both cores at work: such a unit then played every song on
one core, ~1.5x the load of two at six tracks (host callgrind, a six-track scene: 2258-2508 instructions a sample on
one core against a ~1600 critical path on two), past four tracks over its CPU. Now the fallback lasts two clean
power-ons; the third starts both cores again (CPU_TRIED); a crash with both cores after that retry keeps 1 CORE for
good (ABOUT: CORES 1 (AFTER 2 CRASHES)) until MENU > SYSTEM > CPU. The settings byte takes the new bits (<= 127).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 09:51:29 +00:00
Claude 7180629b0b 0.9.12 (draft): safe by default on FM-1s that crash; the sound's flash layout pinned (0.9.10 crackle candidate)
Stability (users' random "FELUCCA/JIANT CRASH" screens since the dual-core 0.6.x builds):
- MENU > SYSTEM > CPU 2 CORES / 1 CORE and CPU CLOCK 360 / 320 MHZ (settings byte favorites.factory[15][17],
  editor ids 23, 24), from the next start. A crash or a watchdog hang while both cores ran, or the second core
  given up (misread / no answer / fault), turns 2 CORES off for good (was: until power-off) and says
  "2 CORES OFF AFTER A CRASH - MENU > SYSTEM > CPU" / "CORE 2 FAILED: 1 CORE"; ABOUT: CORES 1 (AFTER A CRASH).
- 320 MHz: curist's fm1-clk320-probe switch (MIT, hal/fm1_clk320.h, unchanged; LICENSES/MIT-fm1-clk320.txt), at
  boot before the scan, core 1, audio and USB; a reset during it: no failed boot, no retry until power-off.
- Crash screen: version, the faulting core and how many ran, a short code (cpu_safe.c crash_code) and the five
  numbers labelled (VEC PC EMU DBG RETS, same order as every older screen). The last crash (or watchdog hang) is
  logged as 32 characters in the settings record (SLICE's retired favourites row 13): MENU > ABOUT > LAST CRASH,
  the editor's settings backup, console `crash`. tools/crash_decode.py maps a photo's numbers to functions (ELF).
- Fixed race: every flash erase/write/read turns XIP off with IRQs off; the 48 kHz USB resampler job (0.8.9)
  runs on core 1 past the audio ISR, so a core-1 fault then would fetch the vectors from a disabled flash.
  irq_save now parks core 1 first (fm1_mc_park, FL_PARK hook).
- One core: the load governor's budget at 55 % (was 65 %) so peaks have room without core 1.
- MENU > AUDIO > LOAD (was SYSTEM's; a bottom tile holds 7 rows), RAMTEXT 1 KiB larger (from the pool's spare).

Crackle since 0.9.10 (owner's unit: 0.9.9 clean, 0.9.10/0.9.11 up to 94 % load on every output, host counts equal):
- 0.9.9 -> 0.9.10 changed no sound code and left the RAM code byte for byte, but the +6 KB of new drawings came
  before the engines in the image: every engine render (flash/XIP, shared cache) moved +6178 B (analog +9414)
  while the effects, master and ISR stayed put. Now everything an interrupt reaches (347 functions, 244 tables)
  is placed first in name order (build.py audio_sections, app.ld .text.a.* / .rodata.a.*): UI changes can no
  longer move it (verified: this commit's +2.3 KB of UI moved the renders by 48 B, sound-side edits). Same size.
- TIMER5's USB refill (0.9.10, every 10 kHz tick, also nested in the render): no SIE poll for 0.6 ms after a
  packet is queued (it cannot have left yet): ~4 polls a ms instead of ~10. tests/target_budget.py watches
  ep4_tx / ep4_fill.

Image 578540 B (+2348 over 0.9.11). ./build.sh && tests/run_tests.sh: ALL HOST TESTS PASSED (new
tests/cpu_safe_test.c; settings, ui, editor tests extended).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-18 20:40:33 +00:00