- web/emu: the emulator gives its stems live as MENU > USB STEMS sends them (fx.c stem_buf: T1..T6 mono, the FX
return L R, before the master), each sample at its place beside the stereo (felucca_web.c web_stems,
web_stem_out), and what MIDI OUT sends (web_midi_tap, web_midi_take: usb.c queues it without a USB host).
worklet.js posts them about every 93 ms (tap-chunk: the first sample's number, the planes, the MIDI packets each
at its sample); index.html jiantEmu.tap(f) for JIANT Studio.
- firmware: two hooks for the browser build only, nothing in the device's: audio.c calls WEB_STEM_TAP when it is
defined; usb.c's midi_out_event queues with USB_MIDI_TAP (0 unless defined).
- Studio, Record: Input lists "JIANT emulator · stems (8 channels)" and "· master (stereo)"; MIDI input lists
"JIANT emulator · MIDI OUT". The stems come in as STEMS' lanes (named by the tracks' engines), the take exports a
WAV per track, FX, the ZIP and the mix; the MIDI lines up with the audio by sample. An emulator without the tap
(the published one until it is rebuilt) says so.
Tests: the browser test records the emulator's stems and three notes of its MIDI OUT; emu_test, devices, the host
tests as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRnhKjiABTzc6Ety3dd
0 leaves the mirror out whole: lcd.c's hook and its variable, editor_screen.c's encoder and the SCREEN handler
(SCREEN then gets no reply, as on firmware before it, and the editor and JIANT Studio hide their Screen button).
Measured on V10.8.20 (710bbc4): with 0 the image is the one without the mirror byte for byte (581200 B, 3136 free;
pool 301576 B); with 1 as before (+928 B, pool +432 B). For the firmware branch, which runs short of flash after
DRONE CLAY: it can build with 0 until there is room. The default stays 1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRnhKjiABTzc6Ety3dd
Measured on V10.8.20 (710bbc4), the firmware branch's tip: the mirror with 480-byte frames took the pool's spare to
8032 B, under build.py's 8192 B headroom. With 256-byte frames (a 0.3 KiB SysEx, ~7 % more header): flash +928 B
(2208 B left), .data/.bss +0, pool +432 B (8256 B spare); every check passes. The editor's and Studio's encoders (the
simulated device, the tests) follow; the decoders take any size. EDITOR_PROTOCOL.md says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRnhKjiABTzc6Ety3dd
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
The firmware keeps no frame, so lcd.c hands every fill and strip it sends to the panel to
editor_screen.c while the editor asks for it, which sends them on as SysEx (79 SCREEN_DATA):
fills as a colour, strips compressed (runs, a 64-colour hash, colours in full), each frame
standing alone and at most 0.5 KiB. 78 SCREEN turns it on (the whole screen redrawn), keeps
it on, refreshes, turns it off; it stops by itself 4 s after the editor's last request or
when a frame cannot go out. About 0.1 byte a pixel on the UI's pages.
The editor: a Screen button (only when the firmware answers SCREEN), a full-window view
(sharp / smooth pixels, full screen, wake lock on phones), ?screen to open it on connect.
The mock device mirrors a picture of its own. Protocol in EDITOR_PROTOCOL.md; tests in
tests/editor_test.c (decode back to the pixels drawn) and web/test_web.mjs (the editor's
encoder gives the firmware's bytes, the mock, firmware without it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRnhKjiABTzc6Ety3dd
- firmware (editor.c): INFO tags 'D' 1 board (SMK-37 Pro / Elite, a computer, the MPC Sample, the MPC plugin) and,
FELUCCA_HOST_POWER only, 'H' 2 caps slots, both before 'Y'; on the big CPUs DESC / SET / TRACK_PARAM name the
values beyond EDIT by the track's engine (hp_xdesc) and send enum names by value (DRUM-X's SLOT 112..). The FM-1
binary is byte for byte as before (cmp build/felucca.bin, .fwsc), regress 0 golden changes.
- ports/core: the editor's SysEx (jiant_sysex, jiant_sysex_out, jiant_editor_poll, jiant_editor_host) through the
firmware's own handler; felucca_hp.wasm leaves it out. JUCE standalone: SysEx in, replies out of its MIDI output
(producesMidi only for the standalone; the plugins' buses unchanged); tests/sysex_check.cpp.
- web/editor.html: the device shown (tag, else port name), SMK-37 / MPC Sample port names, the structured layout for
P_COUNT 123 (it showed a plain list) with a FILTER section, SAMPLE's TRIG REC, GRAIN's TRAVEL SOURCE PITCH and
DRUM-X's SAMPLES pages on a device with 'H', SAMPLE sounds kept on such a device; the mock as a big CPU (?hp=1)
or an SMK-37 (?board=1), its tables generated from and compared with descdump built with FELUCCA_HOST_POWER=1.
- tests: editor_test with FELUCCA_HOST_POWER, core_test, test_web devices section, web/editor_browser_test.mjs.
- docs: EDITOR_PROTOCOL.md "Device and big CPUs"; MPC Sample README: why its app does not answer the editor yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
At start the app loads slots.json's WAVs (16 / 24-bit PCM, 32-bit float, any rate, mono or
stereo) into the core. SAMPLE opens a browser over the screen: pads pick the slot, the wheel the
file, the buttons above the screen CLOSE / AUDITION / LOAD, ERASE clears, SAMPLE SELECT the
source (LINE MIC USB RESAMPLE), SAMPLE REC records. The service thread reads and writes files
and hands sample objects to the audio thread by pointer; a slot JIANT changed is written as
Samples/slotNN.wav once it rests. The MPC's input feeds the core. Tests: the browser's logic,
a slot from a WAV, a recording written and found again by a new process.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
SAMPLE's TRIG and REC, GRAIN's TRAVEL SOURCE PITCH, DRUM-X's SAMPLES pages after the FM-1's
(their indices kept), in EDIT's chains as a SAMPLE group; ui_smpvis.c draws the slot's name and
waveform, the region, the playheads and the grains, EMPTY, LIVE, RECORDING. The UI render lint
built with FELUCCA_HOST_POWER=1 sweeps them: 0 findings (tests/run_tests.sh runs it).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
Under FELUCCA_HOST_POWER (drum_smp.c, hooks in eng_drum.c): each hit plays a slot (SLOTS, with
a velocity layer), a slice of a kit slot (LANES, KEYS), blended with the synth by SMORPH and
BLEND (XFADE, synth transient on sample body, the reverse, amplitude follow, ring), tuned by
the kit's TUNE and the lane's pitch, shortened by DECAY, choked as the hats. The values sit in
slots a DRUM track on the FM-1 never reads. SMORPH 0 renders bit for bit as before (tested);
fm1_load_test loads a big CPU's project in the FM-1's build: SAMPLE and GRAIN as ANALOG.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
Engine 8 again under FELUCCA_HOST_POWER (eng_grain.c): up to 48 grains a voice, SLOT POS SCAN
SIZE DENSITY SPRAY SPREAD REVERSE, TRAVEL FWD REV PING RAND STRETCH FREEZE KEY over a REGION,
the cloud fed back (1 s, soft limited) with SHIMMR's pitch, WINDOW, WIDTH (stereo through the
part's side), SOURCE SLOT / LIVE IN / LIVE MST, REC, QUANT, DAMP. Tests in sample_test.c.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
Engine 4 again under FELUCCA_HOST_POWER (eng_sample.c): MODE ONE GATE LOOP PING REV SLICE
SCRUB TAPE, TRIG NORMAL CHOKE RATCH RAND ROUND VEL LEGATO CHANCE, a pitch-tracked comb to
self-oscillation (soft limited), DESTROY into the slot's working copy, REC from the input,
the master or a track from the next bar. Its extra values live in DRUM's lane-level slots.
ports/core/sample_test.c checks every mode and trigger, the bounds, REC and the cost.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
Host-power only (FELUCCA_HOST_POWER): firmware/src/smp_slots.c holds the slots as
objects made on the host's thread and swapped in by pointer, a retired ring and a
spare object kept by jiant_service, the input's ring and the master / track taps.
The FM-1, the emulator and the golden renders are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
hal/smk_input.h: Melodee's SMK-37 HAL as it is (velocity keybed, 18 buttons, 8
encoders, the button LEDs, pads, faders, wheels; the fm1_adc.h stand-ins, K5 as the
MASTER pot), with three no-op stand-ins for JIANT's dim / sweep LED calls. felucca.c
includes it instead of fm1_input.h and fm1_adc.h on the SMK (PB6 is the SMK's LCD
clock).
The mapping (panel.c, after Melodee's): FX=FX, SCALE=SCL, CHORD=ENV, NOTE REPEAT=LFO,
PARA=EDIT, GLOBE=GLO, PATCH=HOME, BT=SAVE, ARP, SEQ, SEQ PLAY=PLAY, SEQ REC=REC,
OCTAVE-/+ = OCT-/+; K1-K4 KNOB 1-4, K5 MASTER, K6 SELECT, K7 ALGORITHM, K8 PRESETS;
magic 'PNS5', validation against the SMK's 18 buttons / 8 encoders; HARDWARE
CALIBRATION asks by the printed names. ui_input.c: < and > one SELECT step, KNOB BANK /
FADER BANK nothing, the pad and outer-key queues drained, button loops over the SMK's
ids, an SMK ui_leds (button LEDs on/off, breathing = blink, the pads show their white
key's LED); ui.pg_down widened to 32 bits on the SMK. seq.c: a key struck again while
held (notes_retrig) sounds again. main.c: OCTAVE- + OCTAVE+ at power-on for the
calibration. console.c: no 'inp' on the SMK. lcd.c: the pad LED buffer in .bss.
Tests: tests/smk_map_test.c (the mapping), tests/smk_keys_test.c (Melodee's keybed
test, unchanged). The FM-1 build is byte-identical.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
fm1_lcd_hw.h: on the SMK, SPI1 group A (PB6 CLK, PB7 DO, PC8 CS, PB5 D/C), no
backlight control (PA2 is a key-matrix row there: fm1_lcd_backlight is a no-op), and
fm1_padled_send / fm1_padled_done, which switch SPI1 to group B (PC10) for one frame of
the WS2812-class pad LEDs. lcd.c: padled_set / padled_flush (one SPI byte per LED bit,
250-byte latch, the stock chain order), after Melodee's. The panel init is unchanged
(the SMK's is also an ST7789V 240x240 IPS). The FM-1 build is byte-identical.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
hal/fm1_flash_map.h (after Melodee's): the SMK's windows (store A 0x9D000-0xBAFFF,
OTA 0xBB000-0xBFFFF, store B USRFLASH 0xC2000-0xE9FFF, store C 0xEB000-0xF3FFF), the
marker sector 0xEA000 (whole-sector erase only), and FL_PROTECTED: the head, BTIF /
USRTRIM 0xC0000-0xC1FFF, USR + 0xFE000, key_mac. The RAM driver (fm1_flash.h) refuses
on FL_GUARD = FL_RANGE_OK && !FL_PROTECTED, also under the loader's own range; on the
FM-1 FL_GUARD is FL_RANGE_OK (byte-identical build).
storage.c: an SMK st_sector table (78 sectors: 38 A/B pairs, the voice bank, the owner
tag 'SMK37DATAJIANT' at 0xAF000), st_owner_check and the stock-mapping marker release
(after Melodee's); storage_hw.c releases the marker before the first write into
USRFLASH. ota.c: staging 0xBB000 / record 0xBFF00 and a board check (-15 not an SMK
flash.bin, -16 region table not the device's, -17 USR place). Loader: app area
[0x4000, 0x9D000) and the OTA area only; the record scan never leaves the OTA area; a
package whose region table is not the device's is refused (-14).
project.c: on the SMK, flash only with FELUCCA_SMK_FLASH=1 and only for JEDEC
0xEB6014 (FL_JEDEC_OK); the default SMK build stays RAM-only.
Tests: tests/smk_flash_test.c (every protected sector / page / byte refused by every
allow-list and the driver net; straddles, wraps; the table; a simulated SMK: first
boot, every object saved and loaded, the marker released once, forbidden erases and
programs refused, protected bytes identical), tests/smk_ldr_test.c, ota_test.c SMK
build; wired into run_tests.sh.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
fm1_cc.h: BOARD_SMK37 (default 0) and SMK_MODEL. build.py: --board / --model (or
$BOARD / $MODEL); the SMK build adds -DBOARD_SMK37=1 -DSMK_MODEL=..., goes to
build/smk37-MODEL/felucca-smk37-MODEL.fwsc and carries the identity 'SMK-37 Pro_900' /
'SMK-37 Elite_900' (release: _9XY). felucca.c: FELUCCA_UART 0 on the SMK (PH8 is a
matrix row), #error otherwise. loader.c: 'ota-' SMK_MODEL '_900'. ota.c: the parm
identity 'ota-' SMK_MODEL '_016'. usb.c: product 'JIANT SMK-37' / 'JIANT SMK Update'.
The FM-1 build gets no new flag and is byte-identical (felucca.bin, ota.bin, .fwsc).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
The FM-1's limits are for its chip; the ports run on far bigger CPUs.
With FELUCCA_HOST_POWER (core.h; ports/core sets it, the FM-1, the
browser emulator and the host tests are untouched: 157 golden renders
unchanged, the emulator's render bit for bit the same):
- every part its own NVOICE voices (48 in all), not 8 between all;
- EXPLORE no longer lightens its pieces for the FM-1's CPU.
And with JIANT_REAL_LOAD (felucca_web.c, ports/core only) the device
clock carries the computer's real time, so the firmware's governor and
overload guard act on that CPU's real load: the sound gives way only if
it truly runs short.
The core reports the load (jiant_cpu_percent, _peak_percent,
jiant_voices_shed, jiant_load_governed, jiant_voices_sounding); its
test plays the bench song with 12 voices at once and nothing given way.
The MPC Sample app shows CPU on its screen and in status, and
`jiant --bench` measures the bench song on the MPC's own CPU (CI runs
it on ARM64).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
The open items of the MENU's review, decided:
- SYSTEM > SYSTEM: RESTORE LAST, CPU CORES, CPU CLOCK (what a power-on does, all from the next start), ABOUT;
CALIBRATION to SYSTEM > CONTROLS (the controls it teaches; KNOB 4). The crash message: MENU > SYSTEM > CORES.
- BPM LOCK leaves CLICK for AUDIO (SPEAKER EQ, TRACKS, LOAD, BPM LOCK); CLICK keeps the metronome's three.
- With that, eight pages cannot hold the 29 rows (CLICK was the only home left for a fourth card), so SCREEN gets a
third page, LEDS: LED GLOW and SCALE LEDS together; SCREEN 2 is SCOPE, ANIMATION, SCREEN SLEEP. Nine pages, every
one of up to four knobs and opening on a value (never on an action).
- The footer does not repeat a page named as its tab: MENU . SCREEN, MENU . SCREEN 2, MENU . AUDIO, MENU . SYSTEM;
MENU . AUDIO . CLICK, MENU . SCREEN . LEDS, MENU . SYSTEM . CONTROLS as before. n/9.
- Card labels: CALIB, CPU MHZ, USB AUD; no two alike on a page (tests/ui_test.c checks it); no card mark in the MENU
(the two LEVEL cards had the level icon, no other setting a mark).
- Nothing stored changes (ids, values, defaults); the editor's tabs: SCALE LEDS SCREEN, CPU CORES SYSTEM.
- tests: ui_test (pages, crumbs, labels, knobs), editor_test, cpu_safe_test; ui_render MENU > SCREEN 2 scene
(menu_screen2). README, MANUAL EN / ES, EDITOR_PROTOCOL, the web manual and its shots.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- Reopening the MENU no longer finds LEARN CLEAR / CALIBRATION / ABOUT still armed (OCT+ right after
opening could clear every learned CC): the page opens on its first setting (tests/ui_test.c).
- docs/navigation-map*: regenerated for v0.9.18 (gen_nav_map --check failed the suite).
- MANUAL EN / ES: the hints start over with SAVE > TOOLS > NEW PROJECT (was INIT SYSTEM, a name gone).
- menu_items.c: HOLD_N's comment (the menu uses it now).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
The owner: "the LFO has no TRIGGER/FREE option... it always retriggers." FREE (PHASE -1) kept its phase but
trk_note_on reset lfo_fade on every fresh phrase, so with FADE up a FREE LFO faded in again on each note (FADE 0:
one control block at zero, track_render and the MOD matrix reading it before the tick). Now a fresh phrase restarts
phase and fade only in TRIG; FREE fades once, from a project load (not a song's next section nor UNDO) or MODE
turned to FREE (lfo_fade_restart).
MODE is a view of P_LPHASE (-1 FREE, as since 0.6.51): no format change, every project and preset as before. LFO =
RATE WAVE MODE FADE; LFO 2 (new, in the LFO chain) = PHASE, dimmed in FREE (TRIG's phase kept in RAM for TRIG
again). The caption says the mode. LFO dice: FREE 50/50 (was 2/3), TRIG at 0..127. Web editor: MODE + PHASE rows.
Tests (ui_test test_lfo_free): FREE over notes apart, legato, POLY MONO LEGATO, sequenced, DRUM-X hits, FADE 0 and
100; TRIG as before; in time on the grid at every note; the pages; project load / section; the dice. README
0.9.18, EN/ES manuals, the map and the manual's screens regenerated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
README: v0.9.18 changelog (the page table, the renames, INIT SYSTEM gone), Getting around,
current MENU paths (SCREEN > SKIN, USB > AUDIO, SYSTEM > ABOUT ...). MANUAL / MANUAL.es:
the MENU section rewritten as pages (tab, page, knob, setting, values), rule 6's MENU line,
every MENU path. EDITOR_PROTOCOL: the 0.9.18 tabs and names (ids unchanged). Navigation
map regenerated (the HOME layer's MENU line). Web manual: the MENU entries, what's new
0.9.18, nav.js and its screens regenerated. FELUCCA_VERSION v0.9.18.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Page 6 of the SEQ chain (PATTERN STRETCH PLAYHEADS TRACK MUTATE BAR STEP ..., the device's n/N) was SEQ > BAR: KNOB 1
the bar, KNOB 2 LEN (PATTERN's). Out of PAGES and CE_SEQ; the BAR group holds STEP and NOTE; SEQ's default entry STEP
(nav index 5). The bar: the roll's cursor / strip and STEP's KNOB 1 over all the steps, now accelerated (accel(), KNOB
ACCEL, up to x4 on 64 steps) on every cursor knob. Flash -384 B (566944 -> 566560).
Tests: ui_test's chain of 11 (6/11), the tools on PATTERN, the task race (bar 3: 13 actions, KNOB 1 turned fast, was
5 by BAR; REC Q 3, was 4: 80 in all, was 73); ui_render's seq_bar scenes gone; gen_manual / README hero map.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
The settings menu followed none of the rules the rest of JIANT has had since 0.9.2:
one long list, SELECT walked rows, any knob changed the selected row, the footer
counted rows (n/30), the tabs were abbreviations (DISP CTRL SYS), card labels
too (SPK EQ, USB LVL, CLICK LV, CALIBR, INIT SYS...), values ignored the heat
colours, HUD lost the values row entirely (the panel drew over it), and toasts
never timed out inside the menu.
Now (menu_items.c MPAGE, ui_menu.c):
- SCREEN: COLOR SKIN STYLE LARGE | SCOPE ANIMATION LED GLOW SCREEN SLEEP
- AUDIO: SPEAKER EQ TRACKS LOAD CPU CORES | CLICK CLICK LEVEL COUNT-IN BPM LOCK
- MIDI: MIDI OUT LEARN LEARN CLEAR; USB: USB AUDIO USB LEVEL
- SYSTEM: HOLD TIME KNOB SPEEDUP FX LATCH SCALE LEDS | RESTORE LAST CPU CLOCK
CALIBRATION ABOUT
SELECT walks the pages, ALGORITHM the tabs, KNOB n the page's setting n, OCT+/-
the setting turned last; actions are cards armed by their knob, OCT+ does them.
The panel lists the page's four with the knob number, full name, value in its
heat colour and one plain line on what it does. Footer MENU . TAB . page n/8.
Toast pill and message timers in the menu. Geometry from graph_y()/graph_h(),
so HUD keeps its values row at the foot.
Stored values and their meanings unchanged (no format change). Names: ANIM ->
ANIMATION, LEDS -> LED GLOW (OFF LOW HIGH INVERT), SCREEN OFF -> SCREEN SLEEP,
HOLD -> HOLD TIME, KNOB ACCEL -> KNOB SPEEDUP, USB -> USB AUDIO, CPU -> CPU
CORES. INIT SYSTEM left the menu (SAVE > TOOLS > NEW PROJECT is the same).
The editor gets the new tabs through MENU_DESC (ids unchanged).
ui_render: PRESETS TYPE and MENU > MIDI scenes drew a stray toast page; fixed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Owner: adding a component and setting its step, the step was not shown (a kit's grid framed one cell only).
seq_overlay: the cursor step's column framed THEME with a tab at its foot (KNOB 1, at once), the steps with the
component edited a 3 px ACCENT bar on top (a flags RATCH = ECHO), another component a 1 px MID one, a JUMP's
step framed ACCENT (KNOB 3). ui_render scenes comp_sel, comp_sel_drum, comp_jump (every skin and palette: lint
and alignment clean); ratchet_test comp_marks reads the pixels (fails without the change).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Conflicts: seq.c, ui_draw.c, ui_input.c and ratchet_test.c keep 0.9.18's RATCH / ARP (spill, step_rat, ARP at its
RATE over the steps, no C.LEN lane) over 0.9.17's ARP lap / RATE code they replace; ui_graph.c takes seq-ui's one
roll for every SEQ page (graph_bigstep gone with it); web/manual generated files kept, regenerated next.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- seq_step: the step's repeats (spill_start) skip a lane recorded once (LM_ONCE), a lane with its own x2/x4/x8 (the
lane's mode wins: no repeats of repeats) and a POLY note recorded into a step that repeats (its lm slot LM_ONCE,
rec_note_at); the step's first hit plays them all
- gen.c: the hat rolls, FL_ROLL and FL_HAT as the lanes' x2 / x4 (glane_rat), not the step's RATCH; synth ratchets kept
- tests: rolls-bug's ONCE windows over a kit's two-step spill; a POLY overdub once; lane x4 + step x2; GEN no kit RATCH
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
While GLITCH / TAPE STOP / SHUFFLE / FREEZE is held, the footer's K1-4 hint names
it (its knobs), not MACROS. cpu_baseline_vg: the nine fx/* sections recorded.
target_budget: perf_begin 28 -> 11, perf_mute 21 -> 18, perf_block 522 -> 93 (the
glitcher out of the block loop); the other lines untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
GX_D (16 full param descriptors, 320 B) becomes GX_K (label, range, format, a names
index) with gx_desc() building the descriptor on draw: image -128 B. ui_render:
perform_glitch / _scratch / _shuffle / _freeze (the key down: its knobs on MAP and
KNOBS; TAPE stopped: SCRATCH TURN). ui_test: the reset clears the glitcher's state;
the map LEDs check FREEZE (G#4) and SHUFFLE (C#5) breathe, A#4 the spare.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
All twelve SEQ pages draw one picture: the bars' strip and the cursor bar's
roll (graph_roll; a kit graph_grid), with each page's marks over it
(seq_overlay): PATTERN gate lengths and swing offsets, TRACK the PITCH
ghosts, PLAYHEADS the extra heads as lines, COMP / COMP 2 component bars,
AUTOMATION / AUTO LIST record marks (the row picked framed), MUTATE a
next-mutation chip. Gone: PATTERN's big bars and "PLAYHEADS" roll, the step
drawn large, the PLAYHEADS lanes, MUTATE's and AUTO LIST's panels.
SKIN BOTTOM retired: the menu steps AIR COLORS HUD; a stored 1 reads as AIR
(settings import, style_apply); HUD's SEQ pages take AIR's knob row on top
(lz_top). Tests, renders, manuals, README, manual shots, cheat sheet and hero
updated. Image 571344 -> 567116 B (-4228 B).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
Finger drumming at OCT 0 with REC armed over a beat whose steps carry a step RATCH x2..x4 or an
ECHO (DICE and GEN write them on random hat steps, fills): rec_drum put the key's hit into the step
and the step's remaining repeat parts (seq_ratchet -> seq_step SEQ_REP re-reads the step) struck it
again at once, so one press sounded x2..x4, and every pass after played it as that roll. Independent
of OCT and present in 0.9.14 too (the code is unchanged since 0.8.5); nothing in the 0.9.15 diff
(scan build flags, FX layer) touches the live key path, and host simulations of fast / overlapping /
short taps at OCT 0 give exactly one hit per press on both versions.
Fix: the free lane-mode code 7 becomes LM_ONCE. A plain hit recorded on a lane the step did not
play, into a step that repeats, gets LM_ONCE; seq_step leaves LM_ONCE lanes out of the repeat
parts. The step's own hits still roll; a lane already in the step rolls with it as before; a step
without repeats records exactly as before (no mode). step_lmode reads 7 as none (so do older
firmwares: there the hit rolls with the step, as it always did); FUNC keeps it.
Test: drumx_oct_test ONCE: early and late presses into RATCH x2/x3/x4 steps (once live, once on
the next pass, the hats still xN), again on the same step, a hat into its own step, ECHO, a plain
step, FUNC round trip. Fails without the fix. Flash +176 B (44 B free).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
GLITCH gets DENS / PITCH / SIZE / VARI while its key is down (repeats rising or
falling by PITCH, SKIP and CRUSH slices); TAPE STOP gets TIME / CURVE and, stopped,
KNOB 1 scratches the kept loop; SHUFFLE (C#5) plays the last bar's 1/16s in
another order from a 4-bit ADPCM ring in the same 32 KB; FREEZE (G#4) holds the
eighth after the press as grains. The FILTER sweep is gone (the FILTER macro is the
layer's one filter); SHUFFLE takes its key and lane code. Tests: perform_test
section 11, cpu_vg fx/* sections.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
The tester (0.9.15): "CLOUD does not work at SIZE 100 %, it seems disabled".
- SIZE 127 is FREEZE (the line stops being written). Since 0.9.14's fx_rest the
line is cleared in any pause, so turning SIZE to max and then playing froze an
empty line: silence at any RATE (also true in 0.9.13 from a fresh start). Now a
cleared line first takes a line's worth of sound (~0.74 s, fx.cl_fill), then
holds; a line already filled freezes at once, as before.
- 0.9.14's overlap cap scaled the grains by (gl >> 2) x CL_WMAX / ws: past 2 grains
(RATE ~90 up) they fell 12 dB at once. Now gl x CL_WMAX / ws with the cap at 1.25
grains, so ROOM's allpasses under it still do not clamp at ROOM_CLEAN's send:
RATE 127 within ~5 dB of RATE 0 (was ~14 dB under), no runaway.
cloud_hot_test: SIZE 127 from a cleared line at RATE 0..127 sounds (within 6 dB of
126) and holds after the send; RATE 127 within 8 dB of RATE 0 (fails on main).
Golden renders unchanged; flash +48 B.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh