X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=DanHorwitz.pde;h=cdec36b6b1d160b44e8e3aeeda1a1d1c62a76621;hb=e0b9d8726c661f54f47340449037ac7f6b410de6;hp=6c958e1f04e41d47afbed30100b1919a564a1515;hpb=794995923b50129fee95afffd449e1bd09537fc2;p=SugarCubes.git diff --git a/DanHorwitz.pde b/DanHorwitz.pde index 6c958e1..cdec36b 100644 --- a/DanHorwitz.pde +++ b/DanHorwitz.pde @@ -5,8 +5,8 @@ public class Pong extends DPat { Pick pChoose; PVector v = new PVector(), vMir = new PVector(); - Pong(GLucose glucose) { - super(glucose); + Pong(LX lx) { + super(lx); cRad = mMax.x/10; addModulator(dx = new SinLFO(6000, 500, 30000 )).trigger(); addModulator(dy = new SinLFO(3000, 500, 22472 )).trigger(); @@ -57,8 +57,8 @@ public class Noise extends DPat int _ND = 4; NDat N[] = new NDat[_ND]; - Noise(GLucose glucose) { - super(glucose); + Noise(LX lx) { + super(lx); pSpeed = addParam("Fast" , .55); pDensity = addParam("Dens" , .5); pSharp = addParam("Shrp" , 0); @@ -175,8 +175,8 @@ public class Play extends DPat float LastBeat=3, LastMeasure=3; int curRandTempo = 1, curRandTPat = 1; - Play(GLucose glucose) { - super(glucose); + Play(LX lx) { + super(lx); pRadius = addParam("Rad" , .1 ); pBounce = addParam("Bnc" , .2 ); pAmp = addParam("Amp" , .2 ); @@ -403,7 +403,7 @@ class dCursor { evalTurn(vCur.t2); evalTurn(vCur.t3); } - Point p1, p2; int i2; + LXPoint p1, p2; int i2; int draw(int nAmount, SCPattern pat) { int nFrom = (pos ) >> 12; @@ -452,15 +452,15 @@ class Worms extends SCPattern { new PVector(randX(), random(2)<1 ? model.yMin:model.yMax, zMidLat) ; } - Worms(GLucose glucose) { - super(glucose); + Worms(LX lx) { + super(lx); addModulator(moveChase).start(); addParameter(pBeat); addParameter(pSpeed); addParameter(pBlur); addParameter(pWorms); addParameter(pEQ); addParameter(pConfusion); addParameter(pSpawn); addParameter(pColor); - middle = new PVector(model.cx, model.cy, 71); + middle = new PVector(1.5*model.cx, 1.5*model.cy, 71); if (lattice == null) lattice = new dLattice(); for (int i=0; i