Soundor 0.18.0
Release notes for Soundor 0.18.0.
21 changes — 14 features, 3 fixes, 4 breaking changes
Minor Changes
-
#326
8002969Thanks @dm-balakin! - Require every plugin to export its Rust processor and controller. Scaffold separate entry, controller and processor modules, including an empty controller when no native methods are configured.Run the same generated Rust NativeMethods contract in browsers through WASM, with instance stores, wake-driven async execution, control-thread scheduling, host services and resource publication to the separate AudioWorklet processor. Remove production WebNativeApi implementations and the browser host's native option. Move those methods to Rust and regenerate/rebuild existing projects. The portable Send/Sync bounds remain; unblock is native-only, and browser futures execute cooperatively on the main thread.
Packages:
create-soundor-app,soundor. -
#333
085d5a6Thanks @dm-balakin! - Add independent bounded MIDI observer destinations, explicit controller opt-in and task-context sends, subscription generation tracking and a shared JavaScript MIDI facade for runtime adapters.Packages:
@soundor/core,@soundor/environment,soundor. -
#333
23162f7Thanks @dm-balakin! - Add the MIDI 1.0 channel message contract, integer byte conversions, and independent host MIDI input/output configuration (both disabled by default).Packages:
@soundor/config,@soundor/core,@soundor/environment,soundor. -
#333
46649ccThanks @dm-balakin! - Add sample-offset MIDI processing, fixed input/output/publication buffers, a bounded nonblocking sender, explicit overflow recovery and allocation-counted lifecycle tests to the shared Rust SDK.Packages:
soundor. -
#333
c15667dThanks @dm-balakin! - Wire MIDI into native and Web processor hosting, the JavaScript module, controller transport and test runtime. Add bounded AudioWorklet delivery, explicit Web MIDI device routing, JUCE capabilities, VST3 host virtual input/conversion and optional Linux ALSA input. MIDI effects default to an audio-free layout.Packages:
@soundor/config,@soundor/runtime-sdk,@soundor/test-runtime,@soundor/vitest,soundor. -
#321
bb8b0a0Thanks @dm-balakin! - Breaking: native channels are now called native streams, so they are not confused with an audio buffer's channels. The behavior is unchanged: they still go from audio to the UI only, keep only the latest value, deliver at most one value per frame, and publish without locks or allocations.- Config:
native.channelsis nownative.streams, and no method can be calledstreams. - UI:
import { streams } from 'soundor:native', typedNativeStream<T>. - Rust:
ctx.streams.peak.publish(…).soundor::Streams,ValueStream,BufferStreamandStreamElementreplaceChannels,ValueChannel,BufferChannelandChannelElement.TestProcessor::stream()andstream_buffer()replacechannel()andchannel_buffer(). - C++:
soundor::native::Streamsreplacesnative::Channels, and the processor's member isnativeStreams. The engine'ssoundor/js/Streams.hdeclaresjs::ValueStream<T>andjs::BufferStream<T>, withjs::deliverStreams(),bind::connectStreams()andbind::installStreams().TickStatistics::streamsreplacesTickStatistics::channels. - Tests:
publishStream(name, value)from@soundor/testing-libraryreplacespublishChannel(). - Web: the generated contract exports
streamsto the project'sruntimes/webcode.@soundor/engine/web's processor takesstreamsand reports changes throughonStreams.
The Rust processor's binary interfaces keep their layout and their WebAssembly export names (
soundor_wasm_channel_*), so the processor ABI version is unchanged.Packages:
@soundor/config,@soundor/core,@soundor/test-runtime,@soundor/testing-library,@soundor/vitest,soundor. - Config:
-
#321
b7dbe5fThanks @dm-balakin! - Breaking (processor ABI 2): the Rust audio processor can read persistent state. A state field declared withaudio: truekeeps its usual persistence, presets and History, and the processor also reads it asctx.stateinprepare()andprocess().ctx.stateis a generatedsoundor::StateSnapshotthat holds only theaudio: truefields, typed as declared, so reading a UI-only field fails to compile. An audio field is a number, a boolean, or an array of them with amaxLength(StateArray<T, N>, which reads as a slice).maxLengthis an array's capacity. Any array field may declare one, and every value of the field is checked against it on every write path (sets, restored projects, factory presets, History).A change reaches the next block. A block sees one snapshot from start to end, and fields written together arrive together. Reading takes no lock, allocates nothing and copies nothing. Natively, the engine's
processor::AudioState(a triple buffer thatPersistentState::audioState()owns) hands snapshots to the audio thread. In the browser, the page posts each snapshot to the AudioWorklet (ProcessorNode.setState()), which writes it into the module between render quanta.The processor ABI is now version 2:
SoundorPrepareandSoundorBlockcarry the state, andSoundorProcessorInfoandRustContractits size. Rebuild a plugin's processor with this SDK.TestProcessor::state_mut()sets the state in tests.Packages:
@soundor/config,@soundor/core,soundor. -
#321
439c5f4Thanks @dm-balakin! - The Rust audio processor gains audio resources: immutable data of any length that the processing reads, such as a wavetable, an impulse response or a lookup table. Declare them undernative.resources(wavetable: { type: 'buffer<float32>' }), publish them fromprepare()(ctx.resources.wavetable.publish(table), which moves the value instead of copying it), and read them inprocess()(ctx.resources.wavetable.get(), a&[f32]that stays the same for the whole block). The latest publication wins.Taking and reading a resource never allocates, frees, locks or waits. A replaced resource is freed off the audio thread: by the next publication, the next
prepare(), or when the processor is destroyed. Resources are not saved with the plugin and are not part of presets or History. They live in the Rust SDK alone, so the processor ABI is unchanged.Packages:
@soundor/config,@soundor/core,soundor. -
#328
3f303a0Thanks @dm-balakin! - Remove thesoundor initcommand and runtime initialization hook. Runtime authors now implement onlygen,dev,build, anddoctor. Both first-party hosts remain package-managed, including the legacy-host migration diagnostics.soundor gencreates a Rust starter crate whenlib/Cargo.tomlis absent, preserving existing files and leaving existing crates untouched; development and builds run it automatically. Check mode remains read-only. New projects run generation after dependency installation.Packages:
@soundor/config,@soundor/runtime-sdk,create-soundor-app,soundor. -
#307
d3fe0e2Thanks @dm-balakin! - Breaking: a plugin's audio processing is Rust, in the project'slib/crate, and the JUCE runtime runs it.soundor initscaffoldslib/(a processor and its tests) andrust-toolchain.toml;soundor genwrites thesoundorcrate the processor depends on, the Rust SDK shipped in thesoundorpackage, with the config's parameters, read-only parameters, native streams and audio layouts typed for it;soundor devandsoundor buildcompile it with Cargo, andsoundor doctorchecks for Rust. The generatedsoundor::AudioProcessornow implementsprepareToPlay(),reset()andprocessBlock()itself and calls the Rust processor through its C ABI: a JUCE processor no longer implementsprocess(), and a project'sPluginProcessorkeeps only what is not processing (its editor, its buses without anaudiodeclaration, its native API). Runtimes receive the crate asctx.lib.Rust static libraries link directly using the plugin's existing export controls. Windows needs no LLVM archive/object rewriting tools, and Linux Release binaries still omit debug information.
Packages:
@soundor/config,create-soundor-app,soundor. -
#307
3734cf5Thanks @dm-balakin! - Breaking: the Web runtime runs the plugin's Rust processor,lib/, the one the JUCE plugin runs:soundor dev webandsoundor build webcompile it with Cargo forwasm32-unknown-unknown, the bundle carries the module, and the host runs it in an AudioWorklet (no wasm-bindgen, noSharedArrayBuffer, render quanta of any length), with the parameters and the transport posted to it and what it publishes (read-only parameters, native streams) brought back to the UI.startSoundorWebHost()no longer takesaudio, andWebAudioSetupis gone: deleteruntimes/web/src/audio.tsand move its processing intolib/.initno longer scaffoldsaudio.ts, andsoundor doctorchecks for thewasm32-unknown-unknowntarget. The Rust SDK'ssoundor::export!also defines the WebAssembly exports the worklet calls (soundor_wasm_*), on that target only.createProcessorNode()runs a processor module in anyBaseAudioContext.Packages:
soundor. -
#325
ec9f9e7Thanks @dm-balakin! - A plugin'ssoundor:nativemethods can be Rust: the crate's controller, on the control thread beside the UI, typed by soundor.config, with async tasks that schedule back onto it.soundor(the Rust SDK): breaking, the processor traitAudioProcessoris nowProcessor(impl Processor for PluginProcessor); its lifecycle is unchanged. New:Controller(type Local,type Shared: two stores Soundor owns per plugin instance), the generatedNativeMethodstrait (every configured method required, with its types, sync or async as declared; a config without methods needs noimpl),TaskContext(the stores, typedparamsandstate,history,presets, the processor's resources; neitherSendnor kept past its call),AsyncTaskContext(owned andSend: the shared store, the resources, andschedule(), lazy, cancelled when dropped while queued, never interrupted once running),soundor::unblock(),soundor::Error,soundor::types(the config's native types), andsoundor::testing::TestControllerwithTestHost.soundor::export!(PluginProcessor, PluginController)exports a controller with the processor;soundor::export!(PluginProcessor)still exports a processor alone.soundor initscaffoldslib/src/controller.rswhen the config declares methods, and names the processorPluginProcessor.@soundor/core:describeController(), the controller descriptor both the Rust SDK and the runtime's generated code hold.@soundor/engine:soundor/processor/RustController.h(processor::RustController,ControllerServices,ControllerContract) andRustControllerAbi.h, the bridge to a controller's C ABI, and genericsoundor:nativebindings (js/RustMethods.h) that check and convert values as the generated C++ bindings do, settle async methods' promises when the controller is pumped and run the context's microtasks after.RustProcessor::nativeHandle().@soundor/juce-runtime: the generated processor creates the Rust controller with the plugin instance (rustController()), backs it with the parameter editors, state store, History and presets, pumps it on the message thread through anAsyncUpdater, and shuts it down first; every editor installs its methods (native::installController()), ahead ofcreateNativeApi().SoundorNative.hholds the controller descriptor.
Packages:
@soundor/core,soundor. -
#331
f28464cThanks @dm-balakin! - Breaking: the plugin's Rust processor and controller library now lives inlib/. Renamenative/tolib/, update Cargo manifest paths in scripts and tooling, and runsoundor gen. Legacy and ambiguous layouts produce a migration error without changing user files.Runtime authors must use
ctx.lib,LibraryBuildContext,LibraryBuildRequest, andLibraryArtifactin place of the Rust crate's native-named context and types. Cargo options, processor/controller ABI, and the publicsoundor:nativemethods/events API are unchanged. Both JUCE and Web compile the same library for their targets.Packages:
@soundor/config,@soundor/runtime-sdk,create-soundor-app,soundor. -
#303
78f82f2Thanks @dm-balakin! - Declare plugin kind, categories and vendor metadata, audio buses and complete supported layouts, latency/tail reporting, parameter groups and a host bypass role. Generate JUCE host integration and explicit browser channel counts, with validation for unsupported browser buses. Existing projects retain handwritten audio setup unless they opt into the audio contract. MIDI and presets are separate features.Packages:
@soundor/config,@soundor/core,@soundor/test-runtime. -
#303
a718364Thanks @dm-balakin! - Declare validated factory presets in config and load them synchronously through soundor:presets or the generated C++ processor. Share the existing parameter/state stores and StateHistory, including opt-in atomic undo entries, nested transactions, selection and modified tracking, and restoration matching. Expose JUCE host programs from the same catalog; preserve DAW state/preset compatibility without changing the snapshot format. Include matching Web and simulated runtime APIs.Packages:
@soundor/config,@soundor/core,@soundor/environment,@soundor/runtime-sdk,@soundor/test-runtime,@soundor/vitest. -
#306
84678d1Thanks @dm-balakin! - Renamesoundor:state-historytosoundor:history, itsstateHistoryexport tohistory, and itsStateHistoryinterface toHistory. Rename the React hook touseHistoryand the generated JUCE processor member tohistory. Update imports, hook calls, and native member access to the new names.Packages:
@soundor/core,@soundor/environment,@soundor/react,@soundor/vitest. -
#339
dbb5055Thanks @dm-balakin! - Add hooks for the external state a plugin UI reads, so a component no longer callsuseSyncExternalStoreon asoundor:*module:useEditorVisibility(),useEditorFocus(),useEditorSize()(the editor's own size, besideuseViewSize()),useHostState(),usePresetSelection(presets)anduseNativeStream(stream).usePresetSelection()takespresetsfromsoundor:presetsinstead of importing it, so a plugin that shows no presets needs nothing from that module. Each takes the same stable snapshots the modules already supplied, so it re-renders once per change and subscribes while the component is mounted.useParameter(),useStateValue()anduseNativeStream()now subscribe once for as long as their source stays the same, whereuseParameter()anduseStateValue()subscribed again on every render. The docs, examples andsoundor:*declarations use the hooks.Packages:
@soundor/environment,@soundor/react. -
#344
49d772dThanks @dm-balakin! - Add the opt-inwillChange: 'transform'style. The web renderer forwards the hint to CSS. The native renderer can reuse a cached subtree when only that view's transform changes.Packages:
@soundor/environment,@soundor/test-runtime.
Patch Changes
-
#301
523daccThanks @dm-balakin! - Clean up lint warnings and update callback references after React commits, keeping installed listeners stable.Packages:
@soundor/config,@soundor/core,@soundor/devtools-client,@soundor/devtools-server,@soundor/driver,@soundor/expression,@soundor/react,@soundor/test-runtime,@soundor/testing-library,@soundor/vitest-e2e,create-soundor-app,soundor. -
#307
6c7e0d9Thanks @dm-balakin! - Add allocation instrumentation to the Rust processor testing harness and the scaffold's tests. Count allocator calls only while processing, with a required counting allocator so missing instrumentation cannot pass silently. Exercise the Rust SDK, native FFI, JUCE adapter and example processors; compare Orbit's real VST3 output with its WebAssembly build. Document the shared Rust processor lifecycle, generated config contract, Cargo dependencies, runtime boundaries, testing and migration.Reuse prepared WebAssembly parameter, transport and channel views during processing, including partial and oversized blocks. Preallocate the worklet's channel arrays and silence missing inputs without allocating fallback buffers. Unexpected WASM memory growth fails silently instead of rebuilding views in the callback. Browser publication messages still allocate; these checks do not claim a hard real-time guarantee.
Packages:
soundor. -
#327
a114b13Thanks @dm-balakin! - Manage the complete Web host inside the runtime package, without a scaffolded runtimes/web project. Configure built-in input sources with webRuntime({ inputs }) or supply a browser TypeScript/JavaScript module and compose custom inputs with factories from @soundor/web-runtime/input. Custom input modules use a separate browser TypeScript project; projects using built-in inputs need no browser configuration. Legacy web host directories require explicit migration; the user-owned Vite integration entry is removed.Packages:
create-soundor-app.