Commit Graph
13 Commits
Author SHA1 Message Date
Claude d3bb2ebebc V10.8.72: GEN puts OTT on the electronic genres, a much harder OTT, BYTE's formula DIST types, VISUAL steady under load
Juan: "Habría que implementar el OTT en el generador para los géneros más
electrónicos".

GEN (gen.c gen_ott, after the mix and the FX; RESOUND too):
- GOTT, a genre each, the drums and the bass at DEPTH 40 .. 60:
  - 40: HOUSE, DEEP HOUSE, MINIMAL (its sub alone, 1 dB up);
  - 44: TECH HOUSE, TRIBAL (drums only), REGGAETON, IDM GLITCH (drums
    only), TECHNO ROCK (its synth 80s);
  - 48 .. 54: DRUM & BASS, ELECTRO, BREAKBEAT, DEMBOW, ELECTRO METAL,
    HIP HOP's trap, drill and pluggnb, HARD TECHNO, EBM, BAILE FUNK;
  - 60: HARD BASS, PHONK, DUBSTEP.
  MOOD DANCE adds 4.
- In most of them, one seed in two, the lead goes hard at 60 .. 78. When
  the lead is a riff already up front (GAIN 6), the texture takes it.
  Pads never. Three tracks at most.
- Per role TIME, UP/DN and X-OVER: the drums TIME 44 and a little less
  upward, the bass X-OVER 26 (its sub whole), the lead X-OVER 55.
- None on the acoustic and organic genres (cumbia, jazz, neo classic,
  dream pop, shoegaze, kraut, metalcore, IDM ambient and weird), on
  HIP HOP's boom bap and lofi, on TECHNO ROCK's rock, on EXPLORE, nor
  at MOOD CALM.
- Each OTT track's LEVEL comes down by the depth squared (gen_peak:
  every piece under -1 dBFS with the trims as they were). No draw from
  the piece's random streams: every other choice is as it was, and the
  seed is still deterministic.
- RESOUND sets the genre's OTT, or clears it, on the tracks it gives
  sounds. A track RESOUND does not touch keeps its OTT.
- Not per section: the sections do not store OTT.

FX > OTT, a much more extreme law (Juan via the coordinator; this
replaces the alignment to BYTE d9feaf71; BYTE v1.1b5 has no commit yet):
- Up at 0.97 dB a dB toward -18 dBFS, at most +36 dB, faded out under
  -66 dBFS (a -46 dBFS band gets +27 dB).
- 20:1 over -22 dBFS, at most -36 dB.
- Both bands driven together into dsp.c's soft clip, +9 dB at the full
  weight: dense and saturated, never a hard clip, never past -0.3 dBFS.
- DEPTH squared to 70, then a cubic to 100 (weight 30: 0.09, 60: 0.36,
  70: 0.49, 80: 0.85, 90: 0.98).
- TIME 48 by default (~32 ms back, 1 ms up), so it pumps with the kick.
- Each block's band peaks are read first, so a hit after quiet is not
  boosted by the quiet's gain, and a gain going down takes effect at
  once. Still a gain per block, then the ramp.
- DEPTH 0 is still not run (bit-exact). Under the overload guard, half
  the weight.
- ott_test: at DEPTH 100 a -46 dBFS sine comes out at -10.0 dBFS and a
  -6 dBFS sine at -7.7 dBFS (from the rms), 2.3 dB apart.
- Stored TIME is kept less its default: a V10.8.71 file's TIME comes out
  24 lower (its default 72 loads as the new default 48).

DIST TYPE gets JIANT BYTE's formula effects (origin/main DIST_EQ; on
BYTE's formula machine there, fixed code here):
- 6 RING, 7 STEPS, 8 XOR, 9 WOB, 10 SFOLD, 11 SAT. They are cases of
  the shaper (dist_shape, in RAM); deq_k gives each block's constant.
- They use BYTE's input scale, TONE stage and blend; there is no low cut
  and no make-up. NOISE moves the input as BYTE's does, at FM's NOISE
  depth.
- SOFT .. AMP keep 0 .. 5, and old projects sound the same.
- Within 1.5 % of the formulas in floating point (dist_eq_test). The
  output is a quarter inside so the TONE poles fit in 32 bits (BYTE's
  can wrap).
- BYTE's GATE, LPF, LFO.F, HPF and RND are left out: the flash.
- The SENDS have no drive of their own in FM (SENDS' DIST is the track's
  DIST), so there is no separate send SAT / SFOLD.

HOME > VISUAL: every frame the UI paces is drawn. V10.8.67 left out
every other or third frame by the animation's ticks, unevenly (3 to 7
drawn a second, gaps of 150 .. 400 ms). Now each frame draws less:
- past 65 % load, the first picture alone and 300 points (copies as the
  budget holds them); past 80 %, 150 points;
- the animation frozen: the picture is kept and not drawn again (it was
  never drawn at FREEZE);
- ui.force is cleared after a VISUAL frame (it was left set).
Host (tests/vis_cadence_test.c), frames a second and work a second,
V10.8.71 -> V10.8.72:
- idle: 66 -> 66;
- 69 % now / 66 % average: 6.7 (gaps 150 ms), 0.6 ms -> 20 (50 ms), 0.4 ms;
- 82 % / 50 %: 6.8 (350 ms), 0.7 ms -> 20 (50 ms), 0.4 ms;
- 82 % / 79 %: 3.3 (400 ms), 0.3 ms -> 10 (100 ms), 0.2 ms.
Off the page nothing of it runs.

