app (processing) life

by brian crabtree

uses processing and requires the oscP5 library (http://www.sojamo.de/iv/index.php?n=11)

file: Attached _40h_life.pde

conway’s life simulation. button-presses bring points to life. change the framerate in the code, or with a rotary encoder if you’ve performed that hack.

Some notes:
  1. This program assumes the old prefix ”/box”:
    Newer versions of serial/OSC converters expect ”/40h”. To change this, add the following lines of code before the line “myMessage = new OscMessage(”/box/enc_enable”)”:

    // Change the prefix to “box” to be downwards compatible:
    myMessage = new OscMessage(”/sys/prefix”);
    myMessage.add(“box”);
    oscP5.send(myMessage, myRemoteLocation);

  2. In order to run it in Linux, please change all occurences “framerate” to “frameRate”.
  3. It only imports ‘oscP5.’, but the first 2 lines must be:
    import netP5.
    ;
    import oscP5.*;

    (otherwise it will complain about something like “NetAddress” not found)

Edit this page or watch for changes using RSS.