Mgraphics masking and JS painter

Nikolas K's icon

I'm trying to do a custom JS painter for live.meter~.
The paint routine runs fine, but in order to draw a level indicator (or somethign like it) I need to know the audio level stored in the live.meter~, like how many LEDs should be lit etc.
Generally one can use:
var value = box.getvalueof()[0];

but in the live.meter~' s case it returns as "null".
Anyone has any idea if what I want is indeed possible, and how can I get the level value?

Nik

Nikolas K's icon

Anybody?
"JS painter" is there teasing us a long time now but with a very limited documentation...
I would really appreciate some more insight...

The second thing I wonder is how I can make an "opacity mask" for something in JS.

Any tip would be really appreciated!

Spa's icon

I'd like to know if adding js painter to objects involve a big cpu overhead.
of what i understand, it's processed in the main thread, but given jitter is also ...