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

Re: [sc-users] Convolution - impulse response



You can't use aBuffer.play inside a synthdef.

I believe the input to Convolution2 should be a ugen that plays the
buffer, namely PlayBuf.

Convolution2.ar(PlayBuf.ar(1, bufnum, ...), b1.bufnum, ...)

hjh


On 10/24/07, Paolo Olocco <mlist.po@xxxxxxxxx> wrote:
>
> i try it but buffer play anyway, i have no convolution with other file,
> because any change on the other parameters have no effect.
>
>
> this is my code:
>
> b = Buffer.read(s,"sounds/a11wlk01.wav");
> b.numFrames.postln;
>
> (
>         var b1;
>         b1 = Buffer.read(s,"sounds/IR.wav");
>         b1.numFrames.postln;
>         { var input, kernel;
>
>         Out.ar(0,
>                 Convolution2.ar(
>                         b.play,
>                         b1.bufnum,
>                         0.5,
>                         16384,//512,
>                         0.5));
>          }.play;
>
> )
>
> What's the problem?
> Paolo


-- 
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