dunno about the beachball. that sounds odd.
but
is.play(bus: 12)
is easy enough
or pass in a bus object if you already have one
On Sun, May 11, 2008 at 8:46 PM, Martin Vognsen <
gnormaninvest@...> wrote:
Hello
I'm adapting an older patch of mine that uses InstrSpawner to suit my current hardware setup and need a different out bus than default. Not having too much luck with Out.ar:
//From the help file - no problems:
(
InstrSpawner({ arg sample,start=0,pchRatio=1.0,env;
PlayBuf.ar(
sample.numChannels,
sample.bufnumIr,
pchRatio,
1,
start * sample.bufFramesIr,
1
) * EnvGen.kr(env,doneAction: 2)
},[
Sample("a11wlk01.wav"),
Pbrown(0,1,0.1,inf),
Prand(
Array.fill(4,{
Pseries(rrand(-20,30),[2,-2].choose,rrand(5,20))
}),inf).midiratio,
Env.sine(0.2,0.4)
],0.06).play
)
//Add Out.ar to cause spinning beach ball:
(
InstrSpawner({ arg sample,start=0,pchRatio=1.0,env;
Out.ar(0,
PlayBuf.ar(
sample.numChannels,
sample.bufnumIr,
pchRatio,
1,
start * sample.bufFramesIr,
1
) * EnvGen.kr(env,doneAction: 2)
)
},[
Sample("a11wlk01.wav"),
Pbrown(0,1,0.1,inf),
Prand(
Array.fill(4,{
Pseries(rrand(-20,30),[2,-2].choose,rrand(5,20))
}),inf).midiratio,
Env.sine(0.2,0.4)
],0.06).play
)
With the examples from the Patch help file, that don't use samples, SC doesn't go completely beachball, just gives "late" messages.
I seem to remember reading about this somewhere, but didn't find a solution to my problem. If Out.ar is dangerous, is there another way to set out bus for InstrSpawner?
Thanks for any hints
Martin
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users
_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users