VST LUA beta -- midi scripting VST

VST, AU, AAX, CLAP, etc. Plugin Virtual Instruments Discussion
Post Reply New Topic
RELATED
PRODUCTS

Post

tzec wrote:Thanks, austinfx and dewdman42. Dewdman42, do you mind if I incorporate those instructions into the next manual, since that'll make it bit easier for Sonar folks to get going? I'm adding a bit more documentation to the package, that seems to be a bit of stumbling block right now. I'll try and work out why Sonar doesn't see the midi out as well...
It may need dummy audio outputs if it doesn't have them. Some hosts, e.g. Cubase, can get a bit confused if a plugin has no audio out.

Post

Yep, I would probably agree with the dummy audio outs assessment, which goes hand in hand with the requirement that an audio track has to be enabled for the plugin to work in Sonar at all.

I don't mind if you include my instructions, but it could probably be worded a lot better.

Here are a couple examples from another vst midi plugin that provided Sonar instructions:

http://www.chordspace.com/Playa/SonarInstall.htm

http://www.mucoder.net/tonespace/tonesp ... c150632292

Post

Just started playing with this, but the onFrameCb doesn't seem to be getting called. Using XT2. My test script looks like this:

skip=0
function onFrameCb(frameData)

skip=skip+1

--don't send every frame, keep the messages reasonable
if skip==4 then
hosttime = getHostTime()
vprint(hosttime.tempo.."\n")
end

end

Am I doing something wrong, or is this an XT2 problem?

Doggit

Post

You might want to have skip=0 before the first end, otherwise it will only be called once, but otherwise it looks fine. Might be an XT2 problem, I'll hopefully sort that when I fix the problems with Sonar...

Post

Thanks again to Dewdman42. There's something about the Tobybear arpeggiator that's not compatible with Sonar's VST handling: I can check the "MIDI output" box, but it doesn't really have an output. I tried xoxos' "talent" instead, using the procedures described, and it did work. This is very good news, because it means that one of these days, I really can rework my MFX plugs (http://www.paralogos.com/music/) to be usable outside both inside and outside the Cakewalk universe.

Post

OK, another update at http://t-zec.org/vstlua/vstlua-0.05.zip

The changes:

GUI resizing is now possible.
A bunch of bug fixes (of course, I probably added more than I removed...)
Better docs, including a quick guide to Lua.
Key handling.
Drag-n-drop support.
Vu meters.
GUI bitmaps can be overriden by user.
More complex microtuning example script included.

I've enabled audio outputs. However, if you still have problems, the file config.lua specifies exactly what configuration the plugin will have when it is loaded, so you can try disabling inputs/outputs at will.

As for previous requests:

DLL compiling is going to be a real pain, because it'll need to access a whole filesystem (so things like the Lua package search works right). I don't think I'm going get this done anytime soon.
Last edited by tzec on Sun Nov 18, 2007 9:54 am, edited 1 time in total.

Post

Thank you Tzec!

This is one seriously interesting plugin. Very nice.

One feature request: support audioMasterSetTime callback - for the hosts that support it.

PS - I can't seem to get to your latest update.

Post

Here is the correct link:

http://t-zec.org/vstlua/vstlua-0.05.zip

Post

Note - midi output ports still not enabled in Sonar

Post

Dewdman42 wrote:Note - midi output ports still not enabled in Sonar
lua\config.lua

numInputs = 0
numOutputs = 0
isSynth = 1

Post

mbncp wrote:
Dewdman42 wrote:Note - midi output ports still not enabled in Sonar
lua\config.lua

numInputs = 0
numOutputs = 0
isSynth = 1
Thank you! I knew there must be some combination that would work!

Post

austinfx wrote: Check out the pitchdrift.lua script. The way VSTLua works is by calling specifically named functions for certain event types...
That looks exceptionally helpful, thanks for taking the time to write all that :)

Post

sorry, I don't understand. My config.lua looks looked like this:

numInputs = 2
numOutputs = 2
isSynth = 0

I tried changing isSynth to 1, but it made no difference. No midi output ports are appearing in sonar.

Post

Dewdman42 wrote:sorry, I don't understand. My config.lua looks looked like this:

numInputs = 2
numOutputs = 2
isSynth = 0

I tried changing isSynth to 1, but it made no difference. No midi output ports are appearing in sonar.
I think mbncp is suggesting setting both numInputs and numOutputs to 0 and setting isSynth to 1; I guess he's tested that with Sonar?

Post

Setting the outs to 0 and synth to 1, still does not enable midi outputs in Sonar.

Post Reply

Return to “Instruments”