Max number of ugen arguments

Is it possible there is a limit of 54 arguments to a unit generator? I was trying to make one with 55, and no matter what I do, I get this error:

The preceding error dump is for ERROR: FM7bOS 54 inputs required (55)

Since FM7 has 54, and that is the most I have seen, I am wondering if this number is hard-coded somewhere in the source…or if I am just doing something dumb.

Thanks,

Sam

is it a pseudo ugen or complied c++?
edit: this looks like an index issue of some sort, not a limitation on arguments

See the checkInputs method for the FM7.sc file:

checkInputs {
		^if (inputs.size != this.class.numRequiredInputs) {
			this.class.numRequiredInputs.asString + "inputs required (" ++ inputs.size ++ ")"
		}
	}

Did you use FM7 as a starting point? I’ve not seen another UGen throw that particular error, so I’m wondering if that’s where it came from.

Daaaaaahhhhhhhhhh. You know when you are seaching your C++ code for the issue…but it was your dumb copy-n-paste face in the class file?

Thanks,

Sam

2 Likes