MOOD CALM's rows checked: V10.8.68's message said "longer sections,
slower RADIO", but its code is BYTE 09ec6b57's, where Juan asked "CALM's
pieces too long". CALM -50 rows: HOUSE x 12, PARTS 356 bars against
MID's 624, SONG 490 against 1140; the radio loops 9 bars against 17.
Left as it is; gen_entry_test pins the direction.

Flash (V10.8.71: 176 B free; this work ~2.7 KB):
- more enum lists packed in PNE (str_nth): FM6's ALG and SLOT, MATH's
  BYTE and FLOAT, VOICE's LYRIC LANG THEME LOOP, ARP MODE, SCALE,
  ENGINE, KEY MAP, EXT's MODE, STRING's EXCITE, WHEEL's PERC. name_of
  reads packed lists; descdump is identical but for DIST TYPE.
- BTAPP_FN / UH_SEG functions are now seen by size_fns.py; 13 per-key,
  per-step and per-half-buffer sound functions built for size.
- the shaper's soft clip one copy in RAM (dist_sclip, bit-exact).
Image 12 B free, BT 36 B free, RAM .data+.bss 1048 B free, pool spare
8224 B, RAM code 40384 of 42496 B (headroom 2112). audio.c is V23's.
REPIN=keep; a plain build passes.

CPU (tests/cpu_lines_test.py), each scene's worst block, core 0/core 1,
V10.8.71 -> V10.8.72:
  101 79/44 -> 78/44    102 62/28 -> 62/28    103 81/14 -> 85/14 (TRIBAL: OTT drums)
  104 46/14 -> 50/14 (BREAKBEAT: drums, bass)   105 66/41 -> 66/41
  106 53/36 -> 52/36    107 58/11 -> 62/11 (HARD BASS: drums, bass)
  108 51/29 -> 51/29    0c  70/58 -> 70/58
The GEN scenes with OTT pay ~4 % on core 0, mostly ott_block's flash
lines (the first OTT track). DIST at 127 on all six tracks of 101: SOFT
81/46, WOB 81/46, SAT 82/47, RING 84/46 (CL_DTYPE).

gen_peak: 270 pieces, 0 over -1 dBFS (loudest stem -2.5, mix -1.1).
gen_test's mix pass and the rest hold.

Tests:
- ott_test: the law, the curve, GEN's OTT, RESOUND;
- tests/dist_eq_test.c and tests/vis_cadence_test.c are new, in CI;
- app_contract: DIST TYPE's DESC;
- gen_entry: MID recorded again, CALM's direction;
- cpu_lines_test.c: CL_DTYPE;
- the local workflow: all 23 steps pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-28 15:49:34 +00:00
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
Claude 4fa9962e5b WIP V10.6i: engine presets in progress (not for release)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-11-06 17:47:49 +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
JUAN JIANT 161d0790ac feat(additive beta): sequencer controls, SHIFT/CHORD, STRING MOVE and acoustic drum macro 2026-10-28 23:44:22 -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 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 362c9e8edb snd6: ADD's knobs rebuilt; DRUM-X's ENV; 1/2 TEMPO keeps the PLAYHEADS in step (a tester's report)
- ADD (the owner: the knobs moved too little): MODE, MORPH (to the next MODE's ratios), BRIGHT (past 96
  the highs over the fundamental), PARTIAL (1..9, the last by its fraction), SHIFT (down: stretched,
  up: + Hz to every partial), COMB (notches sweeping the partials, LFO/ENV -> SHAPE), DECAY (the highs
  sooner), MOTION (down: BLOOM, up: SHIMMER); 12 presets anew, the web editor's copy too; goldens
- DRUM-X: the ENV page drove nothing (the hits hold their voices' ADSR at full): one envelope for the
  kit, restarted by every hit (seen once a block in the part's filter), its peak the hit's velocity
  (kick / snare / clap whole, the rest 5/8); ENV DEST's FILTER moves with it. No RAM: the kit's unused
  mono stack holds it
- 1/2 TEMPO let go: the main playhead went back in step, the extra PLAYHEADS stayed half a time behind;
  now they skip the half they missed (seq_tick, no table: it runs from RAM)
- target budget: add_render's per-partial block work (the per-sample loops unchanged)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-25 01:15:01 +00:00
Claude ad4958773f JIANT 0.9.9-snd5 (1/2): STRING (Karplus-Strong) and ADD (additive), engines 8 and 13, with their creatures
STRING (eng_string.c): a delay line a period long in the COMB's lines (comb_buf cut in NVOICE lines of 128; low notes
loop at 1/2^d of the rate, down to ~22 Hz), filled with the EXCITE (NOISE PLUCK PICK HAMMR STICK at POS), through a
two-point average, BRIGHT's low-pass, STRETCH's allpass and DECAY's gain (T60 50 ms .. 13 s over the keyboard), BOW's
noise while held, BODY / SIZE's band; a COMB TYPE on its part plays as BP. ADD (eng_add.c): nine partials in WHEEL's
voice state (MODE HARM ODD WIDE BELL BAR DRUM, BRIGHT, EVEN, STRETCH, PEAK, FORMNT, DECAY, DAMP), nothing above
~19.8 kHz. No RAM; 12 presets each. They take GRAIN's 8 and SLICE's 13 (retired): ENGINES[] keeps its 15 and the
sound's code and tables stay where the layout pins them; their own tables leave .rodata (build.py late_tables), the
favourites' stars of 8 and 13 cleared once (prefs_rev 3).

Creatures (ui_engvis.c): TEJEDORA, a spider whose threads are the sounding strings' real lines; MEDUSA, a jellyfish
whose tentacles are the partials' gains now. New tests/string_add_test.c (tune C1..C6, T60, BRIGHT, partials, EVEN,
DAMP, alias, presets, corners, demos); UI order, project, web mock and protocol updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
2026-10-24 17:01:34 +00:00