Forums > Javascript

CPU/Memory Javascript vs Max

Mar 16 2013 | 1:46 pm

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 | 4:00 pm

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

Mar 16 2013 | 4:36 pm

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 | 8:47 am

I would not use JS if accurate timing mattered.

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Javascript