Cabbage Logo
Back to Cabbage Site

Not able to set tablenumber greater than 1: gentable

Seems kinda weird. Can somebody look at this code. This is originally Rory’s metering code. But when extend this to 2 tables, and when the same signal is fed into both, table 2 is failing to update, or rather being updated to 1 all the time. I’m getting this warning, “replacing previous ftable 1”, but can’t seem to figure out what’s wrong.

Cheers.
Metering2.csd (2.0 KB)

The problem is in the gentable declaration for the ftable 2, you must change amprange(0, 1, 1) to amprange(0, 1, 2) since the third value is the tablenumber.
In the manual is defined as: amprange(min, max, tablenumber, y-quantise)

Ciao

1 Like

Thanks @vallste, I must admit, this caught me out at first too! I think it’s time I wrote a dedicated VU meter :wink:

Oh wow! That did the trick, I never noticed that. Thanks a lot! :slight_smile: