crashing in 5 and 6, not 6.1
i refuse to upgrade to ableton live 9 because there aren't enough new features to justify the price.
i want to continue using max for live in live 8 and am doing so but hit a snag.
max 5 or 6 kept crashing in ableton, so i tried it in standalone. i can consistently crash max 5 or 6 with this patch, but not max 6.1. (this is a problem because ableton charges an upgrade *fine* to use max 6.1 by forcing the upgrade), thus i am stuck at max 6 for m4l!
regarding this patch not crashing in 6.1, but crashing in max 5 or 6...
can anybody figure out why this is so? thanks for any help you can give.
//musicRepeat.js
inlets = 1;
outlets = 9;
function grok(a, b, c, d, e)
{
t = new Task(musicRepeat);
function musicRepeat(){
outlet(0,a+7);
outlet(1,b);
outlet(2,c);
outlet(3,a);
outlet(4,b);
outlet(5,c);
outlet(6,a-5);
outlet(7,b);
outlet(8,c);
}
t.interval = e;
t.repeat(d);
}
i figured it out, the javascript engine is different on mac, and specifically in max 6.1, the engine is mozilla's, not v8. i will use nodeOSC to get data into max in the future, v8 is faster.
i didn't initialize my variables, the updated code is here, now working with max 5, and presumable, 6.
inlets = 1;
outlets = 9;
var pitch = 0;
var vel = 0;
var dur = 0;
var rep = 0;
var interval = 0;
function grok(a,b,c,d,e)
{
pitch=a;
vel = b;
dur = c;
rep = d;
interval = e;
t = new Task(musicRepeat);
function musicRepeat(){
outlet(0,pitch+7);
outlet(1,vel);
outlet(2,dur);
outlet(3,pitch);
outlet(4,vel);
outlet(5,dur);
outlet(6,pitch-5);
outlet(7,vel);
outlet(8,dur);
}
t.interval = interval;
t.repeat(rep);
}