[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] automated buffer -- How's that get in there?!?
Looking more closely:
> Buffer.alloc(s, completionMessage: 2)
Buffer.alloc(s, theSizeIWant, theNumberOfChannels) --
completionMessage should be used only if you're going to do something
to the buffer after it's allocated
SynthDef(\recorder, { arg targetbufnum, outbus = 0;
var sig = AudioIn.ar(1);
RecordBuf.ar(sig, targetbufnum);
Out.ar(outbus, sig);
Line.kr(0, 1, BufDur.kr(targetbufnum), doneAction:2);
}).send(s);
The recorder needs to have the Line.kr also. How is it going to stop otherwise?
Also, I found the problem with the states -- ".something" only works
on (event)'s if Event doesn't already have a method called
"something." Unfortunately there is a "state" method already so using
that for the state name doesn't work.
**If you find and replace "state" with "status" it should work better.**
buf1.debug("buffer selection");
This should be posting the buffer that's returned by the
.select().choose. If it isn't posting anything at all, then the code
is never reaching that call (so something else must be wrong).
So, what exactly are you seeing? "No go" is not precise enough for
troubleshooting.
hjh
On 2/26/06, scacinto <scottpetersen@xxxxxxxxxxxxxxx> wrote:
> 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!
--
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