|
|
|
@ -60,8 +60,8 @@ FluidBufThreadDemo.process(s, b, 1000, {|x|x.get(0,{|y|y.postln});});
|
|
|
|
|
|
|
|
|
|
|
|
// as the 'process' returns its parent UGen, we can cancel the process easily
|
|
|
|
// as the 'process' returns its parent UGen, we can cancel the process easily
|
|
|
|
c = FluidBufThreadDemo.process(s, b, 100000, {|x|x.get(0,{|y|y.postln});});
|
|
|
|
c = FluidBufThreadDemo.process(s, b, 100000, {|x|x.get(0,{|y|y.postln});});
|
|
|
|
c.cancel
|
|
|
|
c.cancel //it stops silently for now but check the synth count going down by 1.
|
|
|
|
|
|
|
|
|
|
|
|
// if a simple call to the UGen is used, the progress can be monitored
|
|
|
|
// if a simple call to the UGen is used, the progress can be monitored. The usual cmd. will cancel the job by freeing the synth.
|
|
|
|
{c = FluidBufThreadDemo.kr(b,10000, Done.freeSelf); Poll.kr(Impulse.kr(2),c);}.scope;
|
|
|
|
{c = FluidBufThreadDemo.kr(b,10000, Done.freeSelf); Poll.kr(Impulse.kr(2),c);}.scope;
|
|
|
|
::
|
|
|
|
::
|
|
|
|
|