scide: LookupDialog - redo lookup on classes after partial lookup
[supercollider.git] / SCClassLibrary / Common / Audio / PartConv.sc
blob5308795f821f0a1d36968972765f3ccabf9d88c9
1 //Partitioned Convolution
3 PartConv : UGen
5         *ar { arg in, fftsize, irbufnum,mul = 1.0, add = 0.0;
6                 ^this.multiNew('audio', in, fftsize, irbufnum).madd(mul, add);
7         }
9         *calcNumPartitions {arg fftsize, irbuffer;
10                 var siz, partitionsize;
12                 partitionsize=fftsize.div(2);
14                 siz= irbuffer.numFrames;
15                 ^((siz/partitionsize).roundUp);
16                 //bufsize = numpartitions*fftsize;
17         }
19         *calcBufSize {arg fftsize, irbuffer;
20                 ^ fftsize* (PartConv.calcNumPartitions(fftsize,irbuffer));
21         }
26 + Buffer {
28         preparePartConv { arg buf, fftsize;
29                 server.listSendMsg(["/b_gen", bufnum, "PreparePartConv", buf.bufnum, fftsize]);
30         }