X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=_Internals.pde;h=fc06832ba72a9692447bc3111d4ad272419dde8f;hb=39011e7ef5520fc6517c110a73ff0f6d697f8de5;hp=a18c95a21ea48d57a05dd3bba15c1e254e9785ae;hpb=6f486736347dd4c851672ce6b0ec32f5d0618cdb;p=SugarCubes.git diff --git a/_Internals.pde b/_Internals.pde index a18c95a..fc06832 100644 --- a/_Internals.pde +++ b/_Internals.pde @@ -120,9 +120,10 @@ void setup() { mouseWheel(mwe.getWheelRotation()); }}); - println("Total setup: " + (millis() - startMillis) + "ms"); println("Hit the 'p' key to toggle Panda Board output"); + + println(glucose.model.bassBox.points.size()); } void controllerChangeReceived(rwmidi.Controller cc) { @@ -225,6 +226,16 @@ void drawBassBox(BassBox b) { fill(#393939); drawBox(b.x+in, b.y+in, b.z+in, 0, 0, 0, BassBox.EDGE_WIDTH-in*2, BassBox.EDGE_HEIGHT-in*2, BassBox.EDGE_DEPTH-in*2, Cube.CHANNEL_WIDTH-in); + pushMatrix(); + translate(b.x+(Cube.CHANNEL_WIDTH-in)/2., b.y + BassBox.EDGE_HEIGHT-in, b.z + BassBox.EDGE_DEPTH/2.); + float lastOffset = 0; + for (float offset : BoothFloor.STRIP_OFFSETS) { + translate(offset - lastOffset, 0, 0); + box(Cube.CHANNEL_WIDTH-in, 0, BassBox.EDGE_DEPTH - 2*in); + lastOffset = offset; + } + popMatrix(); + pushMatrix(); translate(b.x + (Cube.CHANNEL_WIDTH-in)/2., b.y + BassBox.EDGE_HEIGHT/2., b.z + in); for (int j = 0; j < 2; ++j) {