You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
621 B
Python
22 lines
621 B
Python
FluidNMFMatch : FluidRTMultiOutUGen {
|
|
|
|
*kr { arg in = 0, bases, maxComponents = 1, iterations = 10, windowSize = 1024, hopSize = -1, fftSize = -1, maxFFTSize = -1;
|
|
^this.multiNew('control', in.asAudioRateInput(this), bases, maxComponents, maxComponents, iterations, windowSize, hopSize, fftSize, maxFFTSize);
|
|
}
|
|
|
|
init {arg ...theInputs;
|
|
inputs = theInputs;
|
|
^this.initOutputs(inputs[2],rate);
|
|
}
|
|
|
|
checkInputs {
|
|
if(inputs.at(3).rate != 'scalar') {
|
|
^(": maxComponents cannot be modulated.");
|
|
};
|
|
if(inputs.at(8).rate != 'scalar') {
|
|
^(": maxFFTSize cannot be modulated.");
|
|
};
|
|
^this.checkValidInputs;
|
|
}
|
|
}
|