[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] automated buffer -- How's that get in there?!?
> (
> ~rec = Routine({
> var buf1, buf2, node;
> n.do {buf1 = ~pool.select({ |b| b.state == \empty
> }).tryPerform(\choose);
> buf1.debug("buffer selection");
> buf1.notNil.if({node = Synth(\recorder,
> [\targetbufnum,
> buf1.buffer.bufnum]);
> node.debug("started synth");
> ~stateManager.value(buf1, node);
> });
> }
> })
> )
>
>1. You should have a .wait call at the end of the do loop function.
>Otherwise all the recorder synths will start at once.
>
>2. What is the value of n? If n is 0 or nil, the routine will
>terminate without doing anything (the do loop gets skipped). If you
>play the routine but see no debugging output, check for this.
>
>hjh
Hi James,
I ran the recorder with a 1.do and with the .wait added to the end of
the Routine, but no go. When I tell the pool to post, it shows all of the
buffers empty. In addition, the Task that's looking for buffers to play and
filter is not finding anything... or possibly, this is not working correctly
either. Is there a way to have the Routine and Task post their attempts?
IOW, IF it's looking for X and doesn't find it, POST nil -- or something of
the such. I just can't tell what's broken because I'm not getting any error
messages!
Any ideas?
-S
--
View this message in context: http://www.nabble.com/automated-buffer----How%27s-that-get-in-there-%21--t1030376.html#a3140027
Sent from the Supercollider - User forum at Nabble.com.