Is this javascript patch disable table's output?

larme's icon

Dear All,

I'm trying to build a dynamic step sequencer in Max with the help of javascript. By saying "dynamic", I mean the step number can be controlled in real time. The patch below is my first attempt (you have to put stepnum.js in the same directory of the patch to run it).

The idea is simple. I use javascript to generate toggles. The value of the toggles is stored in the table. However, the problem is that the table refuse to output what it stores. Any ideas?

Max Patch
Copy patch and select New From Clipboard in Max.

My patch:

2111.stepnum.js
js
Griotspeak's icon

tee hee. you probably figured out that there were two tables already.