X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=_Grizzly.pde;h=25d390f07fba7d653039521539f7dabd395a2ca4;hb=22cc0977d83b137ab1b57490dc1dec5e5ae24544;hp=f376fab8cd7d5c8a9048129d297d042c6267b981;hpb=e037f60f518373c3bb952f79a2ae66950e55a52f;p=SugarCubes.git diff --git a/_Grizzly.pde b/_Grizzly.pde index f376fab..25d390f 100644 --- a/_Grizzly.pde +++ b/_Grizzly.pde @@ -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) {