Commit Graph
21 Commits
Author SHA1 Message Date
Claude ceec4ab2cb V10.8.45: the ARP on the transport's grid and recorded on its steps, GEN's sections half as long and each row its own colour, room freed (the owner)
(the owner: "the arp is not quantized, it should be on the 1/16 at least"; "in REC it has to be quantized")
- seq.c arp_step_do: playing (or counting in), a key's first arp step on its RATE's grid of the transport (the step this
  block holds, or one up to 20 ms back at once; armed: never late), then the sequencer's time (seq_n), so it stays there;
  stopped: from the key, as ever. It ran free from the key's block, on the DAC's samples
- rec_note_at: an arp's note recorded at its own step's sample (no key latency, whatever REC Q): on its step, MICRO 0
- tests/arp_grid_test.c (in the workflow): three tempos, four RATEs, 18 moments, every step on the grid; a recorded
  phrase every step its note, on its place, one a step

Room (the owner: "the CPU page out, the little purple bar a number, the velocity diagnostic too"): 720 B
- MENU > ABOUT: the CPU lines gone (clock, rails, crash); AUDIO LOAD stays
- the header's load: its per cent (0..99) in THEME where the five bars were, following the load once 3 away
- the velocity diagnostic out (captures, queue, console, vd_poll); the keys' velocity and pressure as they were; the
  editor's VEL answers as ever with the diagnostic off and nothing to read (web/vel.html: no presses, no captures);
  tests/vel_diag_test.c gone, vel_test / vel_seq_test stay

