Codebox Qeustion

snaper's icon

Hy,

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

Could you please take a look?

gentest.maxpat
Max Patch
stringtapper's icon

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.

?

Peter McCulloch's icon

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

stringtapper's icon

I'm on 6.1.3.

snaper's icon

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

snaper's icon

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

WHAT? :D:D:D:D

snaper's icon

any ides?

Wesley Smith's icon

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?

snaper's icon

Yap.
Anyway, fixed the problem, now it's working :

lowpass.maxpat
Max Patch