Audio files (WAV, AIFF, FLAC, MP3, OGG through JUCE's format manager)
dropped anywhere on the editor, or loaded from the new sample browser
(16 slots: pick, LOAD, CLEAR, name, length, channels), are made into
sample objects on the message thread and handed to the audio thread by
pointer; jiant_service runs on a 100 ms service timer. JIANT's own REC
works: the master and tracks, and the input when the host gives the
plugin its new Input bus (off by default, not on AU), resampled to
44.1 kHz with the output. The state embeds every slot's audio as FLAC
(lossless) with its name and file, cached between saves.
sample_check: a WAV dropped on the editor lands in slot 1 and SAMPLE
plays it, REC MST records a bar into slot 2, a new instance restores
both and plays them; plugin_check loads that state into the built VST3.
The editor's fonts (DotGothic16, IBM Plex Mono, OFL) are embedded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
The core is compiled 8 times (ports/core/jiant_copy.c), each copy one
translation unit with every external symbol renamed by the preprocessor
(copy_symbols.h, made from the core's object by build.sh symbols and
checked by build.sh test), its API a table of functions
(jiant_copies.h). A plugin instance claims a free copy and gives it back
when it goes; a 9th stays silent. No object tools: the same on Linux,
Windows (clang-cl) and macOS. The copies' symbols stay hidden.
copies_test: copy 0 plays what the single core plays, sample for sample;
three copies on three threads play what three others play one after
another, bit for bit; one copy's music and samples touch no other's.
plugin_check: 4 instances on 4 threads, each its own sound, a note into
one only there, states per instance, 8 sounding, the 9th silent, a
closed one's JIANT taken by a new instance.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
- 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
ports/juce-plugin: the core in a JUCE instrument, its editor JIANT's own
screen and the FM-1's panel as the emulator draws it (knobs, buttons,
27 keys, lights; mouse, multi-touch, keyboard); MIDI in, Sync Host from
the host's transport, Volume and Sync parameters, the music in the
session, any sample rate, one device a session. VST3 / AU / AUv3 on
macOS, AUv3 and the app on iOS (AUM), VST3 on Windows, VST3 / LV2 on
Linux, standalone everywhere.
tests/plugin_check.cpp loads the built plugin as a host does (a chord at
44.1 / 48 / 96 kHz, blocks 32..1024, silence after the note-offs, the
state out and back, a second instance silent, the editor);
tests/editor_shot.cpp paints the editor to a PNG. On Linux both pass.
CI (ports.yml) builds and checks Linux, macOS (with auval), iOS (an
unsigned .ipa) and Windows.
ports/core: stubs for the host tests' fork on iOS and their POSIX calls on
Windows (ports/core/compat), a Windows clock for the real-time load.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq