X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=DanHorwitz.pde;fp=DanHorwitz.pde;h=841a2ff9a0980faa7d5b9f588d77fe2e2d0f510e;hb=d6b5635a112a63746046ae8664ca38419bd233ff;hp=01904013009f04332910bbd9f9081c6f10e92ca0;hpb=5096de16133c3422e8f9627dd86d1c5f103e9469;p=SugarCubes.git diff --git a/DanHorwitz.pde b/DanHorwitz.pde index 0190401..841a2ff 100644 --- a/DanHorwitz.pde +++ b/DanHorwitz.pde @@ -157,13 +157,14 @@ public class Play extends DPat prvR = dstR; dstR = random(mCtr.y); } } - int nBeats = 0; BasicParameter pAmp, pRadius, pBounce; + Pick pTimePattern, pTempoMult, pShape; - float t,amp,rad,bnc; - float zTheta=0; ArrayList waves = new ArrayList(10); + int nBeats = 0; + float t,amp,rad,bnc,zTheta=0; + rAngle a1 = new rAngle(), a2 = new rAngle(), a3 = new rAngle(), a4 = new rAngle(); PVector cPrev = new PVector(), cRand = new PVector(), @@ -173,7 +174,6 @@ public class Play extends DPat Pn = new PVector(); float LastBeat=3, LastMeasure=3; int curRandTempo = 1, curRandTPat = 1; - Pick pTimePattern, pTempoMult, pShape; Play(GLucose glucose) { super(glucose); @@ -206,6 +206,7 @@ public class Play extends DPat } } + void onReset() { zTheta=0; super.onReset(); } void onActive() { zTheta=0; while (lx.tempo.bpm() > 40) lx.tempo.setBpm(lx.tempo.bpm()/2); @@ -354,15 +355,7 @@ public class Play extends DPat } } //---------------------------------------------------------------------------------------------------------------------------------- -// 0 - TLB, L (b), BLB, B (l) // Fwd , Down, Back, Up -// 4 - TLF, F (l), BLF, L (f) // Fwd , Down, Back, Up -// 8 - TRF, R (f), BRF, F (r) // Back, Down, Fwd , Up -// 12- TRB, B (r), BRB, R (b) // Back, Down, Fwd , Up -// 1->7, 15->9 - -int randDir() { return round(random(1))*2-1; } -//---------------------------------------------------------------------------------------------------------------------------------- -boolean dDebug = true; +boolean dDebug = false; class dCursor { dVertex vCur, vNext, vDest; float destSpeed;