Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » Instruments
Thread Read
VST LUA beta -- midi scripting VST
Goto page 1, 2, 3 ... 13, 14, 15  Next
tzec
KVRist
- profile
- pm
PostPosted: Mon Nov 05, 2007 10:13 am reply with quote
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):

--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/

[img] http://t-zec.org/vstlua/screen1.gif [/img]

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!
^ Joined: 30 Mar 2006  Member: #103252  Location: Glasgow, UK
Dewdman42
KVRian
- profile
- pm
PostPosted: Mon Nov 05, 2007 10:19 am reply with quote
Love

OMG, this has been on my todo list for years. Looking forward to checking this out. thanks.
^ Joined: 14 Mar 2006  Member: #101513  
whyterabbyt
Beware the Quoth
- profile
- pm
PostPosted: Mon Nov 05, 2007 10:25 am reply with quote
many thanks indeed. Very Happy Very Happy
----
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.
^ Joined: 03 Sep 2001  Member: #1041  
robenestobenz
KVRAF
- profile
- pm
- e-mail
PostPosted: Mon Nov 05, 2007 10:37 am reply with quote
Incredible stuff. Something like this has been needed for ages and it's going to get a lot of use here.
^ Joined: 18 Jul 2005  Member: #75236  
shamann
KVRAF
- profile
- www
PostPosted: Mon Nov 05, 2007 10:54 am reply with quote
Neat. Looking forward to trying it.
----
^ Joined: 18 Aug 2003  Member: #8541  Location: Toronto
Dozius
KVRian
- profile
- pm
- www
PostPosted: Mon Nov 05, 2007 11:01 am reply with quote
hyper
^ Joined: 26 Oct 2005  Member: #85699  Location: Land of the Bland
pljones
KVRAF
- profile
- pm
- www
PostPosted: Mon Nov 05, 2007 11:53 am reply with quote
Have to add to the "well done" sayers! This could save tons of problems.
^ Joined: 08 Feb 2003  Member: #5825  Location: London, UK
koolkeys
KVRAF
- profile
- pm
- e-mail
PostPosted: Mon Nov 05, 2007 11:57 am reply with quote
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
^ Joined: 02 Dec 2003  Member: #10739  Location: Nashville, TN
mauseoleum
KVRAF
- profile
- pm
PostPosted: Mon Nov 05, 2007 12:03 pm reply with quote
Hmm why don't you hack the SciTE source to do lua midi mangling stuff as well Razz

j/k
^ Joined: 29 Oct 2003  Member: #9992  
foosnark
KVRAF
- profile
- pm
- www
PostPosted: Mon Nov 05, 2007 12:11 pm reply with quote
Brilliant. Party!
^ Joined: 09 Jan 2003  Member: #5341  Location: Saint Louis MO
Dewdman42
KVRian
- profile
- pm
PostPosted: Mon Nov 05, 2007 12:20 pm reply with quote
What is SciTE?
^ Joined: 14 Mar 2006  Member: #101513  
rl
KVRist
- profile
- pm
PostPosted: Mon Nov 05, 2007 1:05 pm reply with quote
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
^ Joined: 06 Jan 2003  Member: #5299  
tzec
KVRist
- profile
- pm
PostPosted: Mon Nov 05, 2007 1:13 pm reply with quote
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.
^ Joined: 30 Mar 2006  Member: #103252  Location: Glasgow, UK
runagate
KVRAF
- profile
- pm
- e-mail
- www
PostPosted: Mon Nov 05, 2007 1:21 pm reply with quote
tzec, that looks immensely useful

tagging this thread for when I have time to learn to understand it Cool
^ Joined: 17 Sep 2004  Member: #41055  Location: Austin, TX
marce
KVRian
- profile
- pm
- e-mail
PostPosted: Mon Nov 05, 2007 1:24 pm reply with quote
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.
^ Joined: 15 Dec 2004  Member: #51716  
All times are GMT - 8 Hours

Printable version
Page 1 of 15
Goto page 1, 2, 3 ... 13, 14, 15  Next
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012