- 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
web/studio/ (published at /JIANT/studio/; .github/workflows/emulator.yml):
- One page in each firmware's look (JIANT FM: cream, violet and the heat gradient, Michroma, the horizon grid;
JIANT BYTE: stars, synthwave stripes, pixel type), chosen by the firmware the FM-1 runs (INFO's engines: MATH is
BYTE's) or by hand. Home in steps (connect, install, use it) after Melodee's installer, with the help that matters.
- A target for everything: the FM-1 over USB, or the emulator.
- Install / Editor / Emulator: the sites' own pages in frames (JIANT FM's from /JIANT/, BYTE's from /JIANT-BYTE/: one
origin), dressed in the look, without their own headers. The editor connects by itself to the FM-1 Studio found.
- Screen: the FM-1's (78 SCREEN / 79 SCREEN_DATA) or the emulator's, straight to full screen; square, the width in
portrait and the height in landscape, the controls beside; sharp or smooth pixels; the phone kept awake.
- Record: the FM-1's USB audio (stereo, or USB > STEMS's 8 channels: T1..T6, FX, the mix, as a ZIP) or the emulator's
output, as WAV; what comes in over MIDI as a .mid; a song's offline stems through the emulator's panel.
- Install safety: on the jiant-midi channel like every MIDI page: lets the FM-1 go while an installer writes.
- dev_server.py: the published layout on this computer (local tools, the live site for the rest).
The emulator answers the whole editor (web/emu/editor-api.h: the firmware's editor.c, as the ports' core runs it; built
into felucca.wasm by web/emu/build.sh), so with target Emulator the editor edits the FM-1 in the browser; the emulator
lets Studio record its output and choose which MIDI input plays it.
editor.html: ?emu=1 inside Studio edits the emulator; the Screen button goes full screen at once.
Tests: web/studio/studio_test.mjs (screen frames as the editor's and the firmware's, WAV / ZIP / MIDI, the words),
web/studio/browser_test.mjs (Chromium: detection, the screen and full screen both ways, install safety, the editor on
the emulator, recording), in tests/run_tests.sh.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRnhKjiABTzc6Ety3dd
SAMPLE opens the browser over the screen as the app draws it: pads pick the slot, the wheel the file, the soft keys
CLOSE / PLAY (audition) / LOAD, ERASE clears, SAMPLE SELECT the source (RESAMPLE; LINE and MIC through getUserMedia,
asked on the click), SAMPLE REC records. The files are the samples the user adds (a picker or dropped on the page,
decoded at 44.1 kHz), kept in IndexedDB; the slots' map in localStorage reloads them at power on; a slot JIANT changed
comes back as slotNN.wav; every slot downloads as a WAV. worklet.js: the slots' messages between render quanta (no
allocation inside one), the input before the render, a level meter; felucca.wasm and the FM-1 pages run as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
- ENV DEST > LOOP (track parameter 8, once the unused ENV DEST FX): a held note's
envelope starts its attack again at the sustain
- HOME tapped twice: M1..M4 latched on HOME's knobs and screen until HOME is tapped
again there
- MACRO DICE: each power-on gives every track with no macro route two random routes
to what its sound has (seeded per session; the emulator from the page); with LFO
held F3 rolls new ones, G3 clears them
- Tests: ENV LOOP, the latch, the dice
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
- SAMPLE / GRAIN lose USR1..3 (stored 5..7 clamp to the PIANO alias);
SLICE SRC 1..3 become aliases of BREAK, DIV MAN is gone (a stored MAN
plays AUTO). Factory sets, BREAK and PIANO stay; the missing-sample sine
stays for builds without the CC0 samples.
- Gone: slice_store.c, ui_slice.c and the EDIT > SLICES page, the AUTO
scan of user slots, the editor's SMP_* commands (11..15 reserved),
backup ids 32..34, tools/fm1_sample_upload.py, the web Samples tab.
- Older backups with sample entries still restore (those entries skipped).
- Flash 0xA0000..0xDBFFF is free for the songs; app image -9 KB, RAM -6.5 KB.
- Tests rewritten for BREAK / PIANO only; README and plan updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
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.
Sequencer: RATCH, a step's ratchet x1..x4 on SEQ > CHANCE (KNOB 3): a
NOTE step plays its notes and drum hits 2..4 times in equal parts of
the step, one chance roll for all of them, no slide or tie out; drawn
in its parts on the piano roll and the drum grid. Kept in projects
(FUN8 layout unchanged, bit 7 of the velocity and chance bytes), backups
and user preset patterns; editor protocol INFO 52 01 04, a ratchet byte
after the chance (#47, Discussion #77, PR #100 by zednaked, ported).
LEDs: what can be pressed breathes, dark to ~60 % of lit and back (DIM
LO ~30 %), instead of blinking; what is in effect stays lit (#119).
DRUM: KIT HAND, CYM and H+CYM retired; their values stay as aliases and
play 66, 10 and 77. MENU in tabs (DISPLAY CONTROL AUDIO SYSTEM):
ALGORITHM = tab, PRESETS = row, any KNOB or OCT- / OCT+ = value, HOME
closes; MENU_DESC ends with the item's tab (index, name).
Co-authored-by: Thiago Gonçalves <zednaked@gmail.com>
DRUM: five more kits on KIT (80, 10, 66, 55, 77) in the manner of
classic analog drum machines, every lane its own synthesized voice; a
key-off before the first audio block no longer loses the hit. SLICE
gets PIANO as a source next to BREAK (SRC 4, the SAMPLE PIANO middle C).
An empty or invalid sample slot, or a missing built-in set, plays a sine
at the note's pitch on SAMPLE, GRAIN and SLICE, with a NO SAMPLE alert
(SAMPLE NOT FOUND on the SLICES page). The PRESETS knob
changes the sound on every page that is not a list and moves the step
cursor on the SEQ pages (Discussions #92, #94); REC held on the SEQ
pages clears the sequence after asking (#91, #108); on STEP the keys
light the cursor step's notes while stopped (#89); MOTION is now called
AUTOMATION (#93). The web editor reads and changes the MENU settings
(MENU_DESC 72, MENU_SET 73). OCT- pressed quickly with GLO, SCL, EDIT
or, with FX LATCH, FX (all off) now acts. The firmware runs in the
browser: web/emu, after charlesvestal's X0X (#101). EDIT layer: the
engine cells are 20 px tall, 8 px clear of the sound row.