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