BufSines has now proper class declaration and a skeleton of helpfile
parent
54ce464bf8
commit
57bb13fc81
@ -1,14 +1,12 @@
|
|||||||
FluidBufSines{
|
FluidBufSines{
|
||||||
*process { arg server, src, offsetframes = 0, numframes = -1, offsetchans = 0, numchans = -1, sinebuf, resbuf, bandwidth = 76, threshold = 0.7, mintracklen = 15, magweight = 0.1, freqweight = 1, winsize = 4096, hopsize = 1024, fftsize = -1;
|
*process { arg server, srcBufNum, startAt = 0, nFrames = -1, startChan = 0, nChans = -1, sineBufNum, resBufNum, bandwidth = 76, threshold = 0.3, minTrackLen = 15, magWeight = 0.1, freqWeight = 1, winSize = 4096, hopSize = 1024, fftSize = 8192;
|
||||||
|
|
||||||
server = server ? Server.default;
|
|
||||||
if(src.bufnum.isNil) {Error("Invalid Buffer").format(thisMethod.name, this.class.name).throw};
|
|
||||||
|
|
||||||
server.sendMsg(\cmd, \BufSines, src.bufnum, offsetframes, numframes, offsetchans, numchans,
|
|
||||||
if( sinebuf.isNil, -1, {sinebuf.bufnum}),
|
|
||||||
if( resbuf.isNil, -1, {resbuf.bufnum}), bandwidth, threshold, mintracklen, magweight, freqweight, winsize, hopsize, fftsize);
|
|
||||||
|
|
||||||
|
if(srcBufNum.isNil) {Error("Invalid Buffer").format(thisMethod.name, this.class.name).throw};
|
||||||
|
|
||||||
|
server = server ? Server.default;
|
||||||
|
sineBufNum = sineBufNum ? -1;
|
||||||
|
resBufNum = resBufNum ? -1;
|
||||||
|
|
||||||
|
server.sendMsg(\cmd, \BufSines, srcBufNum, startAt, nFrames, startChan, nChans, sineBufNum, resBufNum, bandwidth, threshold, minTrackLen, magWeight, freqWeight, winSize, hopSize, fftSize);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue