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.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...
VST LUA beta -- midi scripting VST
-
- KVRian
- 995 posts since 25 Apr, 2005
-
- KVRAF
- 1985 posts since 14 Mar, 2006
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
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
-
- KVRer
- 18 posts since 5 Apr, 2004
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
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
-
- KVRist
- Topic Starter
- 50 posts since 30 Mar, 2006 from Glasgow, UK
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...
-
- KVRian
- 866 posts since 30 Jul, 2004
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.
-
- KVRist
- Topic Starter
- 50 posts since 30 Mar, 2006 from Glasgow, UK
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.
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.
-
- KVRist
- 336 posts since 15 Mar, 2006
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.
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.
-
- KVRist
- 487 posts since 19 Jan, 2003
-
- KVRist
- Topic Starter
- 50 posts since 30 Mar, 2006 from Glasgow, UK
Thank you! I knew there must be some combination that would work!mbncp wrote:lua\config.luaDewdman42 wrote:Note - midi output ports still not enabled in Sonar
numInputs = 0
numOutputs = 0
isSynth = 1
-
- KVRist
- 47 posts since 3 Oct, 2005
That looks exceptionally helpful, thanks for taking the time to write all thataustinfx wrote: Check out the pitchdrift.lua script. The way VSTLua works is by calling specifically named functions for certain event types...
-
- KVRAF
- 1985 posts since 14 Mar, 2006
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.
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.
-
- KVRist
- Topic Starter
- 50 posts since 30 Mar, 2006 from Glasgow, UK
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?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.
