You can use the MaxLink class and the included Max objects to handle communication in a number of ways. Here are some examples.
Processing within Max
Using the jk.p5 object, you can launch Processing sketches from within Max.
Processing alongside Max
Alternatively, you can run Processing sketches from the Processing IDE or launch them as separate Java apps. Sketches tend to run more smoothly in this way (they don't always appreciate running within the Max process).
Processing and Max on different computers
You can devote a computer to each app, since the objects communicate using UDP multicast. This configuration is particularly useful if there are multiple people contributing to a performance.
A Java process, Processing, and Max communicating over the subnet
Why stop at two computers? Also, the MaxLink class can be included in any Java process, not just Processing sketches. The jk.link object acts as an input/output proxy for each app. In this setup, the computer running Max can connect outlets from the Java process to inlets in the Processing sketch. Using jk.scout, it's even possible to query the local subnet for communicating objects, then wire up their inlets and outlets as desired.
© 2004-2011 jesse kriss / jesse@jklabs.net