Programming issues
Posted: 29 Feb 2012 15:39
I'm still having problems with programming Lemur, I spent most of yesterday looking for things on this forum and through the manual but am still stumped.
1. Can I read and write midi files directly?
2. How do I create/access global variables I create. i.e. If I create the following script in a Pad array triggered by OnLoad:
decl this, Banks;
this = getobject();
Banks = {'B1','B2','B3','B4'}
setattribute(this,'labels',Banks);
It works great, BUT if I create the following script triggered by OnLoad at the Project (Template) level:
decl Banks;
Banks = {'B1','B2','B3','B4'}
And put this into the Pad array at OnLoad
decl this;
this = getobject();
setattribute(this,'labels',Banks);
It doesn't allow the scrip, I get the warning icon, yellow triangle with red exclaimation point.
I also can't get the Project level script to work (same error) using:
decl this, Banks;
this = getobject(/Mixer/Pad);
Banks = {'B1','B2','B3','B4'}
setattribute(this,'labels',Banks);
or
this = getobject(Pad);
or
this = getobject(Mixer.Pad);
Nowhere in the manual have I been able to find getobject(). I can find getobjectrect() but not getobject().
3. Is there an estimate of when string manipulation and multidimensional arrays might happen?
Thanks,
joeb
1. Can I read and write midi files directly?
2. How do I create/access global variables I create. i.e. If I create the following script in a Pad array triggered by OnLoad:
decl this, Banks;
this = getobject();
Banks = {'B1','B2','B3','B4'}
setattribute(this,'labels',Banks);
It works great, BUT if I create the following script triggered by OnLoad at the Project (Template) level:
decl Banks;
Banks = {'B1','B2','B3','B4'}
And put this into the Pad array at OnLoad
decl this;
this = getobject();
setattribute(this,'labels',Banks);
It doesn't allow the scrip, I get the warning icon, yellow triangle with red exclaimation point.
I also can't get the Project level script to work (same error) using:
decl this, Banks;
this = getobject(/Mixer/Pad);
Banks = {'B1','B2','B3','B4'}
setattribute(this,'labels',Banks);
or
this = getobject(Pad);
or
this = getobject(Mixer.Pad);
Nowhere in the manual have I been able to find getobject(). I can find getobjectrect() but not getobject().
3. Is there an estimate of when string manipulation and multidimensional arrays might happen?
Thanks,
joeb