View Full Version : Version 1.42 Mac bug with scripts
Per Boysen
11-27-2009, 08:33 PM
Since I upgraded to Version 1.42 for Mac OS X some scripts are not detected. Neither by MIDI binding nor by key binding. I did not change anything in my setup, nothing at all except for upgrading Mobius. Here's one example of the scripts not detected: !name Time Warp 1 Multi.mos
Message Time Warp 1
if 8thsPerCycle = 16
Call "Time Warp 1 in Four Four.mos"
endif
if 8thsPerCycle = 64
Call "Time Warp 1 in Four Four.mos"
endif
if 8thsPerCycle = 10
Call "Time Warp 1 in Five Four.mos"
endif
if 8thsPerCycle = 40
Call "Time Warp 1 in Five Four.mos"
endif
if 8thsPerCycle = 12
Call "Time Warp 1 in Six Eight.mos"
endif
if 8thsPerCycle = 48
Call "Time Warp 1 in Six Eight.mos"
endif
if 8thsPerCycle = 14
Call "Time Warp 1 in Seven Eight.mos"
endif
if 8thsPerCycle = 56
Call "Time Warp 1 in Seven Eight.mos"
endif
if 8thsPerCycle = 9
Call "Time Warp 1 in Nine Eight.mos"
endif
if 8thsPerCycle = 54
Call "Time Warp 1 in Nine Eight.mos"
end
When you say "not detected" does this mean you see the
script name in the Keyboard Control or MIDI Control windows
but it doesn't work when you press the key/MIDI?
Or does the script name not even show in the popup windows?
Per Boysen
11-28-2009, 04:20 PM
The script name is still part of the menus in Mobius. It is also availalbe for MIDI and Key control assignment as well as parameter control via Mainstage's graphical objects. The only difference from the previous Mac version is that the script now doesn't launch the other scripts targeted from inside the issue script.
I did all double checking by recreating the bindings in the MIDI control window, so it can't be that. Maybe it has to do with triggering other scripts from within a script?
I just tried it with a UI button and was able to call a script, I didn't
do all of them, just the first "Time Warp 1 in Four Four.mos".
Check the scripts you are calling and see if they have a !name
in them. You seem to be using the full file name in the Call, if
you have a !name in that file that may be confusing it. Remove the !name
from the called file OR change the Call to use the !name rather than the
full file name.
Since there are spaces in the file name in the script, check to see
if there are the same number of spaces in the actual file name.
The last line is missing an "endif". It shouldn't be necessary but add
it just to be safe.
if 8thsPerCycle = 54
Call "Time Warp 1 in Nine Eight.mos"
endif
end
Tried it with a key binding and that worked too.
Other things to check...
Make sure the files you are calling (Time Warp 1 in Four Four.mos)
are in the same directory as the master script (Time Warp 1 Multi.mos).
Make sure the files you are calling are still in the list you see
in the Configuration->Scripts widnow.
Per Boysen
11-28-2009, 05:48 PM
Thanks, Jeff! I tried it all but nothing helped. Will research further. Since it's working for you there must be a "human error" somewhere in the filename spacing - will check all that a second time later tonight.
Per Boysen
11-28-2009, 07:37 PM
PROBLEM SOLVED!
I added the script targeted scripts as well to the script list in the "Configuration/Scripts.../Script Registration" window. That was it! I must have misunderstood some old release notes because I thought that scripts don't have to be registered there with the Mac version. Anyway, I'm very happy it's working now! Thanks to the powerful scripting in Mobius I'm happily skipping over both Max For Live and Reaktor 5 - and I'm having more fun and making more music every day :-)
I think a few releases ago I required that any scripts you call have
to be in the Configuration->Scripts window. There were several reasons
for this but the most important one is so that these get loaded before
you start looping. Loading then the moment they were used was causing
some delays that screwed up quantization.
To make this easier I also added the ability to specify a *directory* in the
Configuration->Scripts list, at startup Mobius will load every file in this
directory with the .mos extension.
buzap
11-30-2009, 07:41 AM
Hi Per
looks like an interesting script, btw
Would like to see that if possible... :-)
best regards
Buzap
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.