numBands = this.fft.avgSize();
bandVals = new LinearEnvelope[numBands];
for (int i = 0; i < bandVals.length; ++i) {
- bandVals[i] = new LinearEnvelope(0, 0, 500).trigger();
+ (bandVals[i] = new LinearEnvelope(0, 0, 500)).trigger();
}
}
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();
};
// The bass box!
- /*
BassBox bassBox = new BassBox(BBX, 0, BBZ);
// The speakers!
List<Speaker> speakers = Arrays.asList(new Speaker[] {
// Each speaker parameter is x, y, z, rotation, the left speaker comes first
- new Speaker(-12, 6, 0, 15),
- new Speaker(TRAILER_WIDTH - Speaker.EDGE_WIDTH + 8, 6, 3, -15)
+// new Speaker(-12, 6, 0, 15),
+// new Speaker(TRAILER_WIDTH - Speaker.EDGE_WIDTH + 8, 6, 3, -15)
});
- */
//////////////////////////////////////////////////////////////////////
// BENEATH HERE SHOULD NOT REQUIRE ANY MODIFICATION!!!! //
cubes[cubeIndex++] = cube;
}
- return new Model(towerList, cubes, null, null);
+ return new Model(towerList, cubes, bassBox, speakers);
}
/**