updated dpat
[SugarCubes.git] / _Internals.pde
index 07934ccc461198f2a7577229c07752ba08dba2c5..9d6b11889bd413b34ef8f8c9097ef720edbfea68 100644 (file)
@@ -40,7 +40,7 @@ final float TRAILER_DEPTH = 97;
 final float TRAILER_HEIGHT = 33;
 
 final int MaxCubeHeight = 5;
-final int NumBackTowers = 9;
+final int NumBackTowers = 11;
 
 int targetFramerate = 60;
 int startMillis, lastMillis;
@@ -52,7 +52,7 @@ LXPattern[] patterns;
 MappingTool mappingTool;
 PandaDriver[] pandaBoards;
 MidiEngine midiEngine;
-GridController gridController;
+PresetManager presetManager;
 
 // Display configuration mode
 boolean mappingMode = false;
@@ -100,6 +100,7 @@ LXPattern[] _rightPatterns(GLucose glucose) {
   }
   return rightPatterns;
 }
+  
 
 void logTime(String evt) {
   int now = millis();
@@ -136,6 +137,10 @@ void setup() {
   // MIDI devices
   midiEngine = new MidiEngine();
   logTime("Setup MIDI devices");
+  
+  // Preset manager
+  presetManager = new PresetManager();
+  logTime("Loaded presets");
 
   // Build output driver
   PandaMapping[] pandaMappings = buildPandaList();