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.
21 lines
649 B
Python
21 lines
649 B
Python
FluidMFCC : MultiOutUGen {
|
|
|
|
*kr { arg in = 0, numCoefs = 13, numBands = 40, minFreq = 20, maxFreq = 20000, maxNumCoefs = 40, winSize = 1024, hopSize = -1, fftSize = -1, maxFFTSize = 16384;
|
|
^this.multiNew('control', in.asAudioRateInput(this), numCoefs, numBands, minFreq, maxFreq, maxNumCoefs, winSize, hopSize, fftSize, maxFFTSize);
|
|
}
|
|
|
|
init {arg ...theInputs;
|
|
inputs = theInputs;
|
|
^this.initOutputs(inputs.at(5),rate);
|
|
}
|
|
|
|
checkInputs {
|
|
if(inputs.at(5).rate != 'scalar') {
|
|
^(": maxNumCoefs cannot be modulated.");
|
|
};
|
|
if(inputs.at(9).rate != 'scalar') {
|
|
^(": maxFFTSize cannot be modulated.");
|
|
};^this.checkValidInputs;
|
|
}
|
|
}
|