Commit Graph
16 Commits
Author SHA1 Message Date
Claude 5abc629b00 Screen mirror: smaller, one frame type, nothing static (as JIANT BYTE needs it)
The same mirror, rewritten to fit JIANT BYTE (its image nearly full, its sound pinned): a fill
is one colour and its runs in the pixel frame (type 1 gone: ~130 B for the whole screen), the
header written in a loop, the reply built in the mirror's own buffer, the 4 s timeout checked
in ed_service. Its state is not static and sits after the pool (app.ld: .pool.mirror after
.pool), so the compiler's merged globals stay as they were. The FM-1's image: 324 B smaller
than the first version, 656 B less RAM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRnhKjiABTzc6Ety3dd
2026-11-23 16:38:36 +00:00
Claude 64ee3b0fa4 Flash: the app slot grows to 0x8EA90 (+2772 B), the region ending at 0x92FFE, no loader change
The encrypted app region (app_area_head block + cfg_tool.bin + the cfg directory) now ends 2 B short of 0x93000,
inside flash.bin [0, 0x93000) that every Felucca/JIANT loader already writes whole (it was 0xFF padding). The loader
binary is byte-identical to 0.9.12's; the package is the same size. fm1pkg_make asserts the region stays inside
flash.bin and that no 4K-256 slot of the image reads as an update record; build.py checks app.ld's XIP LENGTH against
APP_SLOT. ldr_test decrypts the installed app area (app.bin slot, CRCs, region end, 0xFF after it) and checks
[0x93000, 1 MiB) byte-identical but the two record sectors; run_tests installs an app that fills the whole slot with
today's loader, and checks the packager refuses one byte more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-19 00:39:25 +00:00
Claude ebcefb24d2 Merge branch 'skiff-bits' into rel-0912
# Conflicts:
#	README.md
#	docs/MANUAL.es.md
#	docs/MANUAL.md
#	docs/navigation-map.es.png
#	docs/navigation-map.es.svg
#	docs/navigation-map.png
#	docs/navigation-map.svg
#	firmware/src/menu_items.c
#	firmware/src/ui_menu.c
#	tests/editor_test.c
#	tests/ui_test.c
2026-10-18 20:44:36 +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
Claude 329aff53fa 0.9.12 draft: 12 voices with the second core, sound types + PRESETS by type, MIDI LEARN (MENU > MIDI), FM6 bank sector guard, copyright lines
- voice.c voice_cap: VOICES_2CORE 12 while the second core takes parts (fx.c mc_two: CORES 2, not REC at
  power-on, not given up); one core 8, LOAD ECO 6; a track still NVOICE 8 (no RAM). After Skiff by illuminus5.
  cpu_vg: mix/v12 (both cores 3924 instr/sample), mix/v12.c0 (core 0 1949), mix/v12.one (one core, 8 voices 3241);
  regress.c chk_budget_2core; the dual-core equivalence test at one budget (mc_host_v12).
- Sound types (PT_BASS..PT_FX) on all factory presets in preset_t.mono bits 1..4 (no format change); PRESETS LIST
  ALL / FAV / BASS LEAD PAD KEYS PLUCK BELL VOX DRUM FX across engines, saved in favorites.factory[15][18];
  gen.c keeps PT_BASS sounds off the other roles (was a name match). After Skiff by illuminus5.
- MIDI LEARN ported from Felucca 1.5 (midi_learn.c): 10 CCs, 3 bytes each in DIGITAL's favourites row, reserved
  CCs and the standard map refused, any channel, USB and TRS; MENU > MIDI tab (MIDI OUT, LEARN, LEARN CLEAR);
  state in the pool.
- fm6_vbank.c: 0xE7000 holding foreign data (Skiff's pattern bank) reads as no bank and is never erased at
  power-on; only a bank the user sends replaces it. fm6bank_test foreign_test.
- Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) in JIANT's files ("Portions" in mostly-Felucca ones),
  README / LICENSING.md / MENU > ABOUT credits (Felucca, Skiff).
- Docs: MANUAL.md / MANUAL.es.md, README v0.9.12 draft, EDITOR_PROTOCOL.md (tabs), cheat sheets, nav map.

