+
+ switch (pitch)
+ {
+ case 53: t = .5*t; bpm = .5*bpm; break;
+=======
+ void run( double deltaMs) {
+ float t = lx.tempo.rampf();
+ float bpm = lx.tempo.bpmf();
+ //spherys[1].run(deltaMs);
+ //spherys[2].run(deltaMs);
+ //spherys[3].run(deltaMs);]
+ sinespin.reset()
+
+ // Translate so the center of the car is the origin, offset by yPos
+ .center()
+>>>>>>> b8bb27489db7dc687bf150576e9d9439f1fa17a6
+
+ case 54: t = t; bpm = bpm; break;
+
+ case 55: t = 2*t; bpm = 2*bpm; break;
+
+ default: t= t; bpm = bpm;
+
+<<<<<<< HEAD
+=======
+ for (LXPoint p : model.points){
+ color c = 0;
+ c = blendColor(c, spherys[1].spheryvalue(p.x, p.y, p.z, .75*model.xMax, model.yMax/2, model.zMax/2), ADD);
+ c = blendColor(c, spherys[0].spheryvalue(p.x, p.y, p.z, model.xMax/4, model.yMax/4, model.zMax/2), ADD);
+ c = blendColor(c, spherys[2].spheryvalue(p.x, p.y, p.z, model.xMax/2, model.yMax/2, model.zMax/2),ADD);
+>>>>>>> b8bb27489db7dc687bf150576e9d9439f1fa17a6
+
+ }
+
+ for ( Sphery s: spherys){
+ s.setVibrationPeriod(480000/bpm);
+ s.vibration.setBasis(t);
+ }