Livi
A library for hosting LV2 plugins.
Note: This is a work in progress and has not yet been full tested.
Quickstart
Below is an example on how to run the mda EPiano plugin.
use livi;
let mut world = new;
const MIN_BLOCK_SIZE: usize = 1;
const MAX_BLOCK_SIZE: usize = 256;
const SAMPLE_RATE: f64 = 44100.0;
world
.initialize_block_length
.unwrap;
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 = ;
// Where parameters can be set. We initialize to the plugin's default values.
let params: = plugin
.ports_with_type
.map
.collect;
// 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
.with_control_inputs;
unsafe ;
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.