Class Lv2.Plugin

implements Audio.Source Midi.Source Midi.Sink

Represents an LV2 Plugin

Constructors

Plugin(IO.File statefile)

Plugin(string uri)

Plugin(string uri, Lv2.State state)

Plugin(string uri, string preset)

Methods

void addController(Midi.Source source, integer cc, string symbol)

add a MIDI controller

void addController(Midi.Source source, integer cc, string symbol, integer mininum)

add a MIDI controller

void addController(Midi.Source source, integer cc, string symbol, integer mininum, integer maximum)

add a MIDI controller

void clear(float from)

clear all scheduled events starting from the given measure

void connect(Audio.Source source)

void connectMidi(Midi.Source source)

Audio.Connection connection(integer channel)

Returns a single channel of audio output from this component.

integer midiChannel()

Get or set the MIDI channel.

integer midiChannel(integer channel)

Get or set the MIDI channel.

Midi.Connection midiConnection(integer index)

void onControl(function handler)

void onNoteOff(function handler)

void onNoteOn(function handler)

void onProgramChange(function handler)

void saveState(string path)

void scheduleControl(string control, float value, float measure)

schedule a control value change

void schedule(Midi.Message message, float measure)

schedule a MIDI message

void schedule(Midi.Message message, float measure, integer channel)

schedule a MIDI message

void schedule(Midi.Note note, float measure)

schedule a MIDI note

void schedule(Midi.Note note, float measure, integer channel)

schedule a MIDI note

void schedule(Midi.Pattern pattern, float measure)

schedule a MIDI Pattern

void schedule(Midi.Pattern pattern, float measure, integer channel)

schedule a MIDI Pattern

void setControl(string control, float value)

set a control value

Method Documentation

void addController(Midi.Source source, integer cc, string symbol)

add a MIDI controller

Parameters

void addController(Midi.Source source, integer cc, string symbol, integer mininum)

add a MIDI controller

Parameters

void addController(Midi.Source source, integer cc, string symbol, integer mininum, integer maximum)

add a MIDI controller

Parameters

void clear(float from)

clear all scheduled events starting from the given measure

Parameters

void connect(Audio.Source source)

Parameters

void connectMidi(Midi.Source source)

Parameters

Audio.Connection connection(integer channel)

Returns a single channel of audio output from this component.

Parameters

Returns

integer midiChannel()

Get or set the MIDI channel.

Parameters

Returns

integer midiChannel(integer channel)

Get or set the MIDI channel.

Parameters

Returns

Midi.Connection midiConnection(integer index)

Parameters

Returns

void onControl(function handler)

Parameters

void onNoteOff(function handler)

Parameters

void onNoteOn(function handler)

Parameters

void onProgramChange(function handler)

Parameters

void saveState(string path)

Parameters

void scheduleControl(string control, float value, float measure)

schedule a control value change

Parameters

void schedule(Midi.Message message, float measure)

schedule a MIDI message

Parameters

void schedule(Midi.Message message, float measure, integer channel)

schedule a MIDI message

Parameters

void schedule(Midi.Note note, float measure)

schedule a MIDI note

Parameters

void schedule(Midi.Note note, float measure, integer channel)

schedule a MIDI note

Parameters

void schedule(Midi.Pattern pattern, float measure)

schedule a MIDI Pattern

Parameters

void schedule(Midi.Pattern pattern, float measure, integer channel)

schedule a MIDI Pattern

Parameters

void setControl(string control, float value)

set a control value

Parameters



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