Forums > Gen

Codebox Qeustion

June 24, 2013 | 12:23 pm


I’ve try to implement Earlevels biquad coeff. calculator in gen codebox, but without luck.
There is nothing coming out from gen :(

Sources :

Could you please take a look?

  1. gentest.maxpat
June 24, 2013 | 4:04 pm

Something weird is going on with Gen. The gen~ object in your patch only has two inputs and one output even though I can clearly see that there are four inputs and five outputs inside the gen~.

I even reconstructed the patch but as soon as I copy that codebox in it nerfs the patch and any new inputs don’t show up on the gen~ object.


June 24, 2013 | 4:17 pm

Could be different versions of Max 6. (6.0.8 vs. 6.1+). I have this happen with some of my gen patches. I think they made some changes in codebox. (such as introducing for loops, etc.)

June 24, 2013 | 4:21 pm

I’m on 6.1.3.

June 24, 2013 | 9:08 pm

Im on 6.1.2
I can see all of the ins and outs, but nothing come out from the gen…

June 25, 2013 | 2:24 am

Checked on a windows machine and Stringpaper has right.
I’ve declared the inputs/outputs, they’re connecte to the codebox, but the GEN OBJECT has only 2 ins and 1 out.


June 25, 2013 | 4:00 am

any ides?

June 25, 2013 | 11:32 pm

You have some expressions:

a(-1, 1) = …;

While these parse as GenExpr, they are actually invalid. The bug here is that we don’t post an error message about this. I’m not sure what you’re trying to accomplish with the a(-1, 1) syntax. Are you trying to clamp the values?

June 26, 2013 | 1:41 am

Anyway, fixed the problem, now it’s working :

  1. lowpass.maxpat
Viewing 9 posts - 1 through 9 (of 9 total)

Forums > Gen