What is KVR Audio? | Submit News | Advertise | Developer Account

Options (Affects News & Product results only):

OS:
Format:
Include:
Quick Search KVR

"Quick Search" KVR Audio's Product Database, News Items, Developer Listings, Forum Topics and videos here. For advanced Product Database searching please use the full product search. For the forum you can use the phpBB forum search.

To utilize the power of Google you can use the integrated Google Site Search.

Products 0

Developers 0

News 0

Forum 0

Videos 0

Search  

VST LUA beta -- midi scripting VST

VST, AU, etc. plug-in Virtual Instruments discussion

Moderator: Moderators (Main)

KVRist
 
50 posts since 30 Mar, 2006, from Glasgow, UK

Postby tzec; Mon Nov 05, 2007 10:13 am

Being frustrated with the number of small utility VSTs that are often needed to do simple midi tasks, I decided to write a simple, clean VST which could easily script MIDI manipulation. And, thus, VSTLUA was born. The lovely language Lua is used for simple and efficient scripting.

This allows you to quickly develop scripts to mangle midi events and test them without the pain of VST development. It has a basic custom GUI system, so GUI controls can be scripted from Lua.

Here's an example script (in its entirety):
Code: Select all
--simple keytracking for synths that respond to CC74
function midiEventCb(event)
    if event.type==midi.noteOn then
        mevent = setCC(74, event.byte2/2, event.channel)
        mevent.delta = event.delta
        sendMidi(mevent)
    end   
    --remember to send the original event!
    sendMidi(event)       
end


Download it here: http://t-zec.org/vstlua/

Image

Remember, this is beta and chances are, it won't work for you. Let me know what happens and I'll try and fix it. And post your scripts so I can include in future releases!
KVRian
 
882 posts since 14 Mar, 2006

Postby Dewdman42; Mon Nov 05, 2007 10:19 am

:love:

OMG, this has been on my todo list for years. Looking forward to checking this out. thanks.
User avatar
Beware the Quoth
 
20625 posts since 3 Sep, 2001, from R'lyeh Oceanic Amusement Park and Funfair

Postby whyterabbyt; Mon Nov 05, 2007 10:25 am

many thanks indeed. :D :D
To laymen, software development is something akin to wizardry. Neither time, nor effort are involved. If software is missing features they want, or has bugs, it is solely because someone has been too lazy to wave their magic wand.
KVRAF
 
2908 posts since 18 Jul, 2005

Postby robenestobenz; Mon Nov 05, 2007 10:37 am

Incredible stuff. Something like this has been needed for ages and it's going to get a lot of use here.
KVRAF
 
12279 posts since 18 Aug, 2003, from Toronto
 

Postby shamann; Mon Nov 05, 2007 10:54 am

Neat. Looking forward to trying it.
Image
KVRian
 
745 posts since 26 Oct, 2005, from Land of the Bland
 

Postby Dozius; Mon Nov 05, 2007 11:01 am

:hyper:
User avatar
KVRAF
 
4450 posts since 8 Feb, 2003, from London, UK
 

Postby pljones; Mon Nov 05, 2007 11:53 am

Have to add to the "well done" sayers! This could save tons of problems.
KVRAF
 
16105 posts since 2 Dec, 2003, from Nashville, TN

Postby koolkeys; Mon Nov 05, 2007 11:57 am

Wow, this sounds extremely useful. I've been intrigued by the KSP language and all it can do, and so this also gets my attention. I really think this will become immensely popular around here.

Many thanks!

Brent
KVRAF
 
1936 posts since 29 Oct, 2003

Postby mauseoleum; Mon Nov 05, 2007 12:03 pm

Hmm why don't you hack the SciTE source to do lua midi mangling stuff as well :P

j/k
User avatar
KVRAF
 
2366 posts since 9 Jan, 2003, from Saint Louis MO
  

Postby foosnark; Mon Nov 05, 2007 12:11 pm

Brilliant. :party:
KVRian
 
882 posts since 14 Mar, 2006

Postby Dewdman42; Mon Nov 05, 2007 12:20 pm

What is SciTE?
rl
KVRist
 
90 posts since 6 Jan, 2003

Postby rl; Mon Nov 05, 2007 1:05 pm

looks great, but...
how is it supposed to work? e.g. print_notes.lua shows incoming notes, but it doesn't seem to send midi. When loaded in ext2 it does not show a midi out connection
KVRist
 
50 posts since 30 Mar, 2006, from Glasgow, UK

Postby tzec; Mon Nov 05, 2007 1:13 pm

err, it should show a midi out connection. I must have missed something out in the VST initialization that eXT expects. Try drummachine.lua -- that definitely should produce output.
KVRAF
 
10216 posts since 17 Sep, 2004, from Austin, TX
 

Postby runagate; Mon Nov 05, 2007 1:21 pm

tzec, that looks immensely useful

tagging this thread for when I have time to learn to understand it 8)
KVRian
 
791 posts since 15 Dec, 2004

Postby marce; Mon Nov 05, 2007 1:24 pm

Very Intersting!

I use Harmony Assistant, a Notation and music editor, that use scripts for all kind of tasks (enhance notation, filter midi things, etc) and it use the LUA language. It has made Harmony very powerfull, since users can make their own features and add to the program. If it can make something similar to the midi processing in this VST, i guess your VST will be a succes.
Next

Moderator: Moderators (Main)

Return to Instruments