GEN (the owner: "a section lasts more than twice what it should, loops that do not evolve and come back the same;
every part its timbre, a story in the sound; the envelopes"; "the DJ FILTER's automations too long and abrupt";
"DANCE's decays too long, they cover the other layers"):
- a row half its bars and none over ~24 s (a slow tempo's shorter); RADIO's loop 16 / 8 / 4 bars (over 110 / over 74 /
  slower; were 32 / 16). MY LOOP's rows as they were
- a row its own colour: the scene's macros a row's own values (the first as the piece stands); a section come again
  (its fill row too): the lead's, the arp's and the free drums' lines ARRANGE's VAR 1 / 2 (rows that repeat a row
  before: 31 % -> 0)
- MOOD DANCE: the kit's DECAY a little shorter (was longer), the pump deeper (mood / 2)
- the build's high-pass: its last bar to 30 in eighths (was two bars to 48 in quarters)
- the envelopes: a held chord slower in (32) and longer out (80), a lead some release (32..63), the filter's envelope
  12 .. 27 on a bass, a lead, an arp (was 6 .. 13); towards CALM softer in and longer out
- tests: gen_entry_test (RADIO's 16 bars, MID's reference recorded again), ui_test (an arp with no transport's clock),
  tests/gen_sec.c (a study's tool: rows' seconds, repeats, envelopes)

Layout recorded again (FELUCCA_REPIN=keep: the arp's code in the RAM code); the plain build passes.
Image 583600 B of 584336 (736 B free), RAM 96832, RAM code 32688 of 34816, pool spare 8480 B, BT segment 73564 of
73728. audio.c as V23's.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-25 16:34:27 +00:00
Claude da1b1dd2c1 Copyright headers: name Juan Jiant on JIANT's own files, add him on the modified Felucca ones
Comment-only change (the built image is byte-identical: felucca.bin 583936 B, felucca.fwsc 684736 B, same SHA-256).

- 37 files written new for JIANT FM after the fork (no Felucca text in them: checked against ac6bfcbd by literal
  code lines, runs of consecutive lines, same-named functions and moves in their creating commit) carried Leo
  Kuroshita's copyright line copied from a template: it is now Juan Jiant's (SPDX GPL-3.0-only kept). Among them
  sing.c, eng_animal.c, eng_input.c, eng_string.c, pfx.c, seq_live.c, ui_engvis.c, ui_lens.c, ui_lz*.c, ui_being.c,
  ui_organic.c, ui_tech.c, ui_dx.c, ui_live.c, tools/lyrics/*.txt, gen_drum_maps.py, gen_px_font.py and 14 tests.
- 140 files that hold Felucca's code (Felucca 1.1.5.1 files changed since, imports of Felucca 1.5.x, the SLOOP-based
  song_main/song_play, and new files that carry copied Felucca helpers: drumx_voice.c dv_exp2/dv_kb, gen_lyrics.py's
  Huffman, test harness helpers) keep Leo's notice and add "Portions Copyright (C) 2026 Juan Ignacio Antonucci
  (Juan Jiant)". Files unchanged since the fork are left as they were.
- LICENSING.md and README.md name both copyright holders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-11 18:04:53 +00:00
Claude 2634f4cd0e V10.6z5: keyboard velocity diagnostic (off by default, after Velo), web/vel.html via editor command VEL (protocol 1.1); RAM code/data LZ4-packed in the image, more cold code for size (4.4 KB free)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-08 00:56:24 +00:00
JUAN JIANT b670d041f7 Use a compact developer console for ADD draft beta; retain USB/audio/crash diagnostics and original inlining 2026-11-05 14:18:46 -03:00
JUAN JIANT e147a989f6 Preserve the complete FIT candidate source alongside the probability correction 2026-11-04 15:36:07 -03:00
JUAN JIANT 4d23857b9f Preserve per-step probability through SEQ and STUTTER replacements
Previously these components forced legacy 100%, even on a step configured at 0%. Keep the destination probability before overwriting the rendered copy, including aliased C.LEN input. Test the production sequencer on ANALOG and DRUM at 0/25/50/100 percent. Leave punch-in FX unchanged per the user's verified emulator report.
2026-11-04 15:34:37 -03:00
JUAN JIANT 635effe287 Restore complete V10.6c source tree around the song-save changes
Keep all unmodified public firmware, build tools, assets and web files in the candidate tree.
2026-11-04 07:30:19 -03:00
JUAN JIANT 243258059e Add SAVE SONG AS to copy complete songs between projects
Copy sections A-D, unsaved live edits, current globals, arrangement scenes, per-track sources and variations into a selected project. Confirm complete-song replacement, preserve the source, and keep the naming dialog on save failure. Validate NOR persistence and UI flows; build a candidate without deploying installers.
2026-11-04 07:28:45 -03: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
Claude d70d4e99b1 Predict the load at a note's start: give up a released voice past the budget
After LOOM-8's synth.c find_voice. A voice added for a new note costs its
part's measured block time (fx.c mc_tk, shared by the part's voices; a
part not yet measured, or the host: a small weight by engine) as a share
of a half, 60 % of it with both cores rendering. Added to the guard's
average load plus what the voices admitted since add (decaying over the
average's ~93 ms, bounded by what sounds), a prediction past LOAD_ADMIT
(90 %, ECO 70 %) does not add the voice: a released voice is given up for
it with the usual ~4 ms fade, the quietest of a POLY part's first (the
part's own restarted in place), else the oldest held of the part's own
but its bass. A MONO / LEGATO / UNISON part's released tail is never
taken while a voice is free, nor is any held lead; with nothing to give
up the voice is added after all. An extra UNISON voice past the
prediction is not started; a lead always is.

The guard (load_half) only sees a half once it has run late; a chord's
new voices could take it there within one block. voice_alloc keeps the
cpu3 order at capacity (own released slot in place before a cross-track
steal) and the cpu4 live-drum protection. Console: load_steals.
157 golden renders unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-23 07:37:17 +00:00
Claude 3e6d723c78 Replace the spike-driven load budget with an averaged overload guard
The load budget (load_tight) was set by one 2.9 ms half over 65 % and
cleared after 16 under 60 %, and a voice was shed after two halves in a
row over 80 %. A half's measured share is noisy: a chord's note-ons, a
cache miss or a UI frame nested in the render pushed it over and the
budget closed for 50 ms, or a release tail was faded, with nothing late.

voice.c load_half, fed by audio.c at the end of every half with the
render's share (TIMER5 nested in it excluded, as before), keeps an EMA
over ~32 halves (93 ms) and a run count. The guard trips on an average
past 85 %, or on three halves in a row past 92 % (a load that keeps the
audio late); one spike never trips it. Tripped, it caps the shared
voices at what sounds (at least 4: a lead a track) and lets go a voice
for each half second of calm under 70 % with no such run, until the cap
is the budget's again. LOAD ECO keeps its earlier budget: 65 / 75 / 50.
The extra voices (12) open and close on the same average with the
nested interrupts included (50 / 65 %), not on one half.

The hard shed stays only as the last resort: a half that really came
late (the DMA moved on while it rendered) fades one voice. The console
status shows guard_trips and load_avg_pct.

audio_test: the run of three, the average, a 95 % spike in a 70 % song
(never trips), the 75 % hold and the half-second recovery; the DMA late
half sheds. 157 golden renders unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-23 07:29:46 +00:00
Claude c833fca4c1 0.9.7: flash: 15.2 KB back (image 575384 -> 559864 B), no feature gone, the sound and every screen bit for bit
The main-loop code's repeated address and table work made calls (ui.c): TSEL (&trk[song.sel], a multiply and an add in
place at ~230 sites) a call from ui.c on (core.h's stays for the sound files before it; -5.0 KB), VAL and RATIO (-2.7 KB),
a track's engine (t->eng_req % NENGINES, 74 sites) and its table (-0.7 KB). The graphs no page reaches since the lenses
gone, each checked against the lenses' code and the coverage of ui_test and ui_render: SEQ > SONG's list (hidden, SAVE >
ARRANGE draws its own), PATTERN's 64 bars and LARGE's step strip (SEQ's cards are never tall), SCL's twelve keys, and
the draw_graph cases LFO MSEQ (MOD's lens), the tech graphs of LFO DEST, VOICE and MSEQ 2 (-3.3 KB). GEN's drum maps,
the throws' pools and DICE's bars, kept as text in gen_tables.c / song_dice.c, packed by a new generator
(tools/gen_drum_maps.py: each lane once, 16 levels a nibble or 2 bits a step) and the bass archetypes a byte a step
(-2.9 KB). The sound files' main-loop functions built for size too (size_fns.py: FM6's patch store, the kit's names,
MASTER's boot; what an interrupt reaches stays -Os).

Checked: every non-minsize function's disassembly as before (addresses aside: the audio ISR, the render loops, the hot
RAM code identical, target_budget's counts unchanged); 225,549 ui_render screens hashed pixel for pixel identical; GEN's
pieces for every genre and seed and SEQ's dice identical (a hash of every step and parameter); the packed tables decode
back to the text; cpu_vg's counts equal HEAD's; goldens unchanged. RAM .data+.bss 79172 B, pool spare 10880 B, RAM code
22472 B, all as before. ALL HOST TESTS PASSED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-18 02:48:05 +00:00
Claude 92be89d2ad 0.8.9: USB audio never drops a packet; cheaper on the render core; a late half no longer loses the next one
The 0.8.7 field test (FM-1, CORES 2, LOAD FULL, a heavy 160 BPM song, USB CONSOLE captured at 48 kHz): USB audio
on raised CPU 65.5 -> 77 %, late halves 15 -> 50 /s, ~230 underruns /s, captures 10-20 % short.

- Root cause (audio.c): the ALNK0 ISR acknowledged a half after rendering it, so a render that ran past its half
  cleared the next half's pending flip and that half was never rendered (the DAC replayed 2.9 ms of old audio; USB got
  128 frames fewer). Every "late" half lost the next: ~14 % of the audio with USB on, the ring always dry (adj_down
  saturated, ~230 underruns /s). Now the half is acked first: a late render is followed at once by the next, which
  catches up glitch-free (the DMA reads the half behind the render); a half is lost only past ~1.7 halves, counted in
  the console's new audio_lost.
- usb.c, the packets: every packet still carries n +- 1 frames (an underrun repeats the last frame, never drops or
  shortens it); the repeated frames are now owed and made up (one ring frame skipped a packet while the ring is
  healthy, uac_repeats_made_up), so a capture keeps the music's length and timing. Bands 0.7 ms higher for renders that
  now start up to ~1 ms late (44.1: 112..160, 48: 128..176).
- usb.c, the resampler: uac_rs_run, in RAM (.c1_text) calling nothing, its 160 phases in a RAM table (pool, 15 KiB)
  built from the flash's, four taps a pass: bit for bit 0.8.8's. With CORES 2 each half goes to core 1 at the render's
  end (uac_render_end) and enters the ring when the next half starts (uac_collect; mix_block's first job queues behind
  it, so its wait covers it); one core: per block in the ISR as before. Core 0's share at 48 kHz: ~21 instructions an
  input frame (the 16-bit store) against ~270 (resampling) before: ~11 CPU points -> ~1 (estimate, to confirm on the
  device); CORES 1 ~20 % fewer instructions and no flash table reads.
- uac_fir.h (tools/gen_uac_fir.py): the 80 phases stored as each tap's third differences (int16), summed back exactly
  (UAC_FIR_CHK): 7680 -> 3984 B.
- voice.c / console: voices_given_up counts each voice once (one already fading not again) and splits into
  voices_trimmed (load-budget tails under -50 dB: inaudible, most of the field test's 670 /s), voices_stolen and
  voices_shed.
- Tests: tests/uac_sched_test.c (new; one core and CORES 2): 3 min against a simulated 48 kHz host at +-500 ppm, renders
  as the heavy song's (~17 late /s, up to 131 %): every IN token finds a packet, sizes 47..49, no underrun / overrun /
  jump, frames sent = frames resampled exactly, no latency drift; starvation bursts (renders 150..190 %, halves lost):
  underruns repeated and all made up; IRQs off 4 ms: ~3 empty frames each, recovered. LEGACY=1 shows the 0.8.8 order:
  ~245 underruns /s, 12.4 % of the music missing at ~43 late /s (the field test's figures). uac_test: the RAM table
  exactly the generator's, bit for bit 0.8.8's resampler (10 s at +-2x full scale), THD / aliasing spurs < -98.9 dB
  (1 k .. 22 kHz). audio_test: the ack before the render, audio_lost.
- Image 568320 -> 565384 B (-2936 B); RAM code +328 B (22440 of 24576), pool +16 KiB (36 KiB spare). Goldens, CPU
  baselines unchanged; target budget: uac_tap48 -> uac_rs_run (static 558: the unrolled body).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-17 11:26:59 +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 a434fc5a6d 0.6.76: the effects guarded on the second core
A wrong word core 1 reads in the buses' state cannot blow up (their lines
are 16-bit and clamped: a test feeds every word of their state a wrong
value on all five reverbs, at most ~290000 out). ROOM's modulation
offsets, wrong, are put back in range (they read far outside the combs).
An output out of range (2^20; core 1's known misread is 2^21) mutes the
block, clears every bus line and state and gives core 1 up as a BAD READ
(fx_trip). Console status: fx_trips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-13 17:45:14 +00:00
Claude 21b8dc6132 Console status: the second core (cpu2, cpu2_jobs, cpu2_tracks, cpu2_wait_max_us)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-13 14:33:38 +00:00
kurogedelic 276f72a4e6 Felucca 1.1.5
Parameter locks: hold a step on SEQ > STEP and turn a knob; SEQ > AUTO
LIST lists and edits the locks and automation; lock edits undo.
SEQ TOOLS (SEQ held on the SEQ pages): CLEAR, REVERSE, SHIFT, RANDOM,
COOK, BEAT and the DRUM lane tools.
REC layer (REC held): CLEAR, CLICK, COUNT-IN, CLICK LEVEL.
Metronome and count-in (MENU > AUDIO), never in USB audio.
MIDI CC map (5, 7, 10, 71..75, 91, 93, 94); DRUM lane levels (EDIT >
LANES, LANES 2; projects FUN9).
USB audio input at 44.1 or 48 kHz.
Step recording at the cursor (SEQ > STEP, REC while stopped); restore
the last session at power-on (MENU > SYSTEM > RESTORE LAST).
Eight more ARP modes; MENU > CONTROL > SCALE LEDS; MENU > DISPLAY >
SCREEN OFF.
The header in three parts with a metronome; the new splash; the
power-on LED sweep; DRUM grid beats on the key LEDs.
Fast knob turns keep every click; KNOB ACCEL up to x8, on the FX and
GLO layers too (#126).
MASTER read from the pot before the audio starts, keys silent under
the splash (#137).
The update loader checks the whole package before erasing anything;
robustness against damaged packages and stored data; sanitizer and
fuzz runs in tests/run_tests.sh.
Smaller icons in flash.
2026-10-08 11:11:01 +09:00
kurogedelic 20c275e39f Felucca 1.0.1
LEDs: idle buttons and keys glow dim (a short pulse riding on the 595
shift, no flicker, no extra CPU; #35); MENU > LEDS DIM / INV (INV: the
official firmware's look); PLAY's green LED lit while playing. Key LEDs
show the notes the selected track's sequencer and ARP play (#38). QNT SEQ:
the scale applies to the sequenced notes as they play, non-destructive,
off by default (#37). A song playing shows a disc in the header.
Build: --release accepts X.Y.Z (identity FM-1_9XY).
2026-10-06 01:24:43 +09: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 e5a908d038 Felucca 0.9-beta source 2026-10-03 21:27:34 +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