println("Hit the 'p' key to toggle Panda Board output");
}
+
void controllerChangeReceived(rwmidi.Controller cc) {
if (debugMode) {
println("CC: " + cc.toString());
endShape();
noStroke();
- drawBassBox(glucose.model.bassBox);
- for (Speaker s : glucose.model.speakers) {
- drawSpeaker(s);
- }
+// drawBassBox(glucose.model.bassBox);
+// for (Speaker s : glucose.model.speakers) {
+// drawSpeaker(s);
+// }
for (Cube c : glucose.model.cubes) {
drawCube(c);
}
noFill();
strokeWeight(2);
beginShape(POINTS);
- for (Point p : glucose.model.points) {
- stroke(colors[p.index]);
- vertex(p.fx, p.fy, p.fz);
+ // TODO(mcslee): restore when bassBox/speakers are right again
+ // for (Point p : glucose.model.points) {
+ for (Cube cube : glucose.model.cubes) {
+ for (Point p : cube.points) {
+ stroke(colors[p.index]);
+ vertex(p.fx, p.fy, p.fz);
+ }
}
endShape();
noStroke();
fill(#393939);
drawBox(s.x+in, s.y+in, s.z+in, 0, s.ry, 0, Speaker.EDGE_WIDTH-in*2, Speaker.EDGE_HEIGHT-in*2, Speaker.EDGE_DEPTH-in*2, Cube.CHANNEL_WIDTH-in);
-}
-
+}
void drawBox(float x, float y, float z, float rx, float ry, float rz, float xd, float yd, float zd, float sw) {
pushMatrix();
ui.drawHelpTip();
}
ui.drawFPS();
+ ui.drawDanText();
}
boolean uiOn = true;
int restoreToIndex = -1;
+boolean doDual = false;
+
void keyPressed() {
if (mappingMode) {
mappingTool.keyPressed();
}
switch (key) {
+ case 'w':
+ doDual = !doDual;
+ break;
case '-':
case '_':
frameRate(--targetFramerate);
eyeZ = midZ + eyeR*cos(eyeA);
}
}
-