What it is
A plugin takes a waveform from weirdnet-media and typed parameters, and returns a new waveform. Plugins are pure, so a result can be cached under a key that means what it says. Hosting third-party plugin formats is out of scope.
Key types and modules
Plugin,ParamSpec,ParamValues: a plugin declares its parameters (float with a range and unit, bool, or a choice, each with a default);resolvefills defaults and rejects unknown names, wrong kinds and out-of-range values.Registryholds plugins by id (with_builtinshas the built-ins);apply_chainrunsPluginInstances in order, and a step can be bypassed.chain_cache_key: a BLAKE3 key over the source, each active step’s plugin id and version, and its resolved parameters. Spelled-out defaults and bypassed steps do not change it; its value for a fixed input is pinned by a test.- Built-ins, each an identity at its defaults:
weirdnet.gain,weirdnet.levels,weirdnet.frequencies(filters from weirdnet-dsp),weirdnet.pitchandweirdnet.duration(stretch is the crate featurestretch, on by default, and needs clang and libclang).
Usage
[dependencies]
weirdnet-audio-plugin = "0.3.0"Where it fits
- Builds on weirdnet-media, weirdnet-dsp.
- License: BSD-3-Clause.