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?
Depends on a lot of factors - only way to determine is to test :/
If you're overwhelmed with select objects, you might want to look at a structure using coll/forward:
Max Patch
Copy patch and select New From Clipboard in Max.
M
I would not use JS if accurate timing mattered.