manually add new objects from refactor_new_objects
parent
c6925eeafb
commit
f057330bec
@ -0,0 +1,15 @@
|
||||
FluidBufOnsetSlice{
|
||||
*process { arg server, srcBufNum, startAt = 0, nFrames = -1, startChan = 0, nChans = -1, idxBufNum, function = 0, threshold = 0.1, debounce = 2, filterSize = 5, frameDelta = 0, winSize = 1024, hopSize = 256, fftSize = 1024, maxFFTSize = 16384;
|
||||
|
||||
if(srcBufNum.isNil) {Error("Invalid Buffer % %".format(this.class.name, thisMethod.name)).throw};
|
||||
|
||||
server = server ? Server.default;
|
||||
idxBufNum = idxBufNum ? -1;
|
||||
|
||||
|
||||
//NB For wrapped versions of NRT classes, we set the params for maxima to
|
||||
//whatever has been passed in language-side (e.g maxFFTSize still exists as a parameter for the server plugin, but makes less sense here: it just needs to be set to a legal value)
|
||||
|
||||
server.sendMsg(\cmd, \BufOnsetSlice, srcBufNum, startAt, nFrames, startChan, nChans, idxBufNum, function, threshold, debounce, filterSize, frameDelta, winSize, hopSize, fftSize, maxFFTSize);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
FluidOnsetSlice : UGen {
|
||||
*ar { arg in = 0, function = 0, threshold = 0.1, debounce = 2, filterSize = 5, frameDelta = 0, winSize = 1024, hopSize = 256, fftSize = 1024, maFFTSize = 16384;
|
||||
^this.multiNew('audio', in.asAudioRateInput(this), function, threshold, debounce, filterSize, frameDelta, winSize, hopSize, fftSize, maFFTSize)
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
FluidSpectralShape : MultiOutUGen {
|
||||
|
||||
*kr { arg in = 0, winSize = 1024, hopSize = 512, fftSize = -1, maxFFTSize = 16384;
|
||||
^this.multiNew('control', in, winSize, hopSize, fftSize, maxFFTSize);
|
||||
}
|
||||
|
||||
init {arg ...theInputs;
|
||||
inputs = theInputs;
|
||||
^this.initOutputs(7,rate);
|
||||
}
|
||||
|
||||
checkInputs {
|
||||
if (inputs.at(0).rate != 'audio', {
|
||||
^(" input 0 is not audio rate");
|
||||
});
|
||||
^this.checkValidInputs;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue