Codebox Qeustion

Jun 24, 2013 at 12:23pm

Codebox Qeustion

Hy,

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

Sources :

http://www.earlevel.com/main/2010/12/20/biquad-calculator/

http://www.earlevel.com/main/2011/01/02/biquad-formulas/

Could you please take a look?

Attachments:
  1. gentest.maxpat
#253902
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.

?

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

#253936
Jun 24, 2013 at 4:21pm

I’m on 6.1.3.

#253937
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…

#253958
Jun 25, 2013 at 2:24am

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

#253980
Jun 25, 2013 at 4:00am

any ides?

#253991
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?

#254113
Jun 26, 2013 at 1:41am

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

Attachments:
  1. lowpass.maxpat
#254116

You must be logged in to reply to this topic.