The generated project
A reference of the soundor-create-plugin skill.
soundor-create-plugin reads this reference when a task needs it. Source on GitHub
What create-soundor-app makes (Soundor 0.21), who owns each part, and the
scripts it adds. Check the installed version's files: templates change.
my-plugin/
soundor.config.ts the plugin's contract: identity, parameters, audio,
MIDI, native API, state, presets, editor, runtimes
src/index.tsx mounts the UI: render(<App />)
src/App.tsx the UI, in React with @soundor/react
lib/Cargo.toml the Rust crate; depends on the generated SDK by path
lib/Cargo.lock commit it
lib/src/lib.rs soundor::export!(PluginProcessor, PluginController)
lib/src/processor.rs the audio processing (audio thread)
lib/src/controller.rs the Rust behind soundor:native's methods (control thread)
lib/tests/ processor, controller and allocation tests
rust-toolchain.toml Rust stable
tsconfig*.json the UI's TypeScript projects
.soundor/ generated and build output: never edit, never commit| Location | Owner | Rule |
|---|---|---|
soundor.config.ts | you | Edit, then npm run gen and restart dev. |
src/ | you | The UI. Rebuilds and reloads live in dev. |
lib/ | you | The crate. gen creates it once and never overwrites it. |
.soundor/generated | Soundor | Rewritten by gen. Change the config instead. |
.soundor/ui | Soundor | UI bundles. |
.soundor/dist | Soundor | Release builds: what you ship. |
.soundor/debug | Soundor | Debug builds with DevTools: for tests and inspection, never ship. |
.soundor/dev | Soundor | dev session files and build.log. |
Scripts
| Script | Runs |
|---|---|
npm run dev | soundor dev <first runtime> |
npm run dev:web | soundor dev web (when both runtimes are chosen) |
npm run build | soundor build: every runtime |
npm run build:vst3 | soundor build vst3 (when both are chosen) |
npm run build:web | soundor build web (when both are chosen) |
npm run doctor | soundor doctor: toolchain, config, runtimes |
npm run gen | soundor gen: types and the Rust SDK |
npm run test:rust | soundor gen && cargo test --manifest-path lib/Cargo.toml |
npm run typecheck | soundor gen && tsc -b |
npx soundor build vst3 --debug makes the Debug VST3 that end-to-end tests
and Soundor Driver load, in .soundor/debug/vst3/.
How the pieces talk
- UI to processor: parameters (
soundor:parametersin the UI,ctx.paramsin Rust) and state fields declared withaudio: true(ctx.state). - Processor to UI: read-only parameters (
ctx.publish) and native streams (ctx.streams,useNativeStreamin the UI). - UI to Rust on the control thread: native methods (
soundor:native), implemented by the controller, which can publish resources the processor reads.
The UI never calls the processor directly, and JavaScript never runs on the audio thread.