Pattern doneAction?

View: New views
3 Messages — Rating Filter:   Alert me  

Pattern doneAction?

by Michael G. Cox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is this the preferred method of executing a function 
once a Pattern has exaughisted it's events?

(
Pseq([ 
Pbind(\dur, 0.2, \degree, Pseq([Pn(Pseries(0, 2, 3),2), 0])),
Pfunc {"done".postln; nil}
]).play
)

It seems like there should be a doneAction method to EventStreamPlayer, no?


Thanks,
-mgc

Re: Pattern doneAction?

by James Harkins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Server-client confusion... doneAction is server side :)

How about this?

p = Pfset(func: nil, pattern: Pbind(\dur, 1), cleanupFunc: { "cleaning up".postln }).play;

p.stop;

hjh


On Apr 20, 2009, at 11:44 PM, Michael Cox wrote:

Is this the preferred method of executing a function 
once a Pattern has exaughisted it's events?


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

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


Re: Pattern doneAction?

by Michael G. Cox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Apr 21, 2009, at 5:08 AM, James Harkins wrote:

> Server-client confusion... doneAction is server side :)

I know, I know. I couldn't think of a better phrasing :)

> How about this?
>
> p = Pfset(func: nil, pattern: Pbind(\dur, 1), cleanupFunc:  
> { "cleaning up".postln }).play;
>
> p.stop;
>
> hjh


Yup! This is what I looking for.

Many thanks, James.

-mgc.
`


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/