Forums > Javascript

CPU/Memory Javascript vs Max

March 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?


March 16, 2013 | 4:00 pm

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


March 16, 2013 | 4:36 pm

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

M

– Pasted Max Patch, click to expand. –

March 17, 2013 | 8:47 am

I would not use JS if accurate timing mattered.


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