Commit Graph
11 Commits
Author SHA1 Message Date
Claude 90dda48b6d Own pieces: rewrite the helpers copied from Felucca, headers to Juan Jiant where nothing copied remains
Firmware image byte-identical to bcb1d20f (felucca.bin, ota.bin, felucca.fwsc, bt.bin: same SHA-256).

- drumx_voice.c: dv_exp2 / dv_kb written anew as dx_pow2 / dx_fall (same integer results for every input,
  same machine code); fx.c and tools/audio_layout.txt follow the names. Header: Juan Jiant.
- tools/gen_lyrics.py: the Huffman code lengths by a two-queue construction and canonical codes from the
  per-length counts (felucca_lyrics.h identical). Header: Juan Jiant.
- tests/jiant_test_util.h (new): the verdict line, RMS / peak, FFT, Hann power spectrum, peak frequency,
  xorshift noise. animal, string_add, voice, delay, drumx, drumx_oct, filter, stems_usb, swarm, uac_sched
  and fm6bank tests use it instead of helpers copied from Felucca's tests; their output and demo files are
  the same byte for byte. Headers: Juan Jiant.
- song_main.c: the quick chain's bars (quick_bars) and the song's row check (song_unsaved) rewritten; header
  Juan Jiant, SLOOP's design credited. song_play.c keeps Felucca's notice and gains Andre Rezemini's (the
  SONG REC take follows SLOOP's seq.c; ISR code pinned in flash, left as it is).
- Charles Vestal's notice where his code remains: web/emu/felucca_web.c, worklet.js, index.html (X0X) and
  hal/fm1_adc.h (Velo's row drive). LICENSING.md says which files carry which notice.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-11 20:08:52 +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
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 c96007341e V10.53 fix: one flag for the input feed (audio ISR cost back to budget)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-03 15:16:41 +00:00
Claude 7123b2e38e p1: USB: STEMS+IN without the rhythmic glitch, a mode switch on the first try, the name "JIANT" on index 4
As main 9678bf3 + 7180629's poll skip, 1417f9e, eb9ee2d:
- uac_service on every 10 kHz TIMER5 tick (nested in the render or not), not every 5th: a STEMS+IN packet is on
  the wire ~0.65 ms, the next one must be queued in the ~0.35 ms after it; the guard inlined, the SIE check
  (ep4_tx) and the refill (ep4_fill) out of line; no SIE poll for UAC_SKIP ticks after a fill; the stall count 20 ms.
  stems_usb_test models the bus time and TIMER5's drift (0.9.9's 2 kHz poll loses up to half the frames);
  target_budget watches ep4_tx / ep4_fill.
- a USB mode switch keeps the FM-1 off the bus 500 ms (usb_replug, usb_retry_due): hosts saw the ~25 ms drop
  miss; ui_test checks it.
- iProduct "JIANT" (was "JIANT FM") on string index 4 (Windows caches the name by VID, PID and index: Live kept
  "Felucca"); the loader "JIANT Update" there too. The Stems app's USB filter takes "JIANT" too; install_test and
  usb_desc_test cover the names; editor mock and EDITOR_PROTOCOL.md renamed.
Flash +80 B. FELUCCA_REPIN=1 (uac_service pinned, it runs in TIMER5).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 13:49:49 +00:00
juanjiant-bit 6cb8561fa9 CPU5 USB1: reduce multichannel USB copy workload and identify the beta build 2026-10-21 21:42:48 -03:00
Claude 414aac8cd4 0.9.8: clean USB stems (and JIANT Stems 1.1) + VOICE sings softer, merged with 0.9.7
- FELUCCA_VERSION v0.9.8; README: one v0.9.8 section (clean USB stems, JIANT Stems 1.1, VOICE singing) above
  v0.9.7, status line v0.9.8, memory: image 562700 B of 581564, .data + .bss 79556 B, pool spare 10816 B,
  RAM code 22460 B.
- The stems fix ships in 0.9.8 (0.9.7 still had the 720-byte endpoint): the app's old-firmware message, the
  manuals, android/README and the fix's comments say 0.9.8 / "0.9.7 or older".
- Navigation map and cheat sheets regenerated at v0.9.8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-18 05:07:54 +00:00
Claude fc6a33f811 0.9.7: clean USB stems: the 8-channel endpoint fits its 46-frame packets (736 B, was 720: babble, stalls, ~100 blocks a second lost in every stem), a ms more in hand and made-up frames spread over a packet, the SLICER's parts once in the stems; JIANT Stems 1.1: whole frames only, the mic's drift without slips, the trim and the take's length
- usb.c: UAC_MAXP8 46 x 16 (uac_packet sends 45 + 1 while holding the ring's fill: the host dropped those
  packets as babble and halted, the ring filled and uac_tap8 dropped whole blocks; TOMA_03: ~87 breaks/s in all
  channels at once, 99.9 % on the 32-frame render grid); a static assert that every packet fits; STEMS / STEMS+IN
  band +48 frames (UA_PAD_STEMS); an underrun's repeat made up by uac_squeeze (n + 1 frames into n), not a skip.
- fx.c / slicer.c: a part through the SLICER is its own sound at the gain the SLICER gave (traced copy
  sl_seg_tr / slicer_bus_tr, only with the stems on), its repeats in the first such part's stem or, FX ON, in the
  FX return: the eight sum to the mix (it was in its stem dry and again sliced in FX). RAM code -12 B; goldens,
  target budget and cpu_vg unchanged; image 562,732 B.
- tests: stems_usb_test (8/10 ch, minutes, an app-like host: every frame once in its lane, no babble; 0.9.5's
  720 B shown losing 11 % in blocks; starvation corners only the holds'), stems_test (DICE songs: each stem bit
  for bit its solo render in FULL / LITE / ECO, CORES 1 / 2, ECO tail trimming; sum = mix; empty track zeros;
  SLICER GATE / STUT / FX ON), uac_test 736 B; run_tests runs the app's C and JVM tests while it lives here.
- JIANT Stems 1.1: usbstream.c keeps whole frames (a cut frame no longer shifts every channel) and follows the
  mic's drift by fractional reading; tells a 0.9.5 FM-1 in STEMS; a take being recorded is never recovered from
  the list, Wav.repair keeps all the file holds; trim edges by their grip, relative, snapped to the ends;
  Spanish INICIO AQUÍ / FINAL AQUÍ / SIN RECORTE; EXPORT says when trimmed; TakeLengthTest.
- manuals (EN / ES): what was wrong, what a stem is (DUCK, the shared voices, ECO), record again.

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