Class Lv2.Plugin

implements Audio.Source Audio.Sink Midi.Source Midi.Sink

Represents an instance of an LV2 Plugin

Constructors

Plugin(string uri, string preset)
Plugin(string uri, Lv2.State state)
Plugin(IO.File statefile)

Properties

output Audio.Connection outputs as an array
input Audio.Connector inputs as an array
midiout Midi.Connection outputs as an array
midiin Audio.Connection inputs as an array

Methods

clear(float from) clear all scheduled events starting from the given measure
control(string control, float value) set a control value
onWorkResponse(function handler)
play(Audio.Buffer buffer) immediately play an audio buffer.
play(Audio.Clip clip) immediately play an audio clip.
preset(string name) immediately load the named LV2 preset
saveState(string path)
schedule(Audio.Clip clip, float measure, Time.Clock clock) schedule an audio clip to play.
schedule(Lv2.ControlChange change, float measure, Time.Clock clock) schedule a control value change
schedule(Midi.Note note, float measure, Time.Clock clock) schedule a MIDI note
schedule(Midi.Pattern pattern, float measure, Time.Clock clock) schedule a MIDI Pattern
schedule(Midi.Message message, float measure, Time.Clock clock) schedule a MIDI message
schedule(Audio.Buffer buffer, float measure, Time.Clock clock) schedule an audio buffer to play.

Constructor Documentation


Plugin(string uri, string preset)

Parameters


Plugin(string uri, Lv2.State state)

Parameters


Plugin(IO.File statefile)

Parameters

Property Documentation


array output

Audio.Connection outputs as an array. Adding or removing elements to this array has no effect on the underlying audio component.


array input

Audio.Connector inputs as an array. Adding or removing elements to this array has no effect on the underlying audio component.


array midiout

Midi.Connection outputs as an array. Adding or removing elements to this array has no effect on the underlying audio component.


array midiin

Audio.Connection inputs as an array. Adding or removing elements to this array has no effect on the underlying audio component.

Method Documentation


void clear(float from)

Clear all scheduled events starting from the given measure

Parameters


void control(string control, float value)

Set a control value

Parameters


void onWorkResponse(function handler)

Parameters


void play(Audio.Buffer buffer)

Immediately play an audio buffer.

Parameters


void play(Audio.Clip clip)

Immediately play an audio clip.

Parameters


void preset(string name)

Immediately load the named LV2 preset

Parameters


void saveState(string path)

Parameters


void schedule(Audio.Clip clip, float measure, Time.Clock clock)

Schedule an audio clip to play.

Parameters


void schedule(Lv2.ControlChange change, float measure, Time.Clock clock)

Schedule a control value change

Parameters


void schedule(Midi.Note note, float measure, Time.Clock clock)

Schedule a MIDI note

Parameters


void schedule(Midi.Pattern pattern, float measure, Time.Clock clock)

Schedule a MIDI Pattern

Parameters


void schedule(Midi.Message message, float measure, Time.Clock clock)

Schedule a MIDI message

Parameters


void schedule(Audio.Buffer buffer, float measure, Time.Clock clock)

Schedule an audio buffer to play.

Parameters



Creative Commons Logo This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.