The FM-1 panel gives way to a DAW layout in the site's JIANT look (dark
body, dot grid, heat line, orange brackets, value rings, DotGothic16 and
IBM Plex Mono): the live screen in the middle at an integer scale (wheel
or drag: SELECT, with SHIFT the track), the buttons as tabs under it,
the page knobs as big rings, SELECT / PRESETS / ALGO / MASTER small; the
six tracks (engine, preset, level, mute; click selects) and a one-octave
audition strip; the selected track's sound read from the firmware's own
descriptors through the editor protocol (engine, presets, the eight EDIT
parameters as rings); the sample browser over the right side; a JIANT
n/8 badge, transport, tempo and CPU. Resizable, aspect kept.
The processor reads the tracks from the device every ~0.1 s on the
audio thread (TRACK, TRACK_DUMP), takes the editor's protocol requests
through its command queue, and adds host parameters for automation:
T1..T6 Level, T1..T6 Cutoff, DJ Filter, fixed to their tracks and
following the device. plugin_check: a level from the host silences and
restores track 1, a level set in the device moves T2 Level. editor_shot
writes the main view, the sample browser and a track's sound.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
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
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