}
+};
+
+class DriveableCrossSections extends CrossSections
+{
+ BasicParameter xd = new BasicParameter("XD", 1.0);
+ BasicParameter yd = new BasicParameter("YD", 1.0);
+ BasicParameter zd = new BasicParameter("ZD", 1.0);
+
+ DriveableCrossSections(GLucose glucose) {
+ super(glucose);
+ }
+
+ public void addParams()
+ {
+ addParameter(xd);
+ addParameter(yd);
+ addParameter(zd);
+ addParameter(xr);
+ addParameter(yr);
+ addParameter(zr);
+ addParameter(xw);
+ addParameter(xl);
+ addParameter(yl);
+ addParameter(zl);
+ addParameter(yw);
+ addParameter(zw);
+ }
+
+
+
+ public void updateXYZVals()
+ {
+ xv = xd.getValuef();
+ yv = yd.getValuef();
+ zv = zd.getValuef();
+ }
+
}
\ No newline at end of file
addModulator(x).trigger();
addModulator(y).trigger();
addModulator(z).trigger();
+ addParams();
+ }
+
+ public void addParams()
+ {
addParameter(xr);
addParameter(yr);
addParameter(zr);
addParameter(yw);
addParameter(zw);
}
-
- void onParameterChanged(LXParameter p) {
+
+ public void onParameterChanged(LXParameter p) {
if (p == xr) {
x.setDuration(10000 - 8800*p.getValuef());
} else if (p == yr) {
}
}
+ float xv;
+ float yv;
+ float zv;
+
+ public void updateXYZVals()
+ {
+ xv = x.getValuef();
+ yv = y.getValuef();
+ zv = z.getValuef();
+ }
+
public void run(int deltaMs) {
- float xv = x.getValuef();
- float yv = y.getValuef();
- float zv = z.getValuef();
+ updateXYZVals();
float xlv = 100*xl.getValuef();
float ylv = 100*yl.getValuef();
float zlv = 100*zl.getValuef();
LXPattern[] patterns(GLucose glucose) {
return new LXPattern[] {
+ new DriveableCrossSections(glucose),
new GranimTestPattern2(glucose),
new GranimTestPattern(glucose),
new Sandbox(glucose),