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

Re: [sc-users] Can't get GrainBuf to work.



On Dec 29, 2008, at 8:03 AM, Stephan Wittwer wrote:

Am 29.12.2008 um 13:37 schrieb Batuhan Bozkurt:

Ah sorry, thats not it. I don't know why but it seems that GrainBuf works with mono files. So if you load your buffer with:

numChannels is for output channels, not buffer.

And you're right, it seems to take mono sound buffers only, like TGrains.
But for TGrains this is clearly documented.

b = Buffer.readChannel(s, "samples/13552__acclivity__Brook20Sec.wav", channels: 0);

So then it should be possible to load each channel into a separate buffer and run a pair of GrainBufs (if you need to granulate both channels together).

GrainBuf.ar(2, trigger, dur, [leftbuf, rightbuf], rate, pos, interp, [-1, 1], envbufnum)

hjh


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

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