Optional macOS embedded editor¶
Build with --native-editor to include the Rust-owned WebKit editor C ABI and
public gain UI codecs. The default bundle remains DSP-only. CMake's
RAVET_GAIN_EDITOR=ON requires the corresponding Rust static-library feature.
Only macOS/Cocoa NSView embedding is advertised; no floating window or other-OS
editor support is inferred. The host owns its AppKit/run loop/window and serialized
UI lifecycle. The view retains its controller and native callback entry retains
the view while edits/snapshots run.
The compiled local page uses reusable slider/number and bypass controls with physical gain values. Rust validates bounded edit JSON against stable gain IDs, clamps/snaps physical values and emits normalized host units; Rust also encodes controller snapshots and edit status. SDK code owns begin/perform/end edits and controller writes. Accepted edits reach the host through ordinary normalized parameter automation, with no direct audio-thread/DSP mutation. Rejected perform edits restore the controller value and display an error. A rejected end retains host gesture ownership, retries during coalesced UI snapshots and rejects removal until that end succeeds; forced destruction can only attempt another end.
Host automation refreshes unfocused controls without sending new edits. Initial size is 480×480 logical pixels; explicit resize accepts 360×300 through 1200×900, with size-constraint clamping. Removal destroys the native child independently of processing; the same IPlugView can reattach with current controller values. The page includes four input/output meters when the host forwards processor output parameter changes. The editor option registers twelve additional hidden, read-only, nonautomatable parameters (IDs 10..21): peak/RMS/diagnostic triples for input L/R, output L/R. Levels normalize 0..4 and saturate for UI telemetry; DSP audio/f64 meters retain their precision. Diagnostic values flag nonfinite samples. The audio owner copies native meter records and emits one value per parameter at the last sample of a successful nonempty block. Missing/rejecting host queues drop telemetry without failing audio. Empty/rejected blocks and stopped processing retain prior displayed values. Hosts deliver parameters individually, so the UI does not claim an atomic complete-block meter snapshot. These transient values are absent from RAVET's gain/bypass state record.
The controller feeds the Rust meter snapshot codec and local AccessibleMeter controls; no live DSP pointer crosses to the UI. Accessibility attributes/text are emitted, while actual assistive-technology use remains unvalidated.
The bundle script runs SDK processor/state contracts and the 47-test validator, then loads the actual exported module into a synthetic Cocoa host for three editor cycles and same-view reattachments. Its programmatic checks cover gain/ bypass edits, held multiple keys, nonfeedback host refresh, rejected value rollback, rejected-end retry/removal retention, size bounds and actual exported processor-to-host-to-controller meter rendering/diagnostic text. Native screenshot inspection confirms readable controls/status. This is actual-bundle native editor evidence; REAPER interaction, focus/assistive-tech and other-platform checks remain unvalidated. See decision 0077.
The shared Rust gain library also exposes an immutable complete program catalogue
through RavetGainPrograms.h (Unity/Silence/Bypass). Portable and actual native
public-header state/audio checks pass in both precisions. The optional --factory-programs build now maps this catalogue to VST3
unit/list/selector metadata and complete host control recall, as described below.
The default wrapper still exposes gain/bypass controls only. See
parameter programmes and
decision 0083.