Commit Graph
3 Commits
Author SHA1 Message Date
Claude bddf33cf28 MPC Sample: JIANT/Samples and slots.json, the SAMPLE BROWSER, recording, slots written back
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
2026-11-21 03:57:36 +00:00
Claude 8800f1b742 ports: full power on a bigger CPU, the load measured in real time
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
2026-11-20 15:17:18 +00:00
Claude 9f0ef52358 ports: JIANT FM as the MPC Sample's whole instrument
ports/mpc-sample: an app on keremimo's sample-base runtime (fetched at a
pinned commit), independent of any other app: the core at the MPC's
44.1 kHz in 128-frame blocks, JIANT's 240 x 240 screen in the middle of
the MPC's, the pads, buttons and knobs as the FM-1's panel
(src/jiant/panel_map.h), MIDI in from DIN and USB, the device's flash on
the card (JIANT/flash.img: copied out a second after a write, written on
the service thread, and on the way out). Tools: --self-test (the SD
boot runs it), --preview, --persist-write / --persist-read. The release
script makes the signed autorun zip for the card.

ports/core: the flash image in and out (jiant_flash_restore, jiant_flash,
jiant_flash_writes) and jiant_autosave_now for a port about to close.

.github/workflows/ports.yml: the core's test, the plugin, and the MPC
Sample app built and tested on ARM64 Debian bookworm, its zip an
artifact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-20 15:10:47 +00:00