Enviromental parameters?

Sep 18, 2011 at 4:49am

Enviromental parameters?

Hi, I’ve got a patcher I’m using on two different machines, which have slightly different configurations (hard drive letters/paths, monitor sizes etc.). I’d like to parameterize my patcher such that I can easily tweak the behaviour on each machine (without having to hard code both sets of values).

Is there an easy way to accomplish this? Perhaps a Max object which can read system environment variables?


Sep 18, 2011 at 4:55am

jit.displays for monitor things, not sure about other variables.

Sep 18, 2011 at 3:39pm

look into the screensize and gestalt objects and the “path” message to thispatcher.
this might give you enough data.


Sep 22, 2011 at 4:16am

path to thispatcher with a little atoi/zl/itoa magic will do the trick for the folder paths. Thanks!


You must be logged in to reply to this topic.