Livi
A library for hosting LV2 plugins.
Note: This is a work in progress and has not yet been full tested.
Supported LV2 Features
LV2 has a simple core interface but is accompanied by extensions that can add lots of functionality. This library aims to support as many features as possible out of the box.
http://lv2plug.in/ns/ext/urid#map
http://lv2plug.in/ns/ext/urid#unmap
http://lv2plug.in/ns/ext/options#options
http://lv2plug.in/ns/ext/buf-size#boundedBlockLength
http://lv2plug.in/ns/ext/worker#schedule
Quickstart
This Rust code is for a plugin called mda EPiano. The code sets up the plugin and then runs it. The results of the plugin are stored in the outputs variable.
let world = new;
const SAMPLE_RATE: f64 = 44100.0;
let features = world.build_features;
let plugin = world
// This is the URI for mda EPiano. You can use the `lv2ls` command line
// utility to see all available LV2 plugins.
.plugin_by_uri
.expect;
let mut instance = unsafe ;
// Where midi events will be read from.
let input = ;
// This is where the audio data will be stored.
let mut outputs = ;
// Set up the port configuration and run the plugin!
// The results will be stored in `outputs`.
let ports = new
.with_atom_sequence_inputs
.with_audio_outputs;
unsafe ;
Building, Testing, and Running
- Build -
cargo build
- Test -
cargo test
, requires mda LV2 plugins. - Run livi-jack -
cargo run --example livi-jack --release -- --plugin-uri=http://drobilla.net/plugins/mda/EPiano
.