Expand description
Modeled CLAP-shaped plugin adapters for SIM audio graph processors.
The default model feature is a pure-Rust, in-process model of the CLAP
plugin format. The crate carries no -sys or FFI dependency:
ClapHostProcessor runs SIM audio-graph processors shaped to the CLAP
descriptor, and export_*_as_clap produces descriptors, not native binaries.
The optional clap-host feature exposes a provider trait and fixture host
provider for capability-gated fallback loading without adding an SDK binding.
use sim_lib_plugin_clap::clap_gain_descriptor;
let descriptor = clap_gain_descriptor().unwrap();
assert_eq!(descriptor.id.format.as_str(), "clap");
assert_eq!(descriptor.parameter(0).unwrap().stable_id.as_str(), "gain");Structs§
- Clap
Event Buffer - An ordered buffer of
ClapEvents for a single processing block. - Clap
Exported Processor - A native SIM
Processorpresented to the host as a CLAP plugin instance. - Clap
Host Processor - Audio-graph
Processorthat hosts a CLAP plugin instance. - Clap
Param Map - A translation table from CLAP parameter ids to SIM parameter ids.
- Clap
Plugin Lib - Host-registered lib exporting the CLAP adapter cards, built on the shared
SurfacePackLibsubstrate.
Enums§
- Clap
Event - A CLAP input event, mirroring the CLAP event union SIM accepts from a host.
Functions§
- clap_
audio_ effect_ descriptor - Builds a CLAP-format audio-effect
PluginDescriptor. - clap_
gain_ descriptor - Builds the CLAP gain fixture descriptor.
- clap_
plugin_ symbols - Returns the qualified
Symbols of the cards exported by the CLAP plugin lib (the event, parameter-map, host/export processor, and fixture cards). - clap_
synth_ descriptor - Builds the CLAP subtractive-synth fixture descriptor.
- export_
gain_ as_ clap - Exports a
GainDSP node as a CLAP gain plugin at the givengainvalue. - export_
processor_ as_ clap - Exports any SIM
Processoras aClapExportedProcessor. - install_
clap_ plugin_ lib - Installs
ClapPluginLibintocx, idempotently.