From: Mark Slee Date: Wed, 21 Aug 2013 08:33:08 +0000 (-0700) Subject: Map a few bits, clean up overlay to support 16 mapping channels X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1627a617de5297dac990987a70d7e7c5fc29caca;p=SugarCubes.git Map a few bits, clean up overlay to support 16 mapping channels --- diff --git a/SugarCubes.pde b/SugarCubes.pde index bc70626..2586b1a 100644 --- a/SugarCubes.pde +++ b/SugarCubes.pde @@ -27,10 +27,10 @@ LXPattern[] patterns(GLucose glucose) { return new LXPattern[] { // Slee - new ShiftingPlane(glucose), - new AskewPlanes(glucose), new Swarm(glucose), new SpaceTime(glucose), + new ShiftingPlane(glucose), + new AskewPlanes(glucose), new Blinders(glucose), new CrossSections(glucose), new Psychedelia(glucose), diff --git a/_Mappings.pde b/_Mappings.pde index efe0e4c..73e1fe2 100644 --- a/_Mappings.pde +++ b/_Mappings.pde @@ -110,36 +110,30 @@ public PandaMapping[] buildPandaList() { return new PandaMapping[] { new PandaMapping( "10.200.1.29", new ChannelMapping[] { - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 1, 2, 3, 4 }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 7, 8 }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 9, 10 }), - new ChannelMapping(ChannelMapping.MODE_BASS), - new ChannelMapping(ChannelMapping.MODE_FLOOR), - new ChannelMapping(ChannelMapping.MODE_SPEAKER, 0), - new ChannelMapping(ChannelMapping.MODE_SPEAKER, 1), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), + new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { 5, 6, 4, 3 }), }), new PandaMapping( "10.200.1.28", new ChannelMapping[] { - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), - new ChannelMapping(ChannelMapping.MODE_CUBES, new int[] { }), + new ChannelMapping(ChannelMapping.MODE_BASS), + new ChannelMapping(ChannelMapping.MODE_FLOOR), + new ChannelMapping(ChannelMapping.MODE_SPEAKER, 0), + new ChannelMapping(ChannelMapping.MODE_SPEAKER, 1), }), }; } @@ -184,7 +178,7 @@ class CubeMapping { class PandaMapping { // How many channels are on the panda board - public final static int CHANNELS_PER_BOARD = 13; + public final static int CHANNELS_PER_BOARD = 16; // How many total pixels on the whole board public final static int PIXELS_PER_BOARD = ChannelMapping.PIXELS_PER_CHANNEL * CHANNELS_PER_BOARD; diff --git a/_Overlay.pde b/_Overlay.pde index f2f88d1..e21be8e 100644 --- a/_Overlay.pde +++ b/_Overlay.pde @@ -749,10 +749,10 @@ class MappingUI extends OverlayUI { class DebugUI { final ChannelMapping[] channelList; - final int debugX = 10; - final int debugY = 42; + final int debugX = 5; + final int debugY = 5; final int debugXSpacing = 28; - final int debugYSpacing = 22; + final int debugYSpacing = 21; final int[][] debugState; final int DEBUG_STATE_ANIM = 0; @@ -782,8 +782,8 @@ class DebugUI { int xBase = debugX; int yPos = debugY; - fill(color(0, 0, 0, 80)); - rect(4, 32, 172, 388); + fill(#000000); + rect(0, 0, debugX + 5*debugXSpacing, height); int channelNum = 0; for (ChannelMapping channel : channelList) {