[Sc-devel] changing Event-play and integrating Routines with EventStreams

James Harkins jamshark70 at gmail.com
Wed Nov 7 07:31:04 PST 2007


On Nov 7, 2007, at 6:06 AM, Jan Trutzschler wrote:

> Hi Ron,
>
> could we pass  the event itself into play or would that give  
> problems somewhere?
>
> 	play {
> 		if (parent.isNil) {
> 			parent = defaultParentEvent;
> 		};
> 		this.use {
> 			this[\play].value(this);	
> 		};
> //		^this.delta
> 	}

There is no need to do that -- because of this.use { }, while  
executing the ~play function, currentEnvironment === this. If ~play  
needs to refer to the event, it should use currentEnvironment.

hjh


: H. James Harkins
: jamshark70 at dewdrop-world.net
: http://www.dewdrop-world.net
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.create.ucsb.edu/pipermail/sc-devel/attachments/20071107/ed3daa3c/attachment.htm


More information about the Sc-devel mailing list