Few tiny cleanups
[SugarCubes.git] / _Grizzly.pde
index f376fab8cd7d5c8a9048129d297d042c6267b981..25d390f07fba7d653039521539f7dabd395a2ca4 100644 (file)
@@ -8,9 +8,8 @@
  *
  *        EXPERTS ONLY!!              EXPERTS ONLY!!
  *
- * If you are an artist, you may ignore this file! It just sets
- * up the framework to run the patterns. Should not need modification
- * for general animation work.
+ * If you are an artist, you may ignore this file! It contains
+ * the code to drive grizzly board outputs.
  */
 
 GrizzlyOutput[] buildGrizzlies() throws SocketException, UnknownHostException {
@@ -22,13 +21,17 @@ GrizzlyOutput[] buildGrizzlies() throws SocketException, UnknownHostException {
   };
 }
 
+/**
+ * Grizzly Output, sends packets to one grizzly board with a fixed IP and a number
+ * of channels.
+ */
 class GrizzlyOutput extends LXDatagramOutput {
 
   public final String ipAddress;
   
   private int frameNumber = 0;
   
-  GrizzlyOutput(LX lx, String ipAddress, int ... cubeIndices) throws UnknownHostException, SocketException {
+  public GrizzlyOutput(LX lx, String ipAddress, int ... cubeIndices) throws UnknownHostException, SocketException {
     super(lx);
     this.ipAddress = ipAddress;
     int channelNum = 0;
@@ -51,6 +54,9 @@ class GrizzlyOutput extends LXDatagramOutput {
   }
 }
 
+/**
+ * Datagram to a Grizzlyboard. A simple fixed OSC packet.
+ */
 static class GrizzlyDatagram extends LXDatagram {
   
   private static byte[] oscString(String s) {