[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Re: calling the stream upon EventStreamPlayer-stop



On Dec 31, 2005, at 1:35 PM, ronald kuivila wrote:

Patterns (like Pseq) that do not call 'yield' directly require no modification. (The work is
effectively handed off to child streams via embedInStream.)

OK, so the rule is then that you shouldn't write events directly into list patterns. Pseq([(freq: \rest, delta: 1), ...]) would have a risk of skipping an event if you stop its ESP.

I think the new method could be called

	yieldEvent (terminationFunction)

That's good. The default function could be _.isNil which would cover most cases.

hjh

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

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