Commit Graph
4 Commits
Author SHA1 Message Date
Claude 8a8c0d04af JUCE plugin: samples, dropped or loaded, recorded, saved in the session
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
2026-11-23 14:07:35 +00:00
Claude d057f34940 JUCE plugin: up to 8 JIANTs in one session, each its own device
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
2026-11-23 13:43:17 +00:00
Claude 6f0bda3e42 plugin_check: an unambiguous String on Windows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq
2026-11-20 17:51:05 +00:00
Claude c545061911 ports: JIANT FM as VST3, AU, AUv3, LV2 and an app (JUCE)
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
2026-11-20 15:48:40 +00:00