repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move to need keyEvent stuff from processing2
[SugarCubes.git]
/
AntonK.pde
diff --git
a/AntonK.pde
b/AntonK.pde
index f5b2edfd89e9318e6aef46c5e38a0285e1dbcae2..5b286f1c3c49c18d8eff9a36e9b7b291d69a7838 100644
(file)
--- a/
AntonK.pde
+++ b/
AntonK.pde
@@
-1,7
+1,8
@@
/**************************************************************
* WORKING PATTERNS
**************************************************************/
/**************************************************************
* WORKING PATTERNS
**************************************************************/
-
+import java.util.List;
+import java.util.LinkedList;
class AKPong extends SCPattern
{
private final BasicParameter speed = new BasicParameter("Speed", 0);
class AKPong extends SCPattern
{
private final BasicParameter speed = new BasicParameter("Speed", 0);
@@
-121,9
+122,9
@@
class AKPong extends SCPattern
return true;
}
return true;
}
- public AKPong(
GLucose glucose
)
+ public AKPong(
LX lx
)
{
{
- super(
glucose
);
+ super(
lx
);
addParameter(speed);
addParameter(leftKnob);
addParameter(rightKnob);
addParameter(speed);
addParameter(leftKnob);
addParameter(rightKnob);
@@
-170,9
+171,9
@@
class AKPong extends SCPattern
class AKInvader extends SCPattern
{
private final SawLFO h = new SawLFO(0, 1, 5000);
class AKInvader extends SCPattern
{
private final SawLFO h = new SawLFO(0, 1, 5000);
- public AKInvader(
GLucose glucose
)
+ public AKInvader(
LX lx
)
{
{
- super(
glucose
);
+ super(
lx
);
addModulator(h).trigger();
}
addModulator(h).trigger();
}
@@
-319,9
+320,9
@@
class AKTetris extends SCPattern
}
}
}
}
- public AKTetris(
GLucose glucose
)
+ public AKTetris(
LX lx
)
{
{
- super(
glucose
);
+ super(
lx
);
}
public boolean noteOn(Note note)
}
public boolean noteOn(Note note)
@@
-372,9
+373,9
@@
class AKMatrix extends SCPattern
}
}
}
}
- public AKMatrix(
GLucose glucose
)
+ public AKMatrix(
LX lx
)
{
{
- super(
glucose
);
+ super(
lx
);
// for (Tower t : model.towers)
{
Tower t = model.towers.get(0);
// for (Tower t : model.towers)
{
Tower t = model.towers.get(0);
@@
-415,9
+416,9
@@
class AKEgg extends SCPattern
private final float Y = model.yMax / 2;
private final float Z = model.zMax / 2;
private final float Y = model.yMax / 2;
private final float Z = model.zMax / 2;
- public AKEgg(
GLucose glucose
)
+ public AKEgg(
LX lx
)
{
{
- super(
glucose
);
+ super(
lx
);
addModulator(xRadius).trigger();
addModulator(yRadius).trigger();
addModulator(zRadius).trigger();
addModulator(xRadius).trigger();
addModulator(yRadius).trigger();
addModulator(zRadius).trigger();
@@
-446,9
+447,9
@@
class AKCubes extends SCPattern
private Cube cube;
private int sec;
private Cube cube;
private int sec;
- public AKCubes(
GLucose glucose
)
+ public AKCubes(
LX lx
)
{
{
- super(
glucose
);
+ super(
lx
);
cube = model.cubes.get((int) random(model.cubes.size()));
sec = 0;
}
cube = model.cubes.get((int) random(model.cubes.size()));
sec = 0;
}
@@
-473,9
+474,9
@@
class AKCubes extends SCPattern
class AKSpiral extends SCPattern
{
private int ms;
class AKSpiral extends SCPattern
{
private int ms;
- public AKSpiral(
GLucose glucose
)
+ public AKSpiral(
LX lx
)
{
{
- super(
glucose
);
+ super(
lx
);
ms = 0;
}
ms = 0;
}
@@
-537,9
+538,9
@@
class AKSpace extends SCPattern
}
}
}
}
- public AKSpace(
GLucose glucose
)
+ public AKSpace(
LX lx
)
{
{
- super(
glucose
);
+ super(
lx
);
stars = new LinkedList<Star>();
for (int i = 0; i < 50; ++i)
stars.add(new Star());
stars = new LinkedList<Star>();
for (int i = 0; i < 50; ++i)
stars.add(new Star());