Flash 576192 -> 577712 B (+1520), .data+.bss unchanged, pool +8 B (spare 10528 B).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-18 18:50:07 +00:00
Claude c524e3c45f 0.8.5: merge DRUM-X octaves (ratchet / short / ghost / flam per sound)
Merge drumx-octaves-085 (a05a190, c3435e4) on top of the VOICE words in the new skin.
- editor INFO tags in order J, O (DRUM lane modes, 4F 01 07), Y (LYRIC, the last tag: the web editor reads it at
  the trailer's end); editor_test checks both, the web mock sends both (lanes inside the ratchet caps, Y last).
- README: the status line's DRUM-X note; one 0.8.5 section (VOICE words, DRUM-X octaves, then the skin and lenses)
  with one cost line measured on the merged build.
- app.ld: LOWBUF's comment (undo and the section stage there; the project scratch and the decode tables in the pool).
- tests/ui_render.c: DRUM grid HIT x4 / GHOST, the OCT messages (RATCHET x8, FLAM), COMP TOUCH and ECHO EVEN scenes,
  linted in every palette: the HIT values fit the square cards, the OCT message the header's middle.
- Cheat sheets regenerated.
Image 555928 B of 581564; .data+.bss 88340 of 98304; LOWBUF 18232 of 28672; pool spare 52096 B.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 02:19:38 +00:00
Claude 1a124b8c48 0.8.5: VOICE sings words: ES / EN / JA lyrics, typed, sent or diced, automatable
EDIT > WORDS > LANG (OFF ES EN JA) turns a VOICE track into a singer (src/sing.c): each note sings the next
syllable of its lyric (held note holds the vowel, TIE holds it on, the release sings the coda at the note's
level; legato glides, a chord sings together). LANG OFF is VOICE as before, bit for bit (goldens unchanged).

Articulation per track, block rate: 46 phonemes as formant targets with voicing, aspiration (into the
cascade) and frication (high-passed noise into F4 tuned to the consonant); plosives closure / burst /
aspiration, affricates, nasals, liquids, tap and trill, glides. Spanish by rules, Japanese romaji to morae,
English through a 2095-word CMU-derived dictionary (tools/gen_lyrics.py, BSD-2-Clause notice in
LICENSES/). LYRIC: TEXT (63 chars, NAME screen via OCT+ on WORDS with a KNOB 3 dice, or editor cmd 39
LYRIC), W1-W16 generated phrases from themed banks (306 ES, 272 EN, 169 JA words) as long as the pattern's
notes, S1-S8 scat. Word-mode EDIT values: POS THEME ARTIC SHIFT | BUZZ BREATH Q LOOP (POS lockable /
automatable). Lyrics saved in FUNC's optional 'L' 'Y' block (older projects load without). The VOICE pages
show word, phonemes and a moving vowel chart (sing_view for the CT head). 8 new presets appended.

Cost (on 0.8.4): flash image 498108 -> 540824 B (+41.7 KB; app slot 581564 B, 40740 B free), .data+.bss
84848 -> 85584 B (+736), RAM code +8 B, no per-voice state. The lyric text (6 x 64 B) lives in the pool
(LOWBUF had 608 B free); the project scratch's copy (+384 B) stays in LOWBUF, so the fonts' decode tables
(hc_tab, 1.5 KB, main loop only) move LOWBUF -> pool: LOWBUF 28064 -> 26900 B of 28672 (1772 B free), pool
247584 -> 249568 B (spare 72928 -> 70944 B). CPU: callgrind 4 voices VOICE vowels 1611 -> 1605, words 1743
(ES) / 1726 (EN) vs ANALOG 2314 at 8 voices; worst case song/cputest 3079 and every other section unchanged;
target loop formant_render 312 -> 315, formant_word_render 326 (analog_render 603). New tests/voice_test.c;
project, editor, web, ui_render, cpu_vg and target budget extended (existing entries untouched); ui_test's
LARGE HOME probe reads the old panel row over 16 px (a mote of HOME's moving dust landed on its one pixel
with the new presets' frame count); manuals EN/ES, protocol notes, cheat sheets regenerated, README v0.8.5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 00:00:58 +00:00
Claude 2d255ce6c5 0.8.4: RAM freed: the reverb models' lines shared, main-loop buffers out of .data+.bss
The five reverb models never run at once (a TYPE change fades the old model's block out, the new one starts from
silence; no crossfade), so CLOUD's line (32 KB), SHIMMER's (4 KB) and the ROOM / SPRING pre-delay (4 KB) are one
32 KB union (fx.c rev_x): 8 KB of the pool back. A change silences what the next model reads (rev_line_dirty: all
of it into CLOUD, SHIMMER's part into SHIMMER, the pre-delay's part leaving SHIMMER or CLOUD); the pre-delay skips
the change block from SHIMMER / CLOUD. CLOUD now starts empty when it comes back (its line and its tone state were
kept). FM6 user patches (upf) and proj_wire moved to the pool, the font decode tables to LOWBUF (main loop only,
checked on the IR call graph from both ISRs and core 1).

.data+.bss 93952 -> 84832 B; pool spare 8640 -> 9248 B; LOWBUF 26514 -> 28062 B; RAM code 21580 -> 21640 B; flash
+124 B. Goldens unchanged, target budget identical, callgrind +0.05 %. reverb_test: every model change pair and
three chains, PRE on: no click, silent after. Found, not changed: the delay read wraps at its clamp with MOD on.
Version 0.8.4 (felucca.c, cheat sheets, video captures), README, manuals (EN, ES).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-16 20:40:10 +00:00
Claude 5d61faa144 0.7.0: 46 factory presets, GEN melodies and sounds, HOME closes GEN, CHORD kept over a preset, JIANT everywhere
- 46 new factory presets across ANALOG, PHASE, LOFI, VOICE, WHEEL, NOISE
  and FM6 (appended: stored preset numbers stay; the LOFI browsing order
  and the editor's mirror extended). Every preset played on the host:
  none quiet, none hot.
- GEN: the recipes point at the new presets first (pads, stabs, leads,
  textures, basses); melodies stay in their octave (a leap past a sixth
  takes the nearer octave), the motif follows the chord the nearer way
  and less often, every phrase ends on a chord tone.
- GEN: HOME closes the screen (OCT- still does).
- Fix (community report): browsing presets switched SCL > CHORD off. A
  sound load keeps CHORD, VOICING, STRUM, C.LEN, CHANCE and MUTATE.
- The device is JIANT wherever it speaks: USB MIDI and audio "JIANT FM"
  (manufacturer "Juan Jiant", updater "JIANT Update"), the editor's
  version string "JIANT v..", the splash, ABOUT, CREDITS, the console,
  the crash screen. The web editor, installer and the Python installer
  match both names so older firmware still connects.
- PRESETS card: past 99 the number alone (the total is 3 digits now).
- Memory map: RAMTEXT up 4 KiB (the image grew); user stack 15.75 KiB.
- Docs: README changelog and status, MANUAL EN/ES, cheat sheets.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-15 15:28:24 +00:00
Claude 31b6ce5bd3 0.6.97: GEN: drums less alike, the kit's space, effects by genre, finer sounds, melodies from cells, POST PUNK after Joy Division / New Order, PLAY on the screen
- Drums: a throw takes its closed hats, open hats, rim, cowbell and toms from pools of
  patterns now and then (HAT_POOL, OH_POOL, RS_POOL, CB_POOL, TM_POOL), swaps the snare and
  the clap now and then, adds a kick on a weak step more often; FORM PARTS / SONG: each
  section its own fill (roll, toms, hat roll, drop, linear, kick sixteenths).
- The kit's space: the snare and the clap into the reverb (dx_snd, by the genre's wetness),
  the rim into the delay and the open hat a touch of reverb where the genre is wet; MORPH
  automated over the loop on the drum track now and then.
- Effects by genre: the wet genres' long delay tails with the tape's wobble (FEEDBK 58..80,
  MOD 20..50); the SONG form's punch-in lane: a stutter into the drop (1/8 then 1/16 on the
  build's last beat), the synths an octave up on the break's last bar (pfx_lane_put).
- Sounds: leads not at full sustain (SUS 30..90, DEC 50..85), a late vibrato on half of them,
  a slow tremolo or pan on pads, arps panning on the beat; step components from COMPLEX 30
  up, one to three a track (echoes, octaves, bends, pulses, ratchets), some every other loop.
- Lead melodies: the motif's rhythm from a library of twelve cells that hold together,
  thinned by COMPLEX, instead of onsets drawn one by one.
- POST PUNK after Joy Division and New Order: BA_HOOK2 (Transmission's eighths over root,
  fifth, octave, seventh), BA_BLUEMON (sequenced sixteenth octaves), BA_CEREMONY; DM_JOYDIV
  (the kick syncopated against flat sixteenth hats) and DM_NEWORDER (four on the floor, a
  clap, open hats, toms into the one); pulsed chords, an octave arp, strings, a choir,
  118..148 BPM.
- PLAY on the GEN screen runs and stops the transport (the piece heard without leaving).
- app.ld: RAMTEXT up 4 KiB (the image grew past a call's reach from the RAM code; the user
  stack 19.75 KiB), POOL 4 KiB longer; build.py's bounds with it.
- gen_test: hat rows over eight seeds, the kit's sends, Hook's register and tempo, the
  leads' sustain, PLAY on the screen. Manual EN / ES, README changelog, cheat sheets.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-15 13:30:24 +00:00
Claude 751315ac9e Step components: two a step, WHEN on each, DIV and LEN; ARP SEQ plays the pattern's melody; 0.6.82
COMP 2 gives a step a second component and both play; a TRIG or FILL in either place decides first
whether the step plays. WHEN (ALWAYS, 1:2, 2:2, SKIP) sets each component's loops. RATCH and ECHO get a
DIV (their parts a step/2 .. /8 apart), ECHO goes to x8, and a step's LEN sets the gate of its note or
parts. ARP SEQ follows the pattern's order instead of sorting like NOTES. Projects store the new fields
behind bit 5 of the step's x byte. LOWBUF grows by 4 KiB for the larger steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-14 15:06:14 +00:00
Claude 824d4953db 0.6.78 (experimental): core 0's hottest audio code runs from RAM
mix_block, the FX layer (perf_begin / perf_pre / perf_block /
perf_master), slicer_bus and core 0's own copies of a part's mix and the
buses (mix_part_m0, fx_run0) are copied to RAM at boot (.hot_text, 18 KB):
no flash fetches through the cache the UI and core 1 share. Core 1 keeps
the flash copies (mix_part_m, fx_run; it misreads RAM on some units).

The pi32v2 call reaches +-4 MiB and this clang has no long calls, so the
RAM code moved from 0x01C00000 (out of reach of the whole image) to the
pool's top (RAMTEXT 0x01C6E000); three main-loop buffers (undo, project
scratch, section stage) moved down to LOWBUF. This clang inlines nothing
across a section attribute, so build.py optimises the IR first and only
then puts HOT_FNS in .hot_text: the code is the one it was (sizes and
target budgets unchanged, goldens unchanged). build.py checks the call
reach and the RAM code headroom. FELUCCA_HOTRAM=0 builds it as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-13 18:41:28 +00:00
Claude 6c451aef42 0.6.71 (test build): the second core renders some synth tracks
- hal/fm1_multicore.h: core 1 started at boot (entry crt0.S, stacks app.ld, loop in
  .c1_text), one job at a time with a check word; a bad read, a fault (fm1_irq.h,
  fm1_vec.S resume) or no answer holds it for good and core 0 plays every track;
  one core until power-off after that or a crash beside it. After Melodee
  (keremimo) and fm1-x0x (Charles Vestal), GPL-3.0; credited in MENU > ABOUT.
- fx.c mix_block: the synth parts split between the cores by their voices and
  engines (DRUM on core 0); core 1 into its own buffers, summed after: the same
  sound bit for bit (ui_test checks it, and fails when a sum is broken).
- Per-core scratch: mod.c matrix, fm6_core.c buses, voice.c filter flags and
  fx.c's first-block flags a byte a track.
- REC held at power-on: one core. MENU > ABOUT: CORES 2 / CORES 1 and why.
- README, manuals, cheat sheets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-13 13:27:22 +00:00
Claude bdd529c5a6 WIP 0.6.71: second core HAL (start, mailbox, fault hold), not wired into the audio yet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-13 11:37:11 +00:00
kurogedelicandChanceTheMaker 727f272015 Felucca 1.0 source
Big New Features. Engines: FM6 (6-operator FM, replaces DIGITAL; old sounds
convert), SLICE in the standard build with manual slices, DRUM, NOISE; PHYS
membranes and sympathetic strings. 13 engines in one display order.
Sequencer: piano roll, drum grid, songs (patterns A-D), motion recording,
per-step chance, divisions to 4 bars, ARP REPEAT and beat LED; chord keys.
Effects: FX hold layer with a harmonizer, spring reverb, modulation matrix.
Quick layers, undo, on-device naming, new UI (Inter Tight, Fukiai icons,
8 palettes). USB audio input; TRS MIDI in, clock, bend, sustain. Web: full
backup and restore, sample recording and trim, return to the official
firmware. Build: font, icon, keycap, palette and FM6 patch generators;
release folder with the licence texts. Licences: LICENSES/ (Inter Tight
OFL, Fukiai MIT, DaisySP MIT, Rings MIT, msfa Apache-2.0, JieLi SDK
Apache-2.0). Removed: the bitmap font and icon atlas, their generators.

Co-authored-by: ChanceTheMaker <471816+ChanceTheMaker@users.noreply.github.com>
2026-10-05 23:16:53 +09:00
kurogedelic 5684e187b0 Felucca 0.8-beta source
Firmware, update loader, build tools, assets, web installer and editor,
host tests. Four tracks (three synth parts and a drum track), user presets
with live editor sync (protocol v2), editor protocol v3 (tracks), the
command-line installer tools/fm1_install.py.
2026-10-03 16:06:39 +09:00