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
This commit is contained in:
Claude committed 2026-11-23 14:07:35 +00:00
1 parent d057f34940
commit 8a8c0d04af
17 files changed
+1261 -62

No files matched your search

+5 -2
View File
@@ -90,8 +90,11 @@ jobs:
- name: the plugin loaded as a host loads it; the editor's picture
run: |
A=build/juce-plugin/JiantFM_artefacts/Release
xvfb-run -a build/juce-plugin/plugin_check_artefacts/Release/plugin_check "$A/VST3/JIANT FM.vst3"
xvfb-run -a build/juce-plugin/editor_shot_artefacts/Release/editor_shot build/juce-plugin/editor.png
B=build/juce-plugin
xvfb-run -a $B/sysex_check_artefacts/Release/sysex_check
xvfb-run -a $B/sample_check_artefacts/Release/sample_check $B/sample_state.bin
xvfb-run -a $B/plugin_check_artefacts/Release/plugin_check "$A/VST3/JIANT FM.vst3" $B/sample_state.bin
xvfb-run -a $B/editor_shot_artefacts/Release/editor_shot $B/editor.png
cd "$A" && zip -qr "$GITHUB_WORKSPACE/JIANT-FM-Linux.zip" "VST3/JIANT FM.vst3" "LV2/JIANT FM.lv2" "Standalone/JIANT FM"
- uses: actions/upload-artifact@v4
with: