Plugin brief
A reference of the soundor-create-plugin skill.
soundor-create-plugin reads this reference when a task needs it. Source on GitHub
Write the brief before scaffolding, and show it to the user when anything
in it was assumed rather than asked. It turns into soundor.config.ts
almost line by line.
Questions to settle
| Topic | Ask | Becomes |
|---|---|---|
| Purpose | What does it do to the sound, in one sentence? | plugin.name, plugin.categories |
| Kind | Does it process audio, or make sound from MIDI notes? | plugin.kind: 'effect' or 'instrument' |
| Channels | Mono, stereo, or both? A sidechain? | audio.buses, audio.layouts |
| MIDI | Does it receive notes or controllers? Send MIDI? | midi: { input, output } |
| Controls | Which values does the user set, with which ranges? | parameters |
| Displays | Meters, spectra, gain reduction, a playhead? | native.streams or read-only parameters |
| Saved data | Anything kept with the session that is not a parameter? | state |
| Presets | Factory presets? | presets |
| Window | Size, and may the user resize it? | editor |
| Runtimes | A VST3 for DAWs, a web build for the browser, or both? | the runtimes chosen when scaffolding |
| Platforms | Which operating systems must the VST3 run on? | where it must be built (no cross-builds) |
| Identity | Whose plugin is it? (a domain they own, for the id) | plugin.id, plugin.vendor |
Choices the current runtimes do not have are worth saying early: the web
runtime supports one main input and one main output in mono or stereo only
(no sidechain, no surround); a VST3 is built on, and for, the machine that
builds it; midiEffect plugins are not supported yet; dynamic latency is
reported to VST3 hosts as zero. Check the installed version's documentation
for what changed since.
Parameters
For each parameter, write:
- id: camelCase, short, permanent (
cutoff,drive,mix). Hosts store automation and sessions by it. - label: what hosts and the UI show; may change later.
- type:
float32for continuous values, an integer type for counts,booleanfor switches,choicefor modes (new options go at the end). - range and default, with a
unit(dB,Hz,ms,%). - mapping:
'log'for frequencies and times spanning decades, a power curve where the low end needs more travel, linear otherwise. - access:
'automatable'(default),'manual'for costly switches,'readOnly'for values the processing reports (a meter).
A dB-labelled parameter should hold decibels, converted to linear gain in
the processor. A linear 0 to 1 value labelled dB shows wrong numbers to
the host.
Example: a stereo distortion
Drive, a stereo distortion effect. Soft clipping with drive, tone and mix, output gain, and an output meter. VST3 and web.
| id | type | range | default | unit | mapping |
|---|---|---|---|---|---|
drive | float32 | 0 to 36 | 12 | dB | linear |
tone | float32 | 500 to 12000 | 4000 | Hz | log |
mix | float32 | 0 to 100 | 100 | % | linear |
output | float32 | -24 to 12 | 0 | dB | linear |
bypass | boolean | false | role: 'bypass' |
- Audio: stereo in, stereo out (and mono to mono).
- Display: a
float32streamoutputPeak, in dBFS, published every block. - Editor: 640 × 360, fixed size.
- Risks to check: aliasing at high drive (consider oversampling), level
jumps when
drivemoves (smooth it), DC offset after asymmetric clipping.