FluidMFCC - corrects the input checking

nix
Pierre Alexandre Tremblay 4 years ago
parent 26a4e4c1a4
commit cce4f53238

@ -7,18 +7,17 @@ FluidMFCC : FluidRTMultiOutUGen {
init {arg ...theInputs;
inputs = theInputs;
// inputs.at(5).rate.postln;
^this.initOutputs(inputs.at(5),rate);//this instantiate the number of output from the maxNumCoeffs in the multiNew order
^this.initOutputs(inputs.at(6),rate);//this instantiate the number of output from the maxNumCoeffs in the multiNew order
}
checkInputs {
// inputs.at(9).rate.postln;
// the checks of rates here are in the order of the kr method definition
if(inputs.at(9).rate != 'scalar') {
if(inputs.at(6).rate != 'scalar') {
^(": maxNumCoeffs cannot be modulated.");
};
if(inputs.at(8).rate != 'scalar') {
if(inputs.at(10).rate != 'scalar') {
^(": maxFFTSize cannot be modulated.");
};^this.checkValidInputs;
};
^this.checkValidInputs;
}
}

Loading…
Cancel
Save