Skip to main content

render_instrument

Function render_instrument 

Source
pub fn render_instrument(
    plugin: &PluginRef,
    midi_events: &[MidiEvent],
    sample_rate: u32,
    duration: f64,
    params: &[(String, String)],
    state: Option<&[u8]>,
) -> Result<AudioBuffer>
Expand description

Render an instrument plugin. params are (name or id, value) pairs; state is a native state blob (e.g. from plugin state save). See render_instrument_with.