Quantcast

Chasing a runaway Pswitch Down a Mountain.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Chasing a runaway Pswitch Down a Mountain.

bobby donnegan
I can draw from two Pbindefs in an independent Pswitch:

~o1=Pbindef(\shit, \degree, Pseq([1, 2, 3], inf), \dur, 0.1);
~o2=Pbindef(\shit2, \degree, Pseq([11, 20, 13], inf), \dur, 0.2);
~mm=Pswitch1([~o1, ~o2], Prand([0, 1], inf), inf);

~mm.play;


But I seemingly can't stop something that is drawing from two
infinitely repeating patterns. Is there a stop/kill/clear method that
I'm missing? Some other approach?

Thank you, all..

--
--Bobby D.--

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Chasing a runaway Pswitch Down a Mountain.

Fredrik Olofsson
er, do you mean like this...
z= ~mm.play;
z.stop;
?

if so you've just made a very common mistake that we all make now and then...
~o3= Pbind(\dur, 0.4)
~o3.play
~o3.stop  //won't stop

~o3= Pbind(\dur, 0.4)
z= ~o3.play
z.stop  //will stop

i.e. sending the message play to a Pbind returns an EventStreamPlayer that does the actual playing.  and this is the object you'll need to stop - not the Pbind object itself (or in your case the Pswitch1 embedded Pbindefs).

apologies if this already was crystal clear and you meant something different.
_f

> 13 mar 2017 kl. 04:44 skrev Bobby Donnegan <[hidden email]>:
>
> I can draw from two Pbindefs in an independent Pswitch:
>
> ~o1=Pbindef(\shit, \degree, Pseq([1, 2, 3], inf), \dur, 0.1);
> ~o2=Pbindef(\shit2, \degree, Pseq([11, 20, 13], inf), \dur, 0.2);
> ~mm=Pswitch1([~o1, ~o2], Prand([0, 1], inf), inf);
>
> ~mm.play;
>
>
> But I seemingly can't stop something that is drawing from two
> infinitely repeating patterns. Is there a stop/kill/clear method that
> I'm missing? Some other approach?
>
> Thank you, all..
>
> --
> --Bobby D.--
>
> _______________________________________________
> sc-users mailing list
>
> info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/


  #|
     fredrikolofsson.com     musicalfieldsforever.com
  |#


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Loading...