[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] automated buffer -- How's that get in there?!?
<When the routine fires to run a filter, it should do a select to choose
<a source buffered (one that's ready), then do another select to choose
<an empty buffer, and only then invoke the synth, passing the buffer
<numbers in the argument list:
<
<Synth(\filter, [\sourcebufnum, sourcebuf.bufnum, \targetbufnum,
<targetbuf.bufnum]);
<
<The routine should also change the buffers' states before waiting for
<the next event.
Hi James (and everyone!)
I've swept the helpfiles and am unable to locate info on the "passing" of
the numbers below to the synth.
When the ~pool bit parses the array for \ready buffers, then selects an
additional array to write the filtered sound into, how does the synth get
these numbers? I know you said through the synth arguments, as shown above,
but entering that bit of code doesn't work, and I'm not sure if what's there
is actual working code or generic indications. In addition, I'm not sure
how the Routine is going to know how to pick the correct buffer to pass to
the synth if I have one with a \ready and one with \empty.
IOW, what goes between or is added to this code that I'm not finding?
~pool.select({ |item| item.state == \ready}).choose //this has the file to
be processed
~pool.select({ |item| item.state == \empty}).choose //this has the file to
be written to after processing
(code to pass the unseen information about the \ready buffer to the synth?)
does adding .state: \busy after the above .choose effectively change the
state of the buffers prior to their processing? Or does this need to be
done separately?
Synth(\filter, [\sourcebufnum, sourcebuf.bufnum, \targetbufnum,
targetbuf.bufnum]); // this is the synth arg list? Where does it go? How
are the numbers supplied, or
is the code here sufficient? (doesn't seem
like it is)
Please understand that I am a visual person, and am coming at this from a
PD/Max background where I could draw connections between objects and
everything was visible. This is all a bit of a conceptual disconnect for
me. Are my above questions clear?
One problem is that I don't always know when a "generic" is supplied as
opposed to the actual code. But please understand I am reading through
helpfiles like mad! I simply can't find the info I'm looking for! I wish
there were an Index or Table of Contents!
Sorry for the ONGOING questions!
-S
P.S. I'm assuming that I'm going to perform roughly the same operations as
above for recording into the buffers? I'll need to parse the pool for an
\empty and write to it? Can I pass the numbers to the RecordBuf the same as
with the synth?
--
View this message in context: http://www.nabble.com/automated-buffer----How%27s-that-get-in-there-%21--t1030376.html#a2875498
Sent from the Supercollider - User forum at Nabble.com.