CPU/Memory Javascript vs Max

Mar 16, 2013 at 1:46pm

CPU/Memory Javascript vs Max

Hi All,

Is there any advantage gained in terms of CPU / memory by putting parts of a Max patch in to JS?

I have a MIDI learn function which uses a lot of select objects. As the patch is really dense to begin with, would I save any space by putting this in to JS and using a load of if statements?

Mar 16, 2013 at 4:00pm

Depends on a lot of factors – only way to determine is to test :/

Mar 16, 2013 at 4:36pm

If you’re overwhelmed with select objects, you might want to look at a structure using coll/forward:


– Pasted Max Patch, click to expand. –
Mar 17, 2013 at 8:47am

I would not use JS if accurate timing mattered.


You must be logged in to reply to this topic.