Commit Graph
380 Commits
Author SHA1 Message Date
Claude 3ed85a96d7 V10.16: EUCLID's VARY in turns; SEQ > MUTATE
- VARY (EUCLID melodic KNOB 4, MODES' VARY on a kit): above 0 the pattern is
  four turns of the cycle (as many as fit in 64 steps), each moved anew
  (A A' A'' B: the first a third of VARY, the last half as much again, a kit's
  last turn ending in rolls on the snare and hats). Hits move one to three
  steps; HITS stays exact in each turn. A melody's later turns keep the first
  turn's degrees hit by hit or take new ones, by VARY. VARY 0: one turn.
- SEQ > MUTATE (EUCLID . MODES . MUTATE, ids ID_MU0 0xE4..): EVERY OFF 1 2 4 8
  16 bars, AMOUNT, MODE ORBIT (from the anchor) / DRIFT (from the last) /
  PULSE (a mutation and the anchor by turns), WHAT GROOVE (a new seed) /
  RHYTHM (+ HITS or DENSITY, ROTATE) / FEEL (+ the MODES, VARY) / ALL.
  ui_euclid.c eu_tick (every UI frame): playing, not in a song's chain, the
  bar's last beat (seq.c bar_n, beat_n, beat_pos), the pattern new from the
  next bar; no UNDO point. The anchor (eu_z, the settings vary .. l[]) is
  what is dialled: any EUCLID / MODES knob, OCT+ / OCT- there, EVERY on. On
  MUTATE OCT+ mutates now, OCT- returns to the anchor. A DRUM-X lane picked
  mutates alone. The ring's corner: MUT n, the bars to the next.
- MUTATE's hint: EVERY: MUTATE ON THE BAR / OCT+ MUTATE  OCT- ANCHOR.
- Tests: ui_test test_eumutate (the turns on a kit and a melody, MUTATE on
  the bar, once a bar, none stopped or in a chain, ORBIT / DRIFT / PULSE,
  OCT+ / OCT-); the SEQ chain's tests and the 14 tasks (+1) for the page.

App 567,540 B of 584,336 (16,796 B free); RAM .data+.bss 95,820 B.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 21:36:11 +00:00
Claude d9f63ad05d V10.15: VOICE's English dictionary in the Bluetooth segment
docs/BLE_FEASIBILITY.md section 10.

- LY_EN_DICT (13,346 B) and LY_EN_IDX (524 B) in the segment (gen_lyrics.py
  emits LY_DICT_SEC; sing.c makes it .btapp.rodata in the firmware), inside its
  CRC-32.
- The segment is checked in fm1_main before felucca_init (whose sing_init reads
  the dictionary), under the splash: the plain XIP window, the CRC-32;
  sing.c ly_en_ok from it. The reads (sy_en_find / ly_at only: the main loop,
  and the audio for a word not resolved there) are plain XIP data reads, as of
  the app's flash.
- Without the segment (NO SEG): sy_en_find returns before any read; English
  words by the letter rules (sy_en_rules), the generator's too; VOICE sings on.
- tests/voice_test.c: without it, all 2,095 words exactly as the rules read
  them, sing_init again; with it back, the dictionary's.
- tools/audio_layout.txt repinned (FELUCCA_REPIN=keep).

App 567,760 B of 584,336 (16,576 B free); RAM .data+.bss 95,564 B; pool spare
9,536 B; segment 47,128 B (12 of 18 sectors).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 21:18:18 +00:00
Claude 2abf321ecc V10.14: PROX, the Bluetooth proximity source
docs/BLE_FEASIBILITY.md stage 2 step 6 (section 9 added: as built).

- The RSSI word of every good packet on the link (ble_hw_wl82.c hw_rx_service:
  one hook, BLE_HW_RX_RSSI) into a 16-word ring in the segment (bt_seg_rssi).
- bt.c bt_prox_step (main loop, in the segment): level = (w & 63) + (w >> 8 &
  63), median of five, one pole (~50-70 ms); held without packets; eased to 0
  (~0.3 s) without a central or with BLUETOOTH OFF. FAR / NEAR in
  favorites.factory[6][22..23] (always 0 before: not calibrated, PROX 0), mapped
  to 0..1, clamped, either direction.
- mod.c MS_PROX ("PROX" after NOISE, unipolar): every SRC list, the web editor.
- MENU > SYSTEM > BLUETOOTH ON (radio running): OCT+ opens PROX's page (a meter,
  %, the level and the raw word, FAR / NEAR); OCT- stores FAR, OCT+ NEAR; SELECT
  back. The lens keeps the menu's tabs and cards for it (ui.c lz_on / lz_fam).
- ABOUT's AUDIO LOAD block in the segment too (about_load).
- tools/build.py: FELUCCA_REPIN=keep (the order recorded before, addresses anew:
  the sound stays within ~0.7 KB of V10.12's instead of the compiler's new order
  moving the engines up to 37 KB); a REPIN records the sound's tables after the
  UI's left .rodata. tools/audio_layout.txt so repinned.
- Tests: ui_test (PROX's level, page, calibration, map, outlier, gap,
  disconnect), mod_test (PROX on CUT), ui_render (menu_prox, menu_prox_off).

App 581,616 B of 584,336 (2,720 B free); RAM .data+.bss 95,564 B; pool spare
9,536 B; segment 33,260 B (9 sectors).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 21:11:10 +00:00
Claude 4a33ce2e3b V10.13: BLE-MIDI in/out
docs/BLE_FEASIBILITY.md stage 2 step 5 (section 8 added: as built).

- In: what a central writes, decoded by the stack (ble_midi.c), goes into the
  one MIDI input ring as USB's does (firmware/bt/bt_midi.h bt_midi_accept:
  channel messages, F8 FA FB FC; no SysEx), source 1 = USB: notes, CC, PC,
  bend, CLK USB, LEARN, ROUT, MIDI MAP alike. src/bt.c bt_midi_rx enqueues with
  the interrupts off (the BLE interrupts at priority 2 are preempted by TIMER5,
  the ring's other producer). No change to the sound's code for input.
- Out: usb.c midi_out_event (everything MENU > CONTROL > MIDI OUT lets out)
  also fills bt_oq (64) while a central listens; the stack packs it each
  connection event (header, timestamps from TIMER4, running status). The sound's
  code moved 64 B (tools/audio_layout.txt repinned).
- Flash: the app's cold constants / code can live in the segment (bt.c
  BTAPP_RO / BTAPP_FN, app.ld .btapp.* inside the segment's CRC-32), checked once
  at power-on (bt_boot, after the splash). MENU > ABOUT's THE PROJECT, CREDITS
  and LICENSES moved there; NO SEG: ABOUT without them.
- MENU's overview tiles (the slide between tabs): a bottom tile shows seven rows
  (SYSTEM's eighth, from V10.12, ran off the panel: 595 ui_render lint findings).
- Tests: tests/ble_midi_test.c (fm1-base's codec test, credited in LICENSING.md),
  tests/bt_midi_test.c (packets as apps send them, the out ring and its packets),
  tests/ui_test.c (ABOUT's lines); run_tests.sh runs the two new ones.

App 582,140 B of 584,336 (2,196 B free); RAM .data+.bss 95,564 B (+284); pool
spare 9,568 B; segment 30,660 B (8 sectors).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 20:35:32 +00:00
Claude 9f0a4d81c9 V10.12: MENU > SYSTEM > BLUETOOTH (BLE-MIDI peripheral in a segment at 0xEA000)
docs/BLE_FEASIBILITY.md route C2, stage 2 step 3 (section 7 added: as built).

- firmware/bt/: Optimist's BLE stack (Henri David; the hardware-tested copy in
  charlesvestal/fm1-base bt/ble 4039a8b, GPL-3.0-only OR MPL-2.0, unchanged,
  headers kept) and bt_seg.c, its glue, built as a unit of its own. Peripheral
  only: advertises "JIANT FM-1" with the BLE-MIDI service UUID, connectable; no
  scanner, no central, no SMP pairing, no LL encryption, BLE_DIAG 0, 27-octet
  PDUs (as Melodee). MIDI is not routed yet (dropped / nothing sent).
- hal/fm1_ble.h, fm1_ble_rf.h: Melodee's (Kerem Kilic, GPL-3.0-only: the
  iterative start-up replay, the crystal ramp's burst in .ram_text);
  hal/fm1_rf_cal.h and ble_rf_tables_v15.h: felucca-bsp's (Apache-2.0).
  hal/fm1_irq.h: FM1_IRQ_EXTERN for the second unit (the crash record and the
  fault entry stay the app's).
- app.ld: BTSEG at XIP 0x020E6000 = flash 0xEA000 (72 KiB) for the segment's
  header + code + constants (27,344 B, 7 sectors); its RAM in the pool (3,336 B)
  but the 1,508 B baseband block (the radio's DMA) in .bss; .noinit.* after
  .noinit (no record moves). The PC guard's window reaches _bt_end.
- tools/build.py: compiles bt_seg.c, writes build/bt.bin (header: magic, length,
  CRC-32) and the same length / CRC-32 into the app's bt_want; refuses
  initialised data in the segment and a ramp burst outside .ram_text; the
  package carries bt.bin; the layout recorder ignores the segment.
- src/bt.c: MENU > SYSTEM > BLUETOOTH OFF (default) / ON, saved in TRIO's
  retired favourites row ([6][24..31]: a mark, ON, the static random address
  made once at the first start). ON only while stopped ("STOP FIRST"), at once
  or at power-on when saved; the value reads ADV / CONN and the connections since
  power-on, NO SEG (segment missing or of another build), FAILED. OFF stops
  advertising and closes a link. Boot guard: bt_crumb (.noinit) set across the
  start; a reset in it, or a crash / watchdog reset while it ran, turns it OFF
  at the next power-on with a message.
- src/bt_hw.c: the plain XIP window set (fl_plain_window_init, JIANT never set
  it), the segment's header and CRC-32 checked, then the start with the
  interrupts off, the second core parked and the audio buffer silent: the
  vectors (IRQ 45 / 29 at priority 2, below ALNK0 3 and TIMER5 4), the live
  calibration (records 106-108 the SDK board's constants, 187 measured), the
  stack, advertising.
- MENU > ABOUT's credits, LICENSING.md, LICENSES/MPL-2.0.txt: Optimist, Melodee,
  felucca-bsp, JieLi.
- tests/ui_test.c: SYSTEM has 8 rows (31 in all); the BLUETOOTH row, STOP
  FIRST, the saved bytes, NO SEG on the host, the boot guard.
- tools/audio_layout.txt: repinned (the UI code before the sound grew).

App 584,208 B of 584,336 (+1,096 B, 128 B free); RAM .data+.bss 95,280 B
(+1,524); pool spare 9,568 B (-3,360).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 19:33:17 +00:00
Claude bfc19bed5d Update loader: install a Bluetooth segment (bt.bin) at 0xEA000
- tools/fm1pkg_make.py: an optional third UFW entry, "bt.bin" (type 200), after
  ota.bin (whatever reads the first two finds them where they were); checked
  for its header ("JBT1", its length) and for update-record look-alikes at
  every 4K - 256 slot, as the app image is.
- firmware/loader/ldr_core.c: with that entry, the segment is checked in step
  2b with the rest before anything is erased (the entry's CRC16, the header's
  magic, a CRC16 per sector, the last sector's tail 0xFF), then written after
  the app area at [0xEA000, 0xEA000 + len) sector by sector, skip-if-equal,
  verified (the app area's per-sector code, now ldr_sector, shared). A package
  without one leaves the region as it is. The record sweep already skips
  0xEA000..0xFBFFF (V10.11).
- tests/ldr_test.c: the segment written and equal to bt.bin, a damaged one
  refused with nothing erased, writes allowed in [0xEA000, 0xFC000).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 19:33:17 +00:00
Claude 8bc03cd85b V10.10: keep the radio's calibration; VM_READ for the BT check
- Update loader: a stock update record found in 0xE7000..0xE9FFF (the JieLi VM:
  the radio's RF trims and the Bluetooth address, the record at 0xE8F00) no
  longer erases the whole sector: it is read, erased and written back but the
  record's last 256 B (a page at a time). ldr_test checks the VM is kept.
- Editor command VM_READ (80), read-only: 256 B of 0xE7000 + 256 x i (i < 48)
  as nibbles, for web/btcheck over Web MIDI (Android Chrome has no USB serial).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 18:10:01 +00:00
Claude fd726bb5aa V10.8: testers' fixes (GEN OFF parts, GEN genre kept, step VEL, dotted delay, less pitch wobble, SONG PLAYS message)
- GEN: BASS / CHORDS set OFF stay off (the "never fewer than two voices" rule
  now only fills in parts left on AUTO).
- GEN keeps the GENRE picked between visits (was EXPLORE each time it opened).
- SEQ > STEP KNOB 4 is VEL: 1..127 (a turn stops at 127), then ACC, SLD, A+S.
- Delay TIME: 1/4D, 1/8D, 1/16D, appended (stored values unchanged), placed by
  length in the knob's order.
- Generators: the random macros never route to PITCH; EXPLORE's pitched delay
  1 in 10 and octaves only, less glide / vibrato / detune; the FX dice's
  pitched delay 1 in 10, octaves.
- "STOP TO EDIT" now reads "SONG PLAYS: STOP IT TO EDIT" (the cause: a song or
  quick chain playing).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 16:03:14 +00:00
Claude 6398cb700d V10.8 wip: GEN parts OFF stay off, GEN keeps its GENRE, STEP KNOB 4 VEL, delay dotted times
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 15:53:53 +00:00
Claude 973c70e958 V10.7: EUCLID HITS exact; REC held alone = UNDO / REDO; kit dice always a beat
- EUCLID: VARY only moves hits a step now (it added a pickup and dropped
  some: HITS 3 sounded 4); HITS is the number that sounds, drums and melodies.
- REC held past HOLD and let go with nothing else touched (no key, knob,
  button, OCT): UNDO; held again: REDO. With anything else used it stays the
  REC layer as before; a tap still arms.
- SEQ + SELECT on a kit: a throw with almost no hits (AMBIENT's energy) is
  thrown again with another map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 14:48:34 +00:00
Claude 47eb558240 V10.7: EUCLID ALL on a kit, a lane alone; EDIT + PRESETS jumps engines; kit dice fix
- SEQ > EUCLID on DRUM-X: LANE starts at ALL, where DENSITY (1..8), STEPS and
  ROTATE make a whole usable kit (kick, backbeat snare, hats with the open one
  choking the closed, sparse percussion; ROTATE turns the kick and percussion).
  A lane picked writes that lane alone; the other lanes stay as they were.
- EDIT held + PRESETS: the first sound of the next / previous engine (not
  during a MOMENTARY tweak).
- SEQ + SELECT on a kit: a genre without drums (NEO CLASSIC) or AMBIENT's
  sparse map gave an almost empty pattern; it now picks a map that plays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 14:13:13 +00:00
Claude 37ef39bbfe V10.6: SEQ > EUCLID and MODES in MUTATE's place; MUTATE and SEQ TOOLS' RANDOM COOK BEAT gone
EUCLID (ui_euclid.c): KNOB 1 HITS, 2 STEPS, 3 ROTATE spread the hits evenly;
KNOB 4 a DRUM track's LANE (each of the eight its own euclid, the pattern
their least common length up to 64), a melodic track's VARY. MODES: four
amounts added to what is generated: DRUM ACCENT GHOST RATCHET VARY, melodic
MOTION HARMONY OCTAVE SLIDE. VARY loosens the even grid (hits a step off
towards the offbeat, the second half answering the first, pickups, a hit
left out; notes held over the gap). A melodic track's notes: its SCL, else
the key the other tracks' notes fit best (FROM Tn), else a NEW key of the
seed; the register kept from the first turn. Turning writes the pattern
again (an UNDO point per gesture); OCT+ a new variation, OCT- the one before.
The page draws the pattern as it is: a ring of its steps, the kit's lanes or
the key and the notes.

Gone: MUTATE (its engine, anchor, REVERT, GLO A4 FREEZE / B4 REVERT ALL, SEQ
D5 REVERT, HOME's mutation flash, GEN's MUTATE), SEQ TOOLS' C4 RANDOM, D4 COOK,
E4 BEAT and C5 lane RANDOM. Flash 3492 B free (was 20), the pool 3.8 KB more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 13:15:02 +00:00
Claude 512358b4dc V10.5: automation thinned into holds and RAMPs (more fits in the 64)
- A record can be a RAMP (bit 13 against the sign, unused until now: old
  projects read as before): the value glides step by step from the record
  before (none: from step 0 and the sound's value).
- What a recording drew is thinned in the main loop: at the stop, and while
  recording once over 56 of the 64 are used. From each record kept a stretch
  goes as long as it holds its value or runs along a line (within 1/32 of the
  range): a hold or a RAMP; a last record repeating the value goes. Locks and
  the DJ FILTER are never touched. A 64-step sweep: 2 records.
- AUTO LIST shows RAMP as a kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 11:24:04 +00:00
Claude f57f26f535 V10.4: ARRANGE and TIMELINE: OCT- deletes the row picked
OCT+ adds a row, OCT- now asks DELETE ROW? for the one picked (OCT+ deletes,
OCT- keeps it), as TOOLS' DELETE ROW; stopped only. Was: OCT- went HOME.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 05:25:19 +00:00
Claude c5cba2e681 V10.2: TIMELINE's lanes apart again; SAVE composes first
- TIMELINE: the 2 px black line between lanes back (V10.1 had removed it with
  the gaps between rows); only the rows touch.
- SAVE's chain: SONG (TIMELINE, SECTIONS) . PROJECT (PROJECTS, ARRANGE, TOOLS)
  . SOUND (USER, PRESETS). SAVE from HOME at power-on opens TIMELINE; the
  page left still comes back (USER from elsewhere still armed: SAVE . OCT+ .
  OCT+). Tests follow the new order (the panel race: 106 -> 108 actions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-31 00:12:56 +00:00
Claude b0c884d278 Renders: every V10 page the interactive manual names; nav map reads 'V10.1'
ui_render gets pg_* scenes (by title, on the engine they need) for the pages
that had no screen; gen_nav_map's version pattern takes the V line's 'V10.1'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-30 22:14:15 +00:00
Claude e71db3990b V10.1: SONG lane labels inside their card; TIMELINE screen in the renders
The SEC / T1..T6 labels started 2 px left of the graph's card (lint: 'spills
out of its cell', on ARRANGE and TIMELINE); they start at x 5 now. ui_render
gets a save_timeline scene (a track from another section, a mute, HALF, THIN).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-30 22:06:05 +00:00
Claude fe6523af5e add15-beta6: the M-UPGRADE entry takes M-VAVE's official V15 and V16 packages
M-VAVE's V16 (2026-10-21) keeps V15's update loader but has another flash
head (its own SPL, 320 MHz, power rails). The entry only let the official
loader in when the package's head equalled the device's, so a JIANT FM-1
installed over V15 refused V16 (-5, nothing written). It now also takes a
package whose head is V15's or V16's, by two fingerprints (CRC16 + FNV-1a
over the 16 KiB head): JIANT -> official V16 straight from the web
installer (Return to official) or M-UPGRADE. Any other head still -5.

ota_test: an official package over a device with another head: V15 / V16
taken, a head changed by one byte refused, our own loader unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-30 19:34:28 +00:00
Claude 3f111e133b add15-beta5: SAVE > TIMELINE (was ARRANGE 2): the song as lanes
The song left to right, its bars the width: a lane for the rows (SEC: the
row's section and bars) and one per track (FROM, VAR). A track that follows
its row is dim, one from another section bright with its letter, a muted
one an empty frame, a variation its short name. KNOB 1 the row, KNOB 2 the
lane, KNOB 3 / 4 the lane's two values; a playhead while the song plays.
The same data as beta4 (song index version 4): nothing to convert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-30 14:40:20 +00:00
Claude 94e416b894 add15-beta4: ARRANGE 2's VAR, a song row's variation of each track (and its mute)
KNOB 4 on SAVE > ARRANGE 2 picks a track's variation for that row only:
MUTE, THIN, FILL, HALF, REV, SHIFT, OCT+, OCT-, VAR 1..4 (seeded by song,
row and track: the same row always plays the same). Applied as the row is
staged (song_main.c row_vary); MUTE over the row's scene. The graph shows
the row's six tracks (their section's colour and letter, their VAR).

The song index goes to version 4 (+512 B, a uint32_t per row, 4 bits a
track); versions 1..3 in flash and version 2/3 backups load with no
variations. The variation scratch buffer lives in the pool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-30 13:31:02 +00:00
Claude 59bca1a334 add15-beta3: SAVE > ARRANGE 2, each song row's tracks from any section (Skiff style)
A song row can take any track from another of its song's four sections:
KNOB 1 the row, KNOB 2 the track, KNOB 3 FROM (the row's own, A..D), KNOB 4
left resets the row; MIX shows where the six come from. A track brings its
sound, steps, FM6 patch and automation (DRUM its kit); the row's section
keeps the globals (punch-in lane, SLICER). Quick chains and live jumps play
whole sections as before.

The song index goes to version 3 (+512 B: a uint32_t per row, 3 bits a
track); version 1 and 2 indexes in flash and version 2 backups load with
every track on its row's section. Row add / delete / SONG REC / CLEAR SONG /
NEW PROJECT keep the map in step. Tests: persistence (the mixed staging,
v2 migration), backup (v3 and v2 restores), startup (the map through boot),
ui (ARRANGE 2's knobs, the SAVE chain with the page).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-30 12:38:32 +00:00
Claude 5386bf5ee5 add15-beta2: the USB name "FM-1" (the loader "FM-1 Update"), on string index 5 so Windows reads it afresh: the apps made for the FM-1 (FM1 Swap, Firmware Hub) find it, as Melodee's "Melodee FM-1"; usb_desc_test and install_test with the name; JIANT Stems opens on "FM-1" too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-30 09:43:48 +00:00
JUAN JIANT 857c86f991 test(add15): explicitly save the section before checking persisted boot playback 2026-10-29 08:57:34 -03:00
JUAN JIANT 3b99ab5a04 build(add15): pin validated layout and verify normal build plus fresh/saved boot 2026-10-29 08:48:52 -03:00
JUAN JIANT 161d0790ac feat(additive beta): sequencer controls, SHIFT/CHORD, STRING MOVE and acoustic drum macro 2026-10-28 23:44:22 -03:00
JUAN JIANT 42947e9b4a feat(sequencer): port whole-sequence clipboard to ADDITIVE beta 2026-10-28 11:51:25 -03:00
JUAN JIANT 67cab79ab3 fix(controls): beta-only REC/PLAY independence and consistent SEQ/global cursor navigation 2026-10-28 10:12:54 -03:00
JUAN JIANT 3fbd7be626 feat(rec): accessible undo and recording quantization for ADDITIVE 2026-10-27 16:34:36 -03:00
Claude 30f05b3763 p10: STRING's FDBK, a guitar's feedback: EXCITE FDBK plucks, then an amp plays the string back into it (the BODY page GAIN DIST SPEAKR BLOOM; a soft clip the loop's limiter, its DC tracked out, SPEAKR's tap on the line: no memory more); presets FEEDBACK and SHOEGAZE; the layout re-pinned (616 B free); v0.9.9-par10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-26 23:06:55 +00:00
Claude f8b5089011 p9: ui_test: the FX chain of 18 (EQ last after TAPE), LOAD ECO's 13
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-26 15:19:11 +00:00
Claude 9160f1355a p9b: TAPE and WOW stronger at 100 (the owner: too faint): the drive x10 (x4), the highs darker, the bump x2; the wow x1.6, the flutter x3 (~105 samples of the 128 line)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-26 15:16:34 +00:00
Claude 9e2f2b7b0a p9: the master's 4-band EQ (FX > EQ: LOW, LO MID, HI MID, HIGH, -12 .. +12 dB; one-pole bands at ~200 Hz / 1 kHz / 4 kHz, ~10 multiplies a sample and channel, flat: not run), kept with the project; v0.9.9-par9
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-26 14:54:23 +00:00
Claude de3af315ba docs: the hiss on a pure sine (SNR 76 dB, ~12.5 bits, before the fader); the suspects for next week
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-26 03:21:45 +00:00
Claude 949ec3ce4e docs: the hiss, not the part's filter (CUT changes nothing); the two tests on the device; hiss_probe CUT / RES
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-26 03:20:08 +00:00
Claude ed48966a9e docs: the hiss measured (SNR ~58 dB under a held ANALOG note, mostly before the fader; reverb +9 dB on quiet parts); tests/hiss_probe.c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-26 03:18:44 +00:00
Claude ee63cee99e p4: stems_test on EXPLORE seeds that still make dense songs (11 for 3; T1 playing in the silence test)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 22:00:52 +00:00
Claude 894e6cf526 p4: the generator relaxed for playing: drums in front, leads ~2 dB under the bass and 4 dB down on gen3's, EXPLORE sparser, EBM's bass in 8ths with body and no lead, TECHNO minimal
The owner: EXPLORE's pieces far too busy, the leads louder than the drums, EBM's bass a fast pluck under a lead,
TECHNO should be a minimal four on the floor. The levels: drums 110 (104), bass 114 (118), chords 100 (104), arp 96,
lead 92 (112), the genre's lift at half on the bass and chords only: the drums' share median 78 % (gen3: 60 % at
most). EXPLORE: ghosts 0..1, fills up to DROP, swing 8..34, human 0..45, the amounts lower, the arp out 45 %, the
lead 40 %, the chords 25 %. EBM: PUMP8 / NITZER1, gate 95, arp 20, lead 0. TECHNO: OFFBEAT / PEDAL, no fills, bass
60, chords 25. HARD TECHNO: lead 0, arp 20. gen_test: the drums' LEVEL 112 at most, their share 96 % at most.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 21:40:15 +00:00
Claude d7b95dea0e p2b: a crash no longer turns 2 CORES off (snd8f's way: one core this power-on only); v0.9.9-par3
0.9.12's fallback (p1) left a unit on one core after a crash, three power-ons or for good: half the sound's room,
clicking under par1 and par2 where snd8f (always both) did not. The instruction counts are snd8f's within 2 %
(cpu_vg, every section). Now a crash is logged (ABOUT) and the cores stay; the second core given up while it plays
is this power-on only (fm1_mc_bar, as 0.6.71 .. snd8f); 1 CORE is MENU > SYSTEM > CORES's by hand. A unit left on
one core by the old fallback (CPU_AUTO) gets both back at its next power-on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 18:23:24 +00:00
Claude 692392d6de p2: VOICE draws its vocal tract alive ("Tracto vivo", main 092a379): a glowing tube in a ghost of a head, the jaw down
As main's: framed close about the mouth and the neck, the head's outline a ghost, the tract a two-walled glowing tube
(lips, palate, velum, pharynx, glottis), glottal pulses travelling up it (through the nose for m n ng), the vocal folds
as a V, waves leaving the mouth, a nod at each vowel's onset; the jaw turns downward about the condyle. The CT's tables
and scan line gone; vx_curve's arcs shared (vx_bez).
Fixed on the way: vx_curve's point buffer was main's 16-point one (2 * 49); seq-v2's STRING creature draws a closed
curve of 24 points (vx_string, its silk): a stack overrun (ui_render under ASan: stack-buffer-overflow in vx_bez); now
2 * (1 + 3 * 24).
Tests: ui_test's tract check (main's), ui_render scenes vx_tract_* (0 lint; the whole ui_render clean under ASan).
MANUAL EN / ES, README. UI only, nothing in the audio path. Flash +812 B (574988 -> 575800 B, 8536 B free). The layout
re-recorded (FELUCCA_REPIN=1: UI code between the sound's pinned runs grew), with item 2's repin one device check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 16:51:25 +00:00
Claude 7c9754d1b3 p2: GLO > LIVE, the six sequences in parallel with live modifiers (MANO + RIELES), main 0.9.11 on seq2
As main 5c5e976 / 0a84807 with its fixes to 0.9.18 (43cda5f: no track picked, ctz(0); 0f5e834: LIVE RATCH inside its
step, seq-v2's step_parts already so): a first GLO group LIVE (LIVE . MIX . GLOBAL . SYSTEM . COMPS; GLO still opens
MIXER at power-on, NAV_DEF), MANO (the keys a board, song.grid 3) and RIELES (six rails, playhead, ghost, window).
seq_live.c / ui_live.c from main; seq.c hooks as main's (live_q before the tracks, live_adv in seq_tick, the next step
as a JUMP, THIN in step_rolls, RATCH in step_parts, OCT in seq_step, recording at the ghost's place). On seq2:
- the FX layer's 1/2 TEMPO and LOOP 3 / 5 / 7 (pfx.c) are LIVE's RATE /2 and a LOOP of the last N steps now (main 0.9.18
  did the same for 1/2 TEMPO): seq_tick's own halving, its LOOP branch and pfx_resync gone, LIVE's ghost brings the
  track back where it would be; the PLAYHEADS follow a slower RATE and skip what they missed when back in phase
  (live_heads, snd6's for 1/2 TEMPO, generalised); a faster RATE leaves them in time. perform_test unchanged, passes.
- a LOOP's window wraps past the pattern's end (LOOP 3 on step 1: 15 16 1); seq-v2's RANDOM held stays its own.
- the components (seq2d) keep acting on the step that sounds; a component's JUMP first, as main.
- system_init clears LIVE through live_reset (seq_live.c), so the tests without the UI link.
Not saved; nothing in the audio render. Tests: tests/live_test.c from main (without 0.9.14's macros) + the PLAYHEADS
under /2 and RETURN; ui_test's GLO chains (LIVE first, 9 pages, NAV_MAX 24 kept); ui_render scenes live_* (0 lint);
cpu_vg seqtick/plain 68, seqtick/live 85; run_tests.sh runs live_test. MANUAL EN / ES § 11 and the GLO tables, README,
the cheat sheet's text.
Flash +6676 B (with the dice's room given back: 568312 -> 574988 B, 9348 B free); RAM code -204 B (pfx_resync out of
RAM); .bss +24 B; pool spare 10944 -> 10688. FELUCCA_REPIN=1 (seq_tick, seq_step, keyboard_block, rec_*, pfx_block,
events_block): needs the device check (load, crackle) as every repin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 16:43:37 +00:00
Claude a10f253f03 p2: SEQ + SELECT dices with GEN's generator on the song's harmony; song_dice.c's own generator gone (main caab8fc), -5712 B
dice_seq (gen.c) writes the track's part with gen_role: on the piece's plan where a GEN piece plays in the track's key
(its role in the piece kept, TEXTURE aside), else on choices made up for it (gen_pick, factored out of gen_make with the
same calls in the same order: every GEN piece bit for bit, 135 fingerprints compared). Never what the track played
before the press (90 % of its steps, over its root) nor one of its last four: another stream, and from the second try
the role's figure from the whole generator (a lead's way, an arp's order, the chords' play, the drums' family), the
bass's archetype moved (main 0.9.18's gba_vary, for the dice only: GEN's pieces unchanged).
song_dice.c keeps the helpers GEN shares (roles, dhold, euclid, dname_has, dlevel, dlen ..., CPU TEST); DSTYLE, its
drum bars (dice_bars.h empty, gen_drum_maps.py as main's), dice_drums / bass / pads / lead / arp / texture / sound gone.
The old generator's statics and small constants kept as room (dh_r*, DH_C*): the merged statics' and constants'
places are recorded; dsq_last in .bss.dice. No repin.
Measured (scratch harness, 20 presses a genre on every genre's piece; tests/dice_metrics.c from main): lead strong
steps on the chord tones 64 -> 88 %, steps 14 -> 47 %, leaps past a fifth 12.5 -> 2 %; bass on chord tones 65 -> 93 %;
the same as the press before 0-1 % (was 0-2 %); near one of the 8 before: lead 10 -> 10 %, bass 9 -> 27 %, arp 11 ->
49 % (an arp on the piece's own chords), drums 3 -> 10 %. MANUAL EN / ES.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 16:14:43 +00:00
Claude 72fbb9e12e p1: ui_test MIDI LEARN leaves the favourites and the frame phase as it found them
With FELUCCA_FM4=1 (DIGITAL kept, its stars in the row MIDI LEARN uses) the test now puts the favourites back, and
ends on the frame phase the later tests ran at: one frame less and HUD's H2 found 21 px of HOME's lazy panel
(200,65 .. 207,68) off a full redraw, a case that depends on the frame phase alone (2..8 extra frames all pass),
left to look into.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 15:47:08 +00:00
Claude 6f1a67d50b p1: merge origin/seq-v2 (07cfaf7: nav_list's buffer NAV_MAX 24, the crash entering FX)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 15:08:12 +00:00
Claude 2ddb9a2f91 p1: sound types and PRESETS by type (main 329aff5), STRING and ADD presets tagged too
Every factory preset carries its sound type (core.h PT_BASS .. PT_FX, TAG) in preset_t.mono bits 1..4, MONO kept in
bit 0 (PR_MONO; no format change, nothing stored changes): main's tags by preset name, seq-v2's STRING (NYLON ..
METAL STR) and ADD (ADD ORGAN .. SUB ADD) and DRUM-X's kit tagged here. PRESETS' LIST (KNOB 4) ALL FAV BASS LEAD
PAD KEYS PLUCK BELL VOX DRUM FX, no wrap: a type lists every engine's presets of it; kept with the settings in
favorites.factory[15][18] (0 in older ones: ALL / FAV as they were). GEN's EXPLORE keeps a bass's sound off the
other roles by its type (seq-v2's generator picks the other sounds by its recipes).
Tests: ui_test (every preset typed, every type listed, LIST through its values, the BASS list, the settings round
trip); hostsim / string_add_test / descdump read MONO as bit 0. Goldens unchanged. Flash +280 B. No repin (the
helpers out of line: list_turn, settings_fix15).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 15:08:04 +00:00
Claude 80ed2b4f98 p1: FM6 bank sector guard: 0xE7000 holding another firmware's data is never erased at power-on (main 329aff5)
fvb_home_ours: the sector is this firmware's or empty (its commit record erased, or the bank's header); anything
else (Skiff's pattern bank, "SKB1") reads as no bank, and the power-on never erases it to finish a staged copy;
only a bank the user sends (FM6B_END) writes over it. fm6bank_test foreign_test (Skiff's, garbage; with and without
a staged bank of ours). fvb_boot / fvb_user out of line so fm1_main and ed_handle keep their pinned sizes: no repin.
Flash +84 B.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 14:58:12 +00:00
Claude f642d4cfcd p1: VOICE THEME a name a detent, no crackle on a held note, a blend between detents (main c4c54e9, 03a31f8, 0b7bd69)
- params.c: a value with names (F_INT over a name list) turns a name a detent, onto its middle (VOICE's THEME was
  16 detents a name; LOOP, LOFI WAV#, NOISE LEN the same); name_of shared with param_format.
- voice.c engine_block: the engine's desc asked only for a value that changed (was all 8 of every part, every
  block); a named value dips only on a new name, VOICE's word values (THEME, LOOP) never: a THEME swept over a held
  note dipped at every value, a crackle.
- sing.c: THEME between its detents (automation, a mod) blends its words with the next theme's (the top half).
voice_test: THEME swept over a held note bit for bit, the detents, the blend. Goldens unchanged. Flash +260 B, RAM
code +116 B. FELUCCA_REPIN=1 (engine_block, the generator's word code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 14:55:35 +00:00
Claude fd95915457 p1: LOFI quieter and less piercing, BYTEBEAT above all (main cddd823)
LOFI_GAIN, the voice's level by WAVE on the block's amplitude ramp (BYTE FLOAT -6 dB, PLS SAW NOIS -4.5, WRAM -3,
TRI -1.5); LOFI_SOFT, a fixed one-pole (-3 dB ~7.5 kHz) on the chip waves and FLOAT ahead of the FILTER's CUT;
BYTE's two smoothing poles ~6.3 -> ~4.9 kHz. User presets and old projects with LOFI play quieter and softer too.
Goldens: the 17 LOFI presets and the two mixes with a LOFI part (song/4track_mix, slicer/song_gate_stut), as in
main; nothing else. lofi_render within its target budget. Flash +80 B. FELUCCA_REPIN=1 (lofi_render pinned).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 14:51:37 +00:00
Claude f4e83a1613 p1: DRUM-X held octaves half as fast, twice over (main 924355c, 1eb7444)
DXO_RAT 1 1 1 2 (was 1 2 4 8): OCT +1 REPEAT 1/2, the hit every other step while held (dxo_t.half / ph); +2 REPEAT,
once a step (a roll at the step rate); +3 RATCHET x2; the MIDI bands 82..127 the same. Recorded as heard: the hit on
every step held into (+1 every other one), +3 with its lane's x2. Main 0.9.18's +3 "x4 at the spilled rate" needs
its RATCH spill, which seq-v2 does not have: not ported. drumx_oct_test as main's; MANUAL EN / ES tables.
Flash +36 B. FELUCCA_REPIN=1 (dxo_tick, dxo_on and DXO_RAT pinned).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 14:48:26 +00:00
Claude d15e105c64 p1: MIDI LEARN with MIDI MAP FACTORY / CUSTOM ADD / CUSTOM (main 0.9.12's LEARN, extended)
MENU > CONTROL > MIDI MAP (editor id 25): FACTORY the fixed CC map alone, as ever (the default; 0 in every older
setting); CUSTOM ADD the learned CCs too, a learned CC over the factory meaning of it; CUSTOM the learned CCs alone.
MENU > CONTROL > LEARN: SEL TRACK / FIXED TRK arm it when the MENU closes: turn a knob on any page that edits a
track's parameter (knob_cap), then move a controller's CC: learned, fixed to that track or following whichever
track is selected when it comes (per mapping); then the next knob. CLEAR ALL clears them at the MENU's close.
Learning with the map at FACTORY sets it to CUSTOM ADD. Ten CCs, three bytes each, with MIDI MAP in DIGITAL's
retired favourites row (bytes 1..31; its byte 0 the old stars' migration, now the only byte cleared): kept with
the settings and the editor's backup, no project format change. CC0/32, 1, 6/38, 11, 64, 96..101, 120..127 never
learned ("CC64 RESERVED"). midi_control.c (ISR side: midi_learned, midi_cc_set) and midi_learn.c (UI) from main's.
LOAD moves to MENU > AUDIO (as main 0.9.12) so SYSTEM's tile holds its seven rows, and the MENU tiles space seven
rows 7 apart: ui_render's 595 menu_slide lint findings (on seq-v2 before this too) are gone, 0 now.
Tests: ui_test MIDI LEARN (FACTORY, FIXED TRK, SEL TRACK, reserved, ADD over CC7, CUSTOM alone, the settings round
trip, CLEAR ALL), MENU tabs 8 8 7 7; editor_test 26 settings, MIDI MAP id 25, LOAD's tab. Navigation maps
regenerated. Flash +1492 B. FELUCCA_REPIN=1 (midi_control runs in the audio ISR; the MENU's switch tables).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 14:44:21 +00:00
Claude 5f36bb0d7c p1: safe by default: MENU > SYSTEM > CPU CORES, the last crash kept across power-off, both cores back on the third power-on
As main 7180629 / 2a60cc3 / b6b5bfd (cpu_safe.c, tools/crash_decode.py, tests/cpu_safe_test.c), on seq-v2:
- MENU > SYSTEM > CPU CORES 2 CORES / 1 CORE (editor id 23, as main's), beside CPU CLOCK, the same settings byte
  (favorites.factory[15][17]); from the next start. A crash or a watchdog hang with both cores, or the second core
  given up while playing, turns it to 1 CORE (said, with where to set it back); 1 CORE for two clean power-ons,
  both again on the third; a crash again after that: for good, until set by hand.
- The last crash (or hang) kept in the settings as 32 characters ("IL01 2C <version> <PC> <RETS>"): MENU > ABOUT >
  LAST CRASH, the editor's settings backup, the console's `crash`. Main keeps it in favorites row 13 (SLICE's),
  which is ADD's in seq-v2 (snd5): here row 9, PHYS's, retired (its sounds load as ANALOG, nothing reads its
  stars); a record is only read when it parses (old stars there never show).
- seq-v2's crash screen kept whole (SP USP SSP, C2 PC, the bus culprits), with main's short code on its last line
  ("IL-01"); fm1_fault notes the CR_* flags for the next boot (fm1_mc_bar bits 8..15, bit 1: core 1 started).
- Code out of fm1_fault, fm1_main and menu_document into helpers (their room is pinned), fm1_mc_bar_set always
  inlined (fx.c mc_lost is pinned), cpu_safe.c's tables in .rodata.cpusafe. The MENU's switch tables grew with
  the new row (compiler lookup tables in .rodata, before the sound's constants): FELUCCA_REPIN=1.
Tests: cpu_safe_test (in run_tests), ui_test (SYSTEM 8 rows, 28 rows), editor_test (25 settings, CPU CORES id 23).
Flash +1476 B.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 14:16:28 +00:00