Deprecate fx/fy/fz fully, they're gone now
[SugarCubes.git] / _Internals.pde
index 16a7cf84f2442f4c04baa04bd7bcd4bccce61ebc..f6344975954b493b0946414d19893146e0c74b87 100644 (file)
@@ -122,10 +122,6 @@ void setup() {
   lx.enableKeyboardTempo();
   logTime("Built GLucose engine");
   
-  // MIDI devices
-  midiEngine = new MidiEngine();
-  logTime("Setup MIDI devices");
-
   // Set the patterns
   Engine engine = lx.engine;
   engine.setPatterns(patterns = _leftPatterns(glucose));
@@ -135,7 +131,11 @@ void setup() {
   logTime("Built transitions");
   glucose.lx.addEffects(effects(glucose));
   logTime("Built effects");
-    
+
+  // MIDI devices
+  midiEngine = new MidiEngine();
+  logTime("Setup MIDI devices");
+
   // Build output driver
   PandaMapping[] pandaMappings = buildPandaList();
   pandaBoards = new PandaDriver[pandaMappings.length];
@@ -252,7 +252,7 @@ void draw() {
   beginShape(POINTS);
   for (Point p : glucose.model.points) {
     stroke(colors[p.index]);
-    vertex(p.fx, p.fy, p.fz);
+    vertex(p.x, p.y, p.z);
   }
   endShape();