Create new expressions within script

Discuss Lemur and share techniques.
Post Reply
tmjorud
Newbie
Posts:5
Joined:12 Nov 2014 12:48
Create new expressions within script

Post by tmjorud » 02 Dec 2014 12:49

Hi,

Is it possible to create new expressions within a script? I think I read something about this topic somewhere else, that there was some kind of undocumented method available for creating new objects on the fly? Is this still available?

ndivuyo
Regular
Posts:279
Joined:23 May 2014 00:24

Re: Create new expressions within script

Post by ndivuyo » 04 Dec 2014 00:52

for new expressions you can use 'decl'
but then you said new objects, which one??

decl test;
or
decl test = something;

Macciza
Regular
Posts:1325
Joined:07 Dec 2011 04:57
Location:Sydney, Australia.

Re: Create new expressions within script

Post by Macciza » 04 Dec 2014 03:41

Hi
Yes you can create new expression with the decl keyword , however they are restricted in there lexical and temporal scope to the script itself, and its operations . .
You cannot create external expressions as such; there was a function (createobject()) that allowed creation of objects programatically but it is currently deprecated, (though it may be reinstated at some point when fixed)

Hope that helps
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]

tmjorud
Newbie
Posts:5
Joined:12 Nov 2014 12:48

Re: Create new expressions within script

Post by tmjorud » 04 Dec 2014 19:49

Thanks for the replies :) I was referring to external expressions. The createobject() is what I was looking for, but I understand that it is deprecated for now.

ndivuyo
Regular
Posts:279
Joined:23 May 2014 00:24

Re: Create new expressions within script

Post by ndivuyo » 02 Apr 2015 01:09

oh, how I'd love a createobject()

canvas in the meantime

Phil999
Regular
Posts:932
Joined:11 Jan 2012 01:53

Re: Create new expressions within script

Post by Phil999 » 03 Apr 2015 21:50

ndivuyo wrote:oh, how I'd love a createobject()
yes, but only together with a destroyobject(). :)
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro

Softcore
Regular
Posts:1639
Joined:04 Nov 2012 08:34

Re: Create new expressions within script

Post by Softcore » 04 Apr 2015 10:12

Phil999 wrote:
ndivuyo wrote:oh, how I'd love a createobject()
yes, but only together with a destroyobject(). :)
Indeed!


Softcore
Regular
Posts:1639
Joined:04 Nov 2012 08:34

Re: Create new expressions within script

Post by Softcore » 05 Apr 2015 20:27

hahhahahaha, we wish it was that simple!

Post Reply