[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] automated buffer -- How's that get in there?!?



On 3/5/06, scacinto <scottpetersen@xxxxxxxxxxxxxxx> wrote:
> Should this synth, and the others like it, have a Line.kr function for the
> target buffer as well?

If the buffers are the same length, there is no need since both would
terminate at the same time.

> Here, though, in the 'node =' bit, I've noticed that the '\targetbufnum,
> buf2.target.bufnum' is different than the record routine that uses the same
> function.

OK, yes, that was a typo on my part. Good catch.

Let's put in more debugging output:

>  { \filter } {
>   buf1 = ~pool.select({ |b| b.status == \ready
> }).tryPerform(\choose);
>   buf2 = ~pool.select({ |b| b.status == \empty
> }).tryPerform(\choose);
[buf1, buf2].debug("filter buffers chosen");
>   (buf1.notNil and: { buf2.notNil }).if({
>   node = Synth(~filters.choose,
> [\sourcebufnum, buf1.buffer.bufnum,
>   \targetbufnum,
> buf2.buffer.bufnum]);
>   //changed the above to
> buf2.buffer.bufnum from buf2.target.bufnum
>                                         ~stateManager.value(buf1, node);
>   ~stateManager.value(buf2, node);
>   };4.wait;

Also this, to find out which func is getting chosen:

  #[\play, \filter].wchoose(#[0.50, 0.50]).debug("function to run").switch

Can you email me the trace? Keep all the debugging stuff in stateManager also.

hjh

--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

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