Note: this post is from 2007, outbound links may be broken.

Tzec releases VST Lua beta

Related: , , , , Posted in news on Nov 06, 2007 - comment 3 comments

Tzec has released a beta of VST Lua, a VST plug-in for scripted MIDI manipulation.

From the FAQ:

What does VstLua do?
It allows simple scripting of MIDI events in a VST. It does not have any audio manipulation facilities. It is purely for MIDI control.

Tzec VST Lua
Tzec VST Lua – rhythmic script loaded (click image to enlarge)

And why is that useful?
It replaces many custom VST MIDI manipulators with a quick and easy way of scripting MIDI events. It provides support for limited GUI creation, so that scripts can set up their own control panels. New scripts can be quickly rapid prototyped without restarting the host.

For example?
Say, for example, I want add a new note, a fifth above the original, if the note is below middle C. All that is needed is a script like:


function midiEventCb(midiEvent)
         if midiEvent.type==midi.noteOn or midiEvent.type==midi.noteOff then
                local note = midiEvent.byte2
                -- decide whether to transpose it up or down
                if note>=noteToNumber('C-5') then
                    note = midiEvent.byte2 + interval.fifth
                else
                   note = note - interval.fifth
                end
                midiEvent.byte2=note
         end
         sendMidi(midiEvent)
end

See the API API for details.

The download includes a .dll for Windows PC, but the source code is also available for download, so you could try to port/compile it for another system.

Visit the VST Lua page for more information and a link to download the latest beta.

  • http://rekkerd.org ronnie

    Updated to v0.06:

    – SysEx support (not very useful atm, as virtually no hosts support VST sysex, except for VSTHost).
    – Infinite loop trapping added.
    – Persistent storage of data between sessions (read and write from the table called “persistence”).
    – Fast interprocess messaging via shared memory, so multiple instances of VstLua can talk with minimum latency.
    – setHostTime added (for Bidule users).
    – much simplified GUI access.
    – Easier to do midi mapping with the new addMidiFilter() function.
    – Console window, so commands can be run and executed immediately
    – Scripts are associated with presets.

  • Jess

    I cannot find vstlua for download. Any news, any link to any version?
    Thanks

  • http://rekkerd.org ronnie

    Hermann Seib has just put it on his site: http://www.hermannseib.com/VstLua/

Tone2 Electra2

Recommended sounds