/**************************************************************
* WORKING PATTERNS
**************************************************************/
-
+import java.util.List;
+import java.util.LinkedList;
class AKPong extends SCPattern
{
private final BasicParameter speed = new BasicParameter("Speed", 0);
import processing.opengl.*;
import rwmidi.*;
import java.lang.reflect.*;
+import javax.media.opengl.*;
final int VIEWPORT_WIDTH = 900;
final int VIEWPORT_HEIGHT = 700;
popMatrix();
}
+
+
void drawUI() {
camera();
- javax.media.opengl.GL gl = ((PGraphicsOpenGL)g).beginGL();
- gl.glClear(javax.media.opengl.GL.GL_DEPTH_BUFFER_BIT);
- ((PGraphicsOpenGL)g).endGL();
+ PGraphicsOpenGL gl = (PGraphicsOpenGL) g;
+
+ //gl.glClear(javax.media.opengl.GL.GL_DEPTH_BUFFER_BIT);
+ //((PGraphicsOpenGL)g).endGL();
strokeWeight(1);
if (uiOn) {
+import java.util.Map;
+import java.util.TreeMap;
color BLACK = #000000;
class Gimbal extends SCPattern {
+import java.util.Iterator;
class JackieSquares extends SCPattern {
private BasicParameter rateParameter = new BasicParameter("RATE", 0.25);
private BasicParameter attackParameter = new BasicParameter("ATTK", 0.3);
} else {
mapKeys();
}
- registerKeyEvent(this);
+ //registerKeyEvent(this);
}
private void mapAPC() {
if (!enabled) {
return;
}
- char c = Character.toLowerCase(e.getKeyChar());
+ /* char c = 0;//0Character.toLowerCase(e.getKeyChar());
NoteMeta nm = keyToNote.get(c);
if (nm != null) {
switch (e.getID()) {
octaveShift = constrain(octaveShift+1, -4, 4);
break;
}
- }
+ }*/
}
}
return true;
case 83: // scene 2
- effects.flash.trigger();
+ //effects.flash.trigger();
return true;
case 84: // scene 3
* when physical changes or tuning is being done to the structure.
*/
+import java.util.Arrays;
+
final int MaxCubeHeight = 6;
final int NumBackTowers = 16;
+import java.util.Stack;
class Cathedrals extends SCPattern {
private final BasicParameter xpos = new BasicParameter("XPOS", 0.5);
effects.boom.trigger();
break;
case 40:
- effects.flash.trigger();
+ //effects.flash.trigger();
break;
}
}
* If you're an artist, create a new tab in the Processing environment with
* your name. Implement your classes there, and add them to the list below.
*/
-
+
LXPattern[] patterns(GLucose glucose) {
return new LXPattern[] {
// Handles to globally triggerable effects
class Effects {
- FlashEffect flash = new FlashEffect(lx);
+ //FlashEffect flash = new FlashEffect(lx);
BoomEffect boom = new BoomEffect(glucose);
BlurEffect blur = new BlurEffect(glucose);
QuantizeEffect quantize = new QuantizeEffect(glucose);