AUDIO
Source snapshot · 11 November 2026

Small examples and use cases

Tempo-synced delay plug-in

examples/delay-plugin is a complete effect exported through the generic plug-in layer, with a web editor. Its processor is an ordinary RAVET Processor that knows nothing about plug-in formats; the crate root only describes the product. It is separate from the teaching delay above, which keeps its smaller limits and has no tempo sync.

python3 scripts/bundle-clap.py --plugin delay
cargo run -p ravet-clap-smoke --locked -- --delay "target/clap/release/RAVET Delay.clap"

The bundle command builds an ad hoc signed RAVET Delay.clap on macOS and does not install it. The smoke host loads it, checks its parameters, renders an impulse with a host tempo of 120 BPM on a separate audio thread, checks that the synced eighth-note repeat lands at 250 ms, and checks saved-state recall.

Control ID Range Default
Time 1 1..2,000 ms, logarithmic 375 ms
Feedback 2 0..95 % 45 %
Mix 3 0..100 % 35 %
Bypass (host bypass) 4 off/on off
Ping-pong 5 off/on off
Sync 6 off/on on
Division 7 12 steps, 1/1 to 1/32 including dotted and triplet 1/8 dotted
Tone 8 500..20,000 Hz, logarithmic 6 kHz

With sync on, the time follows the selected division at the host tempo read at the start of each block. The last tempo is kept while the host reports none; before any tempo arrives, the millisecond time applies. Synced times are clamped to 2 seconds. Time changes glide over 50 ms, giving a tape-style pitch bend; other controls ramp over 5 ms. The tone control is a one-pole low-pass in the feedback path only, so the first repeat is unfiltered and later ones darken. Bypass crossfades to the dry input over 5 ms while the delay keeps running. Mono uses both delay lines and outputs their average. The tail is infinite while feedback is above zero, otherwise two seconds.

The processor accepts any block size and event count and sample rates up to 768 kHz; preparation allocates two 2-second delay lines and processing allocates nothing. Tempo changes within a block are not followed. Hosts show the division as its index (0–11), not its label; the editor shows the labels. In the editor, drag a knob (Shift for fine steps), double-click it to reset, or click its value to type one (Enter applies, Escape cancels; 6k means 6,000 Hz). Values that are not whole show a decimal, so 100.3 ms never reads as 100 ms. The editor shows no meters yet: the export layer has no audio-to-editor data path. Dated Delay host runs and separate validator/adapter checks on macOS arm64, Windows 11 x64 and Arch Linux x86_64 are in the support matrix. Generic editors remain macOS-only; typed values do not work in Pro Tools, where mouse editing works.