You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
987 B
Plaintext
48 lines
987 B
Plaintext
TITLE:: FluidKrToBuf
|
|
summary:: Helper pseudo UGen for writing data into a buffer from a Kr stream
|
|
categories:: Libraries>FluidCorpusManipulation
|
|
related:: Classes/FluidBufToKr
|
|
|
|
DESCRIPTION::
|
|
Helper pseudo UGen for writing data into a buffer from a Kr stream. It only works with one-channel buffers. The number of frames in the link::Classes/Buffer:: must be the same as the number of channels in the Kr stream.
|
|
|
|
CLASSMETHODS::
|
|
|
|
METHOD:: kr
|
|
Create a new instance of this pseudo UGen.
|
|
|
|
ARGUMENT:: krStream
|
|
The Kr stream to write into the buffer.
|
|
|
|
ARGUMENT:: buffer
|
|
The buffer to write the Kr stream into. Can be either a link::Classes/Buffer:: object, or an index poiting to a buffer.
|
|
|
|
returns:: This class.
|
|
|
|
INSTANCEMETHODS::
|
|
|
|
|
|
EXAMPLES::
|
|
|
|
code::
|
|
(
|
|
// FluidKrToBuf test
|
|
s.waitForBoot{
|
|
Routine{
|
|
var buf = Buffer.alloc(s,5);
|
|
|
|
s.sync;
|
|
|
|
{
|
|
var sig = SinOsc.kr(rrand(1.0.dup(buf.numFrames),4.0));
|
|
FluidKrToBuf.kr(sig,buf);
|
|
}.play;
|
|
|
|
1.wait;
|
|
|
|
defer{buf.plot};
|
|
}.play;
|
|
}
|
|
)
|
|
::
|