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 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, integer bar, integer position, integer division)

schedule a control value change

void schedule(Midi.Message message, integer bar)

void schedule(Midi.Message message, integer bar, integer position)

void schedule(Midi.Message message, integer bar, integer position, integer division)

void schedule(Midi.Message message, integer bar, integer position, integer division, integer channel)

void schedule(Midi.Note note, integer bar)

schedule a MIDI note

void schedule(Midi.Note note, integer bar, integer position)

schedule a MIDI note

void schedule(Midi.Note note, integer bar, integer position, integer division)

schedule a MIDI note

void schedule(Midi.Note note, integer bar, integer position, integer division, integer channel)

schedule a MIDI note

void schedule(Midi.Pattern pattern, integer bar)

schedule a MIDI Pattern

void schedule(Midi.Pattern pattern, integer bar, integer position)

schedule a MIDI Pattern

void schedule(Midi.Pattern pattern, integer bar, integer position, integer division)

schedule a MIDI Pattern

void schedule(Midi.Pattern pattern, integer bar, integer position, integer division, 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 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, integer bar, integer position, integer division)

schedule a control value change

Parameters

void schedule(Midi.Message message, integer bar)

Parameters

void schedule(Midi.Message message, integer bar, integer position)

Parameters

void schedule(Midi.Message message, integer bar, integer position, integer division)

Parameters

void schedule(Midi.Message message, integer bar, integer position, integer division, integer channel)

Parameters

void schedule(Midi.Note note, integer bar)

schedule a MIDI note

Parameters

void schedule(Midi.Note note, integer bar, integer position)

schedule a MIDI note

Parameters

void schedule(Midi.Note note, integer bar, integer position, integer division)

schedule a MIDI note

Parameters

void schedule(Midi.Note note, integer bar, integer position, integer division, integer channel)

schedule a MIDI note

Parameters

void schedule(Midi.Pattern pattern, integer bar)

schedule a MIDI Pattern

Parameters

void schedule(Midi.Pattern pattern, integer bar, integer position)

schedule a MIDI Pattern

Parameters

void schedule(Midi.Pattern pattern, integer bar, integer position, integer division)

schedule a MIDI Pattern

Parameters

void schedule(Midi.Pattern pattern, integer bar, integer position, integer division, 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.