Codebox Qeustion

Jun 24, 2013 at 12:23pm

Codebox Qeustion


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
Jun 24, 2013 at 4:04pm

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.


Jun 24, 2013 at 4:17pm

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.)

Jun 24, 2013 at 4:21pm

I’m on 6.1.3.

Jun 24, 2013 at 9:08pm

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

Jun 25, 2013 at 2:24am

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.


Jun 25, 2013 at 4:00am

any ides?

Jun 25, 2013 at 11:32pm

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?

Jun 26, 2013 at 1:41am

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

  1. lowpass.maxpat

You must be logged in to reply to this topic.