FluidBufTransientSlice cleaned class definition, helpfile skeleton, and various test codes for other classes
parent
2a8049beb8
commit
cc655a5d6c
@ -1,13 +1,11 @@
|
|||||||
FluidBufTransientSlice{
|
FluidBufTransientSlice{
|
||||||
*process { arg server, src, offsetframes = 0, numframes = -1, offsetchans = 0, numchans = -1, transbuf, order = 200, blocksize = 2048, padding = 1024, skew = 0, threshfwd = 3, threshback = 1.1, windowsize = 14, debounce = 25;
|
*process { arg server, srcBufNum, startAt = 0, nFrames = -1, startChan = 0, nChans = -1, transBufNum, order = 200, blockSize = 2048, padding = 1024, skew = 0, threshFwd = 3, threshBack = 1.1, windowSize = 14, debounce = 25;
|
||||||
|
|
||||||
server = server ? Server.default
|
|
||||||
;if(src.bufnum.isNil) {Error("Invalid Buffer").format(thisMethod.name, this.class.name).throw};
|
|
||||||
|
|
||||||
server.sendMsg(\cmd, \BufTransientSlice, src.bufnum, offsetframes, numframes, offsetchans, numchans,
|
|
||||||
if( transbuf.isNil, -1, {transbuf.bufnum}), order, blocksize, padding, skew, threshfwd, threshback, windowsize, debounce);
|
|
||||||
|
|
||||||
|
if(srcBufNum.isNil) { Error("Invalid buffer").format(thisMethod.name, this.class.name).throw};
|
||||||
|
|
||||||
|
server = server ? Server.default;
|
||||||
|
transBufNum = transBufNum ? -1;
|
||||||
|
|
||||||
|
server.sendMsg(\cmd, \BufTransientSlice, srcBufNum, startAt, nFrames, startChan, nChans, transBufNum, order, blockSize, padding, skew, threshFwd, threshBack, windowSize, debounce);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
s.reboot;
|
||||||
|
|
||||||
|
b = Buffer.read(s,"/Users/pa/Documents/documents@hudd/research/projects/fluid corpus navigation/research/archives-2017-18/denoise_stn/sources/01-mix.wav");
|
||||||
|
|
||||||
|
// basic param
|
||||||
|
x = {FluidTransients.ar(PlayBuf.ar(1,b.bufnum,loop:1))}.play
|
||||||
|
|
||||||
|
// sexier params
|
||||||
|
x = {FluidTransients.ar(PlayBuf.ar(1,b.bufnum,loop:1))}.play //change to something sensible
|
||||||
|
|
||||||
|
// add null test
|
||||||
Loading…
Reference in New Issue