Skip to Content
Soundor Skills

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
LocationOwnerRule
soundor.config.tsyouEdit, then npm run gen and restart dev.
src/youThe UI. Rebuilds and reloads live in dev.
lib/youThe crate. gen creates it once and never overwrites it.
.soundor/generatedSoundorRewritten by gen. Change the config instead.
.soundor/uiSoundorUI bundles.
.soundor/distSoundorRelease builds: what you ship.
.soundor/debugSoundorDebug builds with DevTools: for tests and inspection, never ship.
.soundor/devSoundordev session files and build.log.

Scripts

ScriptRuns
npm run devsoundor dev <first runtime>
npm run dev:websoundor dev web (when both runtimes are chosen)
npm run buildsoundor build: every runtime
npm run build:vst3soundor build vst3 (when both are chosen)
npm run build:websoundor build web (when both are chosen)
npm run doctorsoundor doctor: toolchain, config, runtimes
npm run gensoundor gen: types and the Rust SDK
npm run test:rustsoundor gen && cargo test --manifest-path lib/Cargo.toml
npm run typechecksoundor 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:parameters in the UI, ctx.params in Rust) and state fields declared with audio: true (ctx.state).
  • Processor to UI: read-only parameters (ctx.publish) and native streams (ctx.streams, useNativeStream in 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.

On this page