Upload SYNC.md
Browse files
SYNC.md
CHANGED
|
@@ -8,9 +8,13 @@
|
|
| 8 |
**Your ENTIRE job is these commands:**
|
| 9 |
```bash
|
| 10 |
cd ~/pluginbridge && git pull
|
| 11 |
-
|
|
|
|
|
|
|
| 12 |
```
|
| 13 |
|
|
|
|
|
|
|
| 14 |
**If build succeeds:** Reply "β
build ok" β nothing else.
|
| 15 |
|
| 16 |
**If build fails:** Reply with ONLY the first 3 errors:
|
|
@@ -24,17 +28,37 @@ cd build && cmake --build . --config Release 2>&1 | tail -30
|
|
| 24 |
- Write code
|
| 25 |
- Add commentary
|
| 26 |
|
| 27 |
-
##
|
| 28 |
-
|
| 29 |
-
```bash
|
| 30 |
-
rm -f ~/Library/Application\ Support/PluginBridge/blocklist.txt
|
| 31 |
```
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
|
| 37 |
## Status
|
| 38 |
-
**Last push:** 2026-05-
|
| 39 |
-
**Build:** Needs
|
| 40 |
-
**Test:** Restart Ableton β load PluginBridge β select Pro-Q 4 β should
|
|
|
|
|
|
| 8 |
**Your ENTIRE job is these commands:**
|
| 9 |
```bash
|
| 10 |
cd ~/pluginbridge && git pull
|
| 11 |
+
rm -rf build && mkdir build && cd build
|
| 12 |
+
cmake .. -DCMAKE_C_COMPILER=/usr/bin/cc -DCMAKE_CXX_COMPILER=/usr/bin/c++
|
| 13 |
+
cmake --build . --config Release 2>&1 | tail -40
|
| 14 |
```
|
| 15 |
|
| 16 |
+
NOTE: Full clean rebuild needed β architecture changed from v0.3 (in-process) to v0.4 (out-of-process with CARemoteLayerServer).
|
| 17 |
+
|
| 18 |
**If build succeeds:** Reply "β
build ok" β nothing else.
|
| 19 |
|
| 20 |
**If build fails:** Reply with ONLY the first 3 errors:
|
|
|
|
| 28 |
- Write code
|
| 29 |
- Add commentary
|
| 30 |
|
| 31 |
+
## Architecture (v0.4 β CARemoteLayerServer)
|
| 32 |
+
|
|
|
|
|
|
|
| 33 |
```
|
| 34 |
+
PluginBridge.vst3 (inside Ableton):
|
| 35 |
+
βββ PluginBridgeProcessor (audio via shared memory)
|
| 36 |
+
βββ PluginBridgeEditor.mm (displays CARemoteLayerClient layer β plugin GUI inside Ableton window)
|
| 37 |
+
βββ HelperConnection (spawns helper, IPC, shared mem)
|
| 38 |
+
βββ McpServer (port 16620)
|
| 39 |
+
βββ Blocklist (~/Library/PluginBridge/blocklist.txt)
|
| 40 |
+
|
| 41 |
+
PluginBridgeHelper.app (separate process, crash-safe):
|
| 42 |
+
βββ main.cpp (JUCE app, --pid argument)
|
| 43 |
+
βββ HelperPluginHost.mm (loads plugin, audio, CARemoteLayerServer for GUI)
|
| 44 |
+
βββ HelperIPC.cpp (commands + mouse/key event forwarding)
|
| 45 |
+
βββ SharedAudioBuffer.h (shared memory audio bridge)
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
**How GUI works:**
|
| 49 |
+
1. Helper loads plugin β creates editor β renders into CARemoteLayerServer
|
| 50 |
+
2. Helper registers Mach port via NSMachBootstrapServer (named per PID)
|
| 51 |
+
3. Helper sends "gui_ready" notification with port name + size to host
|
| 52 |
+
4. PluginBridge.vst3 looks up Mach port β creates CARemoteLayerClient
|
| 53 |
+
5. Adds client.layer as sublayer of JUCE editor's NSView
|
| 54 |
+
6. Plugin GUI appears INSIDE Ableton's plugin window (no separate window)
|
| 55 |
+
7. Mouse/keyboard events forwarded from host β helper via IPC
|
| 56 |
|
| 57 |
+
**Crash safety:** Plugin crashes kill only the Helper. Ableton survives.
|
| 58 |
+
**Fullscreen:** CALayer is part of the view hierarchy β follows into fullscreen.
|
| 59 |
|
| 60 |
## Status
|
| 61 |
+
**Last push:** 2026-05-17 β v0.4 complete rewrite (CARemoteLayerServer architecture)
|
| 62 |
+
**Build:** Needs clean rebuild (rm -rf build)
|
| 63 |
+
**Test:** Restart Ableton β load PluginBridge β select Pro-Q 4 β GUI should appear inside PluginBridge's editor (no floating window). Then test Kickstart 2 β should NOT crash Ableton (Helper crashes, gets blocklisted).
|
| 64 |
+
**Also clear blocklist:** `rm -f ~/Library/PluginBridge/blocklist.txt`
|