Michael,

OK, sorry about that. I didn't know as I never use ancestors, but 
either use handlers to adress objects within objects or an explicit 
"path":

Explicit path:
An object <sequencer> has a "memory" object <RAM> which keeps notes 
and control data etc for a synth. The RAM object has a list property, 
<pattern>.

tmpPatternData = sequencer.RAM.getCurrentPattern()

I prefer this to using ancestors because the explicit adressing of 
handlers helps me keep track of the structure of the program. 
Hopefully my structure is so logical that it helps rtaher than gets 
in the way =)

-A.




>Hi Andreas and Kraig!
>
>I just played with your suggestions and found out that
>
>me.script gives the name of the ancestor script, not its own name.
>
>
>
>In my case, the name of my parent script is "oPPC04":
>
>on new me
>   me.ancestor = new(script "oPPC")
>   put me                           -- gives <offspring "oPPC04" 2 20fb24>
>   put me.script                    -- gives (script "oPPC")
>   return me
>end
>
>
>
>Thanks anyway!
>Michael
>
>
>[To remove yourself from this list, or to change to digest mode, go 
>to http://www.penworks.com/lingo-l.cgi  To post messages to the 
>list, email [EMAIL PROTECTED]  (Problems, email 
>[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
>